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!
 

Some videos you may like

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723
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
 

mfexcel

Well-known Member
Joined
Jan 8, 2009
Messages
791
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!
 

Kerrold

New Member
Joined
Mar 7, 2012
Messages
28
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!
 

mfexcel

Well-known Member
Joined
Jan 8, 2009
Messages
791
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!
 

Watch MrExcel Video

Forum statistics

Threads
1,102,305
Messages
5,486,072
Members
407,532
Latest member
shahbazfcca

This Week's Hot Topics

Top