Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a cell that shows =IF(ISBLANK($E12),1,0) I have another that shows =IF($E4="Total:",1,0)

Is there a way to make them do the same thing, so if the cell shows 0 or Total: it shows 1, otherwise it will show 0, even if there is something else in it.

I thought there was a formula that would do that, but I don't have it in my collection...

If anyone could help scramble up something like that together it be greatly appreciated.

share|improve this question

migrated from stackoverflow.com Sep 23 '12 at 0:32

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer

up vote 4 down vote accepted

This'll do the trick:

=IF(OR(ISBLANK($E12),$E4="Total:"),1,0)
share|improve this answer
    
I've done some programming in the past, sometimes I really miss the IFWhile loops. Thanks. –  Matt Ridge Sep 20 '12 at 18:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.