Hello,
I'm looking for some help with a project I'm working on. I need to assign codes from Sheet 2 to Sheet 1 based on specific criteria.
Specifically, I want to match the codes on Sheet 2 to the specifications on Sheet 1, ensuring they fall within the appropriate ranges defined on Sheet 2.
I was trying to use IF(AND(C3>=Sheet2!C3:C, C3<=Sheet2!D3:D), C3, 0) something like this to return the value falls within the range on Sheet2 but it seems meaningless and don't have a clue to where to start.
Does anyone have any ideas or suggestions on how to approach this?
Any advice to get me started would be greatly appreciated!
== Updated 7/9==
Thank you all for your replies.
Here is the expected results below: There should be N/A if the dataset do not fall into the range of the code data.
20240709_134537.png
And here is the updated excel file:
Book20.xlsx
I also tried something like this and it is not working of course:
=INDEX($K$2:$K$22,MATCH(FILTER($L$2:$L$22,($L$2:$L$22=A3)*($M$2:$M$22=B3)*($N$2:$N$22=C3)*($O$2:$O$22<=D3)*($P$2:$P$22>=D3)*($Q$2:$Q$22<=E3)*($R$2:$R$22>=E3)*($S$2:$S$22<=F3)*($T$2:$T$22>=F3),"N/A"),$K$2:$T$22,0))
I think I should understand the array formula first and it feels overwhelming at the moment
20240709_135037.png
Bookmarks