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,
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,651
Office Version
  1. 365
  2. 2019
  3. 2013
  4. 2007
Platform
  1. Windows
Is F1 an extra condition to the formula you provided ??
 
Upvote 0

Red Bull

New Member
Joined
Jan 22, 2015
Messages
32
Sorry, no. That should read A1.



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 A1 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 ""
 
Upvote 0

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,651
Office Version
  1. 365
  2. 2019
  3. 2013
  4. 2007
Platform
  1. Windows
Maybe this
Code:
=IF(A1=CHAR(34)&CHAR(34),"",IF(A1>=0.5,B1,B2))
 
Upvote 0

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,651
Office Version
  1. 365
  2. 2019
  3. 2013
  4. 2007
Platform
  1. Windows
ADVERTISEMENT
I guess my next question would be .....why would you have a cell result in A1 as "".
If you wanted to do counting or other queries, that cell would skew the results...?
 
Upvote 0

deletedalien

Well-known Member
Joined
Dec 8, 2008
Messages
505
Office Version
  1. 2013
Platform
  1. Windows
you could remove the "" from the formula in cell A1 and then just use cond, formatting to mark the text as white if = to 0... i know its cheap and kinda cheating but it works....
 
Upvote 0

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,651
Office Version
  1. 365
  2. 2019
  3. 2013
  4. 2007
Platform
  1. Windows
ADVERTISEMENT
That will cause the same issues as I have mentioned in the previous post.
 
Upvote 0

Red Bull

New Member
Joined
Jan 22, 2015
Messages
32
you could remove the "" from the formula in cell A1 and then just use cond, formatting to mark the text as white if = to 0... i know its cheap and kinda cheating but it works....

I'm ok with cheap and cheating but the problem with this is that sometimes the value in A1 is actually zero and then I would want to return B2 (in regular font). :)
Nice try though - I like where you're coming from. lol
 
Upvote 0

Forum statistics

Threads
1,195,934
Messages
6,012,385
Members
441,694
Latest member
Elvin A

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
Top