Nesting a lookup function in IFS function

witty_witwit

New Member
Joined
Aug 6, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi!
I have a large dataset and trying to detect specific patterns of numerical sequence. the first 8 logical tests in the image are to return a value if true -basic IFS function stuff- the tricky part is that there are four patterns that if found would need a further lookup down the array to see if there’s a 0 in order to determine which value to return, I tried to nest LOOKUP’s or XMATCH functions but they return #N/A error value instead of the “if false” value of the IF statement. Thoughts as of how can I get this to work or possible alternatives?

Thanks!
 

Attachments

  • Screenshot 2022-08-06 215517.jpg
    Screenshot 2022-08-06 215517.jpg
    134.2 KB · Views: 20

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi!
I have a large dataset and trying to detect specific patterns of numerical sequence. the first 8 logical tests in the image are to return a value if true -basic IFS function stuff- the tricky part is that there are four patterns that if found would need a further lookup down the array to see if there’s a 0 in order to determine which value to return, I tried to nest LOOKUP’s or XMATCH functions but they return #N/A error value instead of the “if false” value of the IF statement. Thoughts as of how can I get this to work or possible alternatives?

Thanks!
Instead of HLOOKUP can we try
Excel Formula:
COUNTIFS(EP2:$FE2),0)<16
 
Upvote 0
A good idea! but I ended up doing an IF-OR statement including the next five cells i.e. -
OR(AND(EL19=2,EM19=1,EN19=0,EO19=-1),AND(EL19=1,EM19=0,EN19=-1,EO19=-2)),IF(OR(EP19=0,EQ19=0,ER19=0,ES19=0,ET19=0),"Rv-A-W","Rm-A-W")

A bit basic and longer but it got the job done :)

Thanks for replying!
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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