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

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

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,127,653
Messages
5,626,101
Members
416,161
Latest member
David1966Lewis

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
Top