• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

2 level Vlookup (1 is exact match 1 is approximate match)

I have a table as attached.

Column B has a range of categories (Duplicates will be present). Column C and D contain the minimum and maximum quantity. Column E contains the Number of days required.

Now input would be the category and the Quantity. Output should be the number of days.

Any help would be great :)
 

Attachments

Thanks for your quick help Deepak.

I guess I should have made the example with more details. For the combination of "Category" column (B) and specific quantity which lies between the range specified in Min (C) and (D), the output should be returned from "Days" Column (E).

Values specified in Cell H3 are specific and would be only from column B. However values in H4 would be any random number; however within the predetermined range of column C and D.

Example: 1
H3 and H4 are "Mobiles" and "1809", H7 should be calculated as 2

Example: 2
H3 and H4 are "IT" and "9101", H7 should be calculated as 5.
 
Hi Ganesh Ravichandran, welcome to the forum :awesome:

Check this array formula also:

=INDEX(E3:E180,MATCH(H3,IF(H4>=C3:C180,IF(H4<=D3:D180,B3:B180)),0))

to be entered with Ctrl+Shift+Enter (not just enter)

Regards,
 
Back
Top