Multiple Criteria Lookup

jweese74

New Member
Joined
May 5, 2005
Messages
25
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Platform
  1. Windows
Looking for help with some sort of lookup, I've been unable to figure it out although I'm sure it's possible. I've tried vlookup, match, index, and a combination of the three but can't seem to get what I want, working.

Following are examples, not necessarily the information, but more simplistic.

Sheet 1 contains vital statistics for an individual, added to and updated using an effective "Change Date", for example:

Code:
Change Date     NAME             Address                Telephone        Email 
01-01-2018      MUNTZ NELSON     299 Simpson St         113-281-3187     nmuntz@simpsons.com 
01-01-2018      SIMPSON HOMER    124 Simpson St         971-981-2440     homerj@simpsons.com 
01-01-2018      SZYSLAK MOE      300 Drunkards Ave      510-754-7145     moestavern@simpsons.com 
01-01-2018      VAN HOUTEN M     100 Simpson St         526-470-7164     sexyhouse@simpsons.com 
05-31-2018      SIMPSON HOMER    124 Simpson St         818-071-1862     homerj@simpsons.com 
08-02-2018      WIGGUM RALPH     200 Crooks Way         232-794-5521     chiefbeef@simpsons.com 
09-15-2018      SIMPSON HOMER    124 Simpson St         421-103-2847     hsimpsons@simpsons.com

Sheet 2 contains an ongoing log of transactions for an individual, but is updated with vital statistics from Sheet 1 that were relevant at the time of the log entry. In this example, the effective date, name, and invoice amount would be added, and the remaining columns would be provided via a lookup of some sort with the data that was relevant at the time of effective date, for example:

Code:
Effective Date  NAME             Address          Telephone        Email                   Invoice Amount 
01-01-2018      SIMPSON HOMER    124 Simpson St   971-981-2440     homerj@simpsons.com     50.00 
02-01-2018      SIMPSON HOMER    124 Simpson St   971-981-2440     homerj@simpsons.com     72.00 
03-05-2018      SIMPSON HOMER    124 Simpson St   971-981-2440     homerj@simpsons.com     71.00 
04-20-2018      SIMPSON HOMER    124 Simpson St   971-981-2440     homerj@simpsons.com     74.00 
06-01-2018      SIMPSON HOMER    124 Simpson St   818-071-1862     homerj@simpsons.com     67.00 
07-02-2018      SIMPSON HOMER    124 Simpson St   818-071-1862     homerj@simpsons.com     55.00 
07-15-2018      SIMPSON HOMER    124 Simpson St   818-071-1862     homerj@simpsons.com     66.00 
07-18-2018      SIMPSON HOMER    124 Simpson St   818-071-1862     homerj@simpsons.com     64.00 
11-20-2018      SIMPSON HOMER    124 Simpson St   421-103-2847     hsimpsons@simpsons.com  79.00

Thoughts around this?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
just so I fully understand, are you looking for values in sheet 2 to be summarised in sheet 1 with the effective date in sheet 2 as the change date in sheet 1?
 
Upvote 0
just so I fully understand, are you looking for values in sheet 2 to be summarised in sheet 1 with the effective date in sheet 2 as the change date in sheet 1?

I am looking to draw the Address, Telephone, and Email from Sheet 1 into Sheet 2, using the Address, Telephone, and Email from Sheet 1 that was relevant at the time of the Effective Date in Sheet 1.

For example, Mr. Simpson has two changes, one on January 1st, one on March 31st. If I enter an invoice on February 1st, Sheet 2 will use the data for the period between January 1st and March 30th (Address, Telephone, and Email), if I enter an invoice on an effective date of April 5th, Sheet 2 will use the Address, Telephone, and Email for the period March 31st since the data provided on March 31st is the most current information at the time of invoice.

Does that help?
 
Upvote 0
deleted
 
Last edited:
Upvote 0

You've got it, almost, this looks quite promising, however, when I tested it and changed an effective date to (for example) 08-06-2018 I receive an #N/A error.
 
Last edited:
Upvote 0
try this


Book1
ABCDEF
1Change DateNAMEAddressTelephoneEmail
201/01/2018MUNTZ NELSON299 Simpson St113-281-3187nmuntz@simpsons.com
301/01/2018SIMPSON HOMER124 Simpson St971-981-2440homerj@simpsons.com
401/01/2018SZYSLAK MOE300 Drunkards Ave510-754-7145moestavern@simpsons.com
501/01/2018VAN HOUTEN M100 Simpson St526-470-7164sexyhouse@simpsons.com
631/05/2018SIMPSON HOMER124 Simpson St818-071-1862homerj@simpsons.com
702/08/2018WIGGUM RALPH200 Crooks Way232-794-5521chiefbeef@simpsons.com
815/09/2018SIMPSON HOMER124 Simpson St421-103-2847hsimpsons@simpsons.com
9
10Effective DateNAMEAddressTelephoneEmailInvoice Amount
1101/01/2018SIMPSON HOMER124 Simpson St971-981-2440homerj@simpsons.com50
1201/02/2018SIMPSON HOMER124 Simpson St971-981-2440homerj@simpsons.com72
1305/03/2018SIMPSON HOMER124 Simpson St971-981-2440homerj@simpsons.com71
1420/04/2018SIMPSON HOMER124 Simpson St971-981-2440homerj@simpsons.com74
1501/06/2018SIMPSON HOMER124 Simpson St818-071-1862homerj@simpsons.com67
1602/07/2018SIMPSON HOMER124 Simpson St818-071-1862homerj@simpsons.com55
1715/07/2018SIMPSON HOMER124 Simpson St818-071-1862homerj@simpsons.com66
1818/08/2018SIMPSON HOMER124 Simpson St818-071-1862homerj@simpsons.com64
1920/11/2018SIMPSON HOMER124 Simpson St421-103-2847hsimpsons@simpsons.com79
Sheet3
Cell Formulas
RangeFormula
C11{=INDEX($C$2:$E$8,MATCH(LOOKUP($A11,IF($B$2:$B$8=$B11,$A$2:$A$8))&$B11,$A$2:$A$8&$B$2:$B$8,0),MATCH(C$10,$C$1:$E$1,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
Perfect, this seems to do the trick - I've never used the curly braces before, great learning experience. Thanks again!
 
Upvote 0
you're welcome
glad that work for you.
 
Upvote 0

Forum statistics

Threads
1,215,696
Messages
6,126,267
Members
449,308
Latest member
VerifiedBleachersAttendee

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