Help with vlookup and multiple lines

ahooper

New Member
Joined
Feb 5, 2010
Messages
4
I'm not that great at excel and just learning some of the basics so hopefully this doesn't get too embarassing....

I'm trying to use a vlookup to combine one spread sheet with another. The vlookup works great when it comes to the first date but I haven't figured out how to make it go to the next date.

Goes like this:

first sheet:
location1 date1 value1
location1 date2 value2
location1 date3 value3
location3 date1 value4
location3 date2 value5
location3 date3 value6
etc.

second sheet:
location1 date1 value7
location1 date2 value8
location1 date3 value9
location2 date1 value10
location2 date2 value11
location2 date3 value12
location3 date1 value13
location3 date2 value14
location3 date3 value15
etc.

I'm trying to get the first sheet to pull data from the second sheet and return the value matching the location AND the date... and not every location on the first sheet is on the second sheet and vice versa...

Please help????

Thanks.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
try this one:
Code:
=SUMPRODUCT(--(Sheet2!$A$1:$A$9=Sheet1!A1),--(Sheet2!$B$1:$B$9=Sheet1!B1),Sheet2!$C$1:$C$9)
 
Upvote 0
Thx for trying to help! I couldn't get that to work but I searched around and found another way around it... thanks again :)
 
Upvote 0

Forum statistics

Threads
1,215,494
Messages
6,125,139
Members
449,207
Latest member
VictorSiwiide

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