Simple IF Statement not working :-(

snoozee

New Member
Joined
Apr 19, 2007
Messages
37
The data in my spreadsheet is being pulled from an SQL database and the columns are all formatted as 'General'.

The weird part about this is some of my IF statements are working and others aren't, this one works =IF([@Amount]>5000,"Yes","No"). The amount column is in a General format and so is the column that I'm putting the formula into.

I then have this formula =IF([@[Note_50]]>5000,"Yes","No") which isn't working (extract below) and once again both columns are formatted to General.

Any help would be greatly appreciated as I can't work out why it would be doing this :(

Note_50Over 5k
100.00Yes
No
6000.00Yes
150.00Yes
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Your "numbers" in Note_50 look like text values - left justified.

="100.00">5000 will return TRUE, for example.
 
Upvote 0
That was me typing them into the table so not an actual extract of my spreadsheet
OK ... but my comment still stands. I can replicate your incorrect results if the values in Note_50 are text, rather than numbers.

ABCD
1
2Note_50Over 5K
3100.00TRUE
4FALSE
56000.00TRUE
6150.00TRUE
7
Sheet1
Cell Formulas
RangeFormula
C3:C6C3=[@[Note_50]]>5000
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,581
Members
449,089
Latest member
Motoracer88

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