Note lookup with 2 conditions

Kerrold

New Member
Joined
Mar 7, 2012
Messages
28
Hi I have a table that has
Col A = Date
Col B = Customer name
Col C = Product
Col D = Note

I need a formula that will populate a cell with the relevant note in a separate worksheet based on the most recent note (based on date added)
for customer x and product y

For example if cell B8 = customer x and cell E7 = product y then the most recent note added for that is ???

Many thanks in advance!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hard to say without seeing more detail on what you are working with, but I would probably add a helper column and combine Customer and Product, then use INDEX/MATCH based on that combo and search for the MAX date
 
Upvote 0
Not exactly understand your requirement.
Here's an article for your reference.
Perform VLOOKUP with 2 lookup values | wmfexcel


Hi I have a table that has
Col A = Date
Col B = Customer name
Col C = Product
Col D = Note

I need a formula that will populate a cell with the relevant note in a separate worksheet based on the most recent note (based on date added)
for customer x and product y

For example if cell B8 = customer x and cell E7 = product y then the most recent note added for that is ???

Many thanks in advance!
 
Upvote 0
Thank you for the link mfxcel, greatly appreciated! :)

I used the Index Match formula as follows

=INDEX(Notes!H:H,MATCH(1,(Notes!F:F=Summary!B8)*(Notes!G:G=Summary!F7),0))

Thank you in advance!
 
Upvote 0
You are welcome. Glad that it helps.
btw, try not to use whole column referencing.


Thank you for the link mfxcel, greatly appreciated! :)

I used the Index Match formula as follows

=INDEX(Notes!H:H,MATCH(1,(Notes!F:F=Summary!B8)*(Notes!G:G=Summary!F7),0))

Thank you in advance!
 
Upvote 0

Forum statistics

Threads
1,212,927
Messages
6,110,718
Members
448,294
Latest member
jmjmjmjmjmjm

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