IF Function Does Not Work With Cell Reference

  • Thread starter Thread starter Gary
  • Start date Start date
G

Gary

Say you have a "<" sign in cell A1

And cell B1 contains "=A1".

Now, if I use an IF function that says =IF(A1="<","Curly","Larry") I
get Curly.

But if the IF function references B1, I get Larry.

So it seems that EXCEL 2003 is not smart enough to know that the value
of B1 is actually "<".

How can I fix this so that when I reference Cell B1 I get Curly.

Thanks,

Gary
 
It works also on my Excel 2003 SP2 (Italian version)

Ardus said:
Works by me (Excel 2000 - Win XP Pro)

HTH

--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy
 
Works in all versions, I suspect the OP has some hidden space(s) in A1

=IF(TRIM(A1)="<","Curly","Larry")

would fend off spaces

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top