I am trying to look at column E and if it is >0 put a 1 UNLESS column D has a value. If column D has a value, I would like to copy the contents of column D. I was thinking the following formula would work, but it is giving me an error:

=IF(E2>0,1) OR IF(D2>0,D2)
link|improve this question

feedback

1 Answer

up vote 3 down vote accepted

Well you don't say what you want to happen if E is not > 0, but with that caveat:

=IF(E2>0, IF(D2>0, D2, 1), SOMETHING)
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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