blank cell instead of x

B

bill gras

I need a formula to have a blank cell instead of a "x" eg:
result
should be:
aa ab ac ad ae af ag ah ai aj ak al am an ao
2 6 3 6 2 5 17 20 15 205 18 6 3 6 2x 5
3 1 5 7 19 12 133 1 5 7x

the formula i used is: =IF(AF2>=42,AA2&""&"x",IF(AF2="","",AA2))
on row 3 there are blank cells (null string contains formulas ) when
I apply the formula to those cells it returns a "x" instead of a blank cell

can someone help please

bill gras
 
D

David Biddulph

Don't forget that any string, including your null string, evaluates to
greater than any number, so "">=42 is TRUE.
Perhaps you want your conditions in the opposite order?

Try changing
=IF(AF2>=42,AA2&""&"x",IF(AF2="","",AA2))
to
=IF(AF2="","",IF(AF2>=42,AA2&""&"x",AA2))
 
B

bill gras

Hi David Biddulph

Your suggestion works perfect . Thank You
Have a prosperous new year
 

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

Top