Function IF AND OR (main Value cell) nested to multiples cells to get exact Result

AndyJR

Board Regular
Joined
Jun 20, 2015
Messages
90
Hi,

I trying to display depending on values from Main cell (cell C) nested with Multiples cell, so far a i have good result but i still need to add a criteria on more cells with some values.
i made a short formula that is working :
Code:
=IF(AND(OR(C4="000",C4="001",C4="002",C4="010",C4="011"),D4="1",E4="0"),"Stay","AWAY")

But to existing formula i need to add multiples different values of Cell D and E to get a correct display :

Example : If
C4 have One of these Value-> 000, 001, 002, 010, 011
and
D4 have --> 1
and
E4 have --> 1
and
F4 have --> 3
then Display -> "Stay" if FALSE then "AWAY"

Then at same Formula i need to add last part of the formula for Cell D4, E4 and F4 with different values, example
Cell (D4 have --> 2, E4 have --> 1, F4 have --> 2 )
Within the same formula but with out adding the Long formula applied to C4
(can i do that?)

Thank you very much for any help (or link suggestion)
 
Last edited:
Hi snjpverma,

Your formula work perfect and is shorter.

But Question:

How do i put together the same formula twice (up to 7 times) on same cell?
The second formula will be with different values on Cell C,D,E and F, and with the Text "Run" "walk"

I Put the formula and at the end i Add + (plus sign) and added the second formula (with out the =) and it display an #VALUE error (a value used in the formula is of the wrong data type)


Thanks again!!
 
Last edited:
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi

[SOLVED] Question on Post #11

After first long formula Added an ampersand "&" then added the second formula

Thank you!!!!!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top