if/or formula

B

Barny

I would like to return the result in cell K132 based on the following-

Cell K132 will return the result N or M when/if I132 = N or J132 = M

Cells I132 and J132 will not contain N or M at the same time i.e. i
I132 = N then J132 will be blank and vice vers
 
J

Joe User

Barny said:
I would like to return the result in cell K132 based
on the following- Cell K132 will return the result N
or M when/if I132 = N or J132 = M
Cells I132 and J132 will not contain N or M at the
same time i.e. if I132 = N then J132 will be blank
and vice versa

Can even you understand what you wrote?!

Maybe, in K132:

=if(I132="N", "N", if(J132="M", "M", ""))

Or maybe more generally:

=if(I132<>"", I132, J132)
 
D

Dianne

I would like to return the result in cell K132 based on the following-
Cell K132 will return the result N or M when/if I132 = N or J132 = M

Cells I132 and J132 will not contain N or M at the same time i.e. if
I132 = N then J132 will be blank and vice versa




__________________
An easier formula would just be:

=if(i132="N","N",j132)
 

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