Struggling with blank cells

Red Bull

New Member
Joined
Jan 22, 2015
Messages
32
Group,

I have a formula in A2 that I am struggling with to show correctly: =IF(A1>=0.5,B1,IF(A1="","",IF(A1<.5,B2)))

What I am trying to do is look in A1 for a value. If the value is greater than or equal to .5, give me B1 and if it's less than .5, give me B2.
However the problem I'm having is if F1 is blank, I would like A2 to be blank but it's not working.

A1 has a formula in it that makes it display as ""

Thanks,
 
Test for the blank first, then the numeric tests..

=IF(A1="","",IF(A1>=0.5,B1,IF(A1<0.5,B2)))

The way you had it, if A1 is a formula returning "", then A1>=0.5 is TRUE
YES, > and < operators consider TEXT strings to be greater than Numbers ("" is a text string, not a blank).
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Test for the blank first, then the numeric tests..

=IF(A1="","",IF(A1>=0.5,B1,IF(A1<0.5,B2)))

The way you had it, if A1 is a formula returning "", then A1>=0.5 is TRUE
YES, > and < operators consider TEXT strings to be greater than Numbers ("" is a text string, not a blank).

You nailed it Jonmo1! Thanks a million!!!
 
Upvote 0

Forum statistics

Threads
1,216,079
Messages
6,128,687
Members
449,464
Latest member
againofsoul

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