ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   if/or formula (https://www.excelbanter.com/new-users-excel/261421-if-formula.html)

Barny

if/or formula
 
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

ozgrid.com

if/or formula
 
=IF(OR(I132="N",J132="M"),K132,"")



--
Regards
Dave Hawley
www.ozgrid.com
"Barny" wrote in message
...

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




--
Barny



Joe User[_2_]

if/or formula
 
"Barny" wrote:
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)


All times are GMT +1. The time now is 07:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com