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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi,

For example...

Main table below (E2:X12):

[TABLE="class: tableizer-table"]
<tbody>[TR="class: tableizer-firstrow"]
[TH]val[/TH]
[TH]HTt[/TH]
[TH]Sk[/TH]
[TH]-[/TH]
[TH]L3*3[/TH]
[TH]-[/TH]
[TH]-[/TH]
[TH]-[/TH]
[TH]-[/TH]
[TH]-[/TH]
[TH]-[/TH]
[TH]-[/TH]
[TH]-[/TH]
[TH]9*L[/TH]
[TH]-[/TH]
[TH]Tran[/TH]
[TH]-[/TH]
[TH]-[/TH]
[TH]REF[/TH]
[TH]TEXT[/TH]
[/TR]
[TR]
[TD]012[/TD]
[TD]1[/TD]
[TD]5[/TD]
[TD]-[/TD]
[TD]6[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]0[/TD]
[TD]-[/TD]
[TD]0[/TD]
[TD]-[/TD]
[TD]-[/TD]
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
[TD]-[/TD]
[TD]7[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]0[/TD]
[TD]OUT[/TD]
[/TR]
</tbody>[/TABLE]

Check table (Z2:AE6):

[TABLE="class: tableizer-table"]
<tbody>[TR="class: tableizer-firstrow"]
[TH]val[/TH]
[TH]HTt[/TH]
[TH]Sk[/TH]
[TH]L3*3[/TH]
[TH]9*L[/TH]
[TH]Tran[/TH]
[/TR]
[TR]
[TD]000[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]8[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]4[/TD]
[TD]19[/TD]
[/TR]
[TR]
[TD]010[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]

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,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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