How do i nested IF AND OR with unique values and unique message

AndyJR

Board Regular
Joined
Jun 20, 2015
Messages
90
Hi,

Cell E3 display dynamic reference values between 000 to 333 ( e.i 000,001,002,003, etc,etc)
Each reference have their "own" measure values that is displayed on cells
F3,G3,I3,R3,T3
for example :

Rich (BB code):
=IF(AND(OR(E3={"000"}),OR(F3={1,2,3,4}),OR(G3={4,6,10,14}),OR(I3={1,2,4,5}),OR(R3={5,6,7,8}),OR(T3={0,3,5,7})),"IN","OUT")

The formula work fine, at the cell Z3 it display correctly "OUT" (without quote)

but when i nested the exact same formula with Different reference and different values with "&" it display "OUT" "OUT" (twice)

please can someone tell me where is the error? or how i do nest both formula?

PS
in reality there are 24 formulas with different reference and values that i have to nested


Thank you !!
 
Hi Matty,

Make sense but i'm not sure how to start, i can start from scratch and watching your tube video..

But yes, it make sense.
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi,

For example...

Main table below (E2:X12):

valHTtSk-L3*3--------9*L-Tran--REFTEXT
01215-6--------0-0--12OUT
00112-1--------4-19--1IN
01021-7--------8-21--10OUT
20012-8--------5-4--200OUT
20116-9--------4-2--201OUT
10110-2--------2-6--101IN
02011-0--------3-5--20OUT
00024-4--------8-7--0IN
01031-3--------1-21--10IN
00024-5--------8-7--0OUT

<tbody>
</tbody>

Check table (Z2:AE6):

valHTtSkL3*39*LTran
00024487
001121419
010313121
10110226

<tbody>
</tbody>

Array formula in X3 and copied down:

Code:
=IF(ISNUMBER(MATCH(E3&"|"&F3&"|"&G3&"|"&I3&"|"&R3&"|"&T3,Z$3:Z$6&"|"&AA$3:AA$6&"|"&AB$3:AB$6&"|"&AC$3:AC$6&"|"&AD$3:AD$6&"|"&AE$3:AE$6,0)),"IN","OUT")

Does this do what you need?

Cheers,

Matty
 
Upvote 0
Hi Matty,

I Think is super useful the table + your formula, but i'm thinking:
Reference and values are dynamic and not same values at all time, and sometimes they will match, other times dont,
that's why i was looking for the IF/AND/OR to include 3, even 5 values for each reference

i.e
Rich (BB code):
=IF(AND(OR(E3={012}),OR(F3={1,2,3,4}),OR(G3={4,6,10,14})'....etc, etc

on the example (screen shot) i've posted This time matched because i added the values for that purpose.
the idea was to add some others values inside the formula (not just 1 value per row) for each Reference but Ill try to adapt the table and your formula to it...

Thank you so much matty, appreciate a lot!!!!!!!!!!!!!!!:)
 
Upvote 0

Forum statistics

Threads
1,215,022
Messages
6,122,721
Members
449,093
Latest member
Mnur

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