Help!

Change operator from cell value

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Worksheet Functions RSS
Next:  Comparing 2 blocks of text and data  
Author Message
Gareth.Evans
External


Since: Feb 24, 2009
Posts: 4



PostPosted: Tue Feb 24, 2009 3:37 am    Post subject: Change operator from cell value
Archived from groups: microsoft>public>excel>worksheet>functions (more info?)


Hi, i am trying to change to operator of a formula based on the value
of a cell. For example:

A1 = 3
A2 = <
A3 = 10

Formula: IF(A1&A2&A3,"yes","no")

The i want to be able to Chande the operator ion A2.

I have tried the formula above and it does not work. Any help would be
great.

THanks in advance for your help
Back to top
Stefi
External


Since: Mar 06, 2006
Posts: 432



PostPosted: Tue Feb 24, 2009 4:28 am    Post subject: RE: Change operator from cell value [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Insert>Name>Define name>Provide a name, say formulaA123, enter
=EVALUATE(A1&A2&A3)
as reference,
enter
=formulaA123
in result cell!

Regards,
Stefi

„Gareth.Evans” ezt írta:

> Hi, i am trying to change to operator of a formula based on the value
> of a cell. For example:
>
> A1 = 3
> A2 = <
> A3 = 10
>
> Formula: IF(A1&A2&A3,"yes","no")
>
> The i want to be able to Chande the operator ion A2.
>
> I have tried the formula above and it does not work. Any help would be
> great.
>
> THanks in advance for your help
>
Back to top
Stefi
External


Since: Mar 06, 2006
Posts: 432



PostPosted: Tue Feb 24, 2009 4:30 am    Post subject: RE: Change operator from cell value [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

or rather
=IF(EVALUATE(A1&A2&A3),"yes","no")
Stefi



„Stefi” ezt írta:

> Insert>Name>Define name>Provide a name, say formulaA123, enter
> =EVALUATE(A1&A2&A3)
> as reference,
> enter
> =formulaA123
> in result cell!
>
> Regards,
> Stefi
>
> „Gareth.Evans” ezt írta:
>
> > Hi, i am trying to change to operator of a formula based on the value
> > of a cell. For example:
> >
> > A1 = 3
> > A2 = <
> > A3 = 10
> >
> > Formula: IF(A1&A2&A3,"yes","no")
> >
> > The i want to be able to Chande the operator ion A2.
> >
> > I have tried the formula above and it does not work. Any help would be
> > great.
> >
> > THanks in advance for your help
> >
Back to top
Gareth.Evans
External


Since: Feb 24, 2009
Posts: 4



PostPosted: Tue Feb 24, 2009 5:52 am    Post subject: Re: Change operator from cell value [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi thanks for the reply,

I cant seem to get the EVALUATE function to work, i get error "invalid
function"
Back to top
Stefi
External


Since: Mar 06, 2006
Posts: 432



PostPosted: Tue Feb 24, 2009 6:06 am    Post subject: Re: Change operator from cell value [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

What Excel version do you use? I tried it in Excel2003.

Make sure that you entered =IF(EVALUATE(A1&A2&A3),"yes","no") in name
defining dialog reference field! EVALUATE does NOT work as a normal worksheet
function!

Stefi



„Gareth.Evans” ezt írta:

> Hi thanks for the reply,
>
> I cant seem to get the EVALUATE function to work, i get error "invalid
> function"
>
>
Back to top
Glenn
External


Since: Jan 12, 2009
Posts: 95



PostPosted: Tue Feb 24, 2009 8:30 am    Post subject: Re: Change operator from cell value [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Gareth.Evans wrote:
> Hi thanks for the reply,
>
> I cant seem to get the EVALUATE function to work, i get error "invalid
> function"
>


Look here for a further explanation:

http://www.ozgrid.com/News/excel-evaluate-formula-VBA.htm#ExcelTips
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Worksheet Functions All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum