Getting the wrong result on a formula??

dollyann

Board Regular
Joined
Jan 26, 2011
Messages
61
Hi

This is probably simple, but i can't figure it out and hoping someone can answer me?

In cell A1 = 0
In cell A2 = is a formula (=IF(A1<23,"Below",if(A1>25,"Above","Target"))

The result comes back as Above instead of Below, how do i get the result to say Below as the answer is zero?

Please can someone help as it's driving me potty....lol :0)

Thanks you
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
dollyann,

The only thing I can think of is that your cell A1 is formatted as text, or instead of a zero it contains the letter o. That would cause the behavior you're seeing.

~tigeravatar
 
Upvote 0
Hi

Thanks for answering so quickly.

In cell A1 there is a formula

=IF(b1=0,"£0.00",SUM(b2/b3))

But all the 0's are numbers not text.

Any more ideas why?

Thank you
 
Upvote 0
=IF(b1=0,"£0.00",SUM(b2/b3))
returns £0.00 as text, not a number. You should use:
=IF(b1=0,0,SUM(b2/b3))
and format the cell to show the pound sign instead.
 
Upvote 0
dollyann,

The £ symbol in your formula is text and is causing the result to be a text expression, not a numeric one. Instead, format the cell as currency and leave the £ symbol out of the formula:
=IF(b1=0,0,SUM(b2/b3))

~tigeravatar
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,917
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top