vlookup + index match

kieuchau

New Member
Joined
Dec 16, 2016
Messages
10
Hello,
I am trying to get a value from one table to another. I am having trouble with the formula.
Referencing the example:

Serial NumberDateValue
112/16/16?
28/19/16
36/2/16

<tbody>
</tbody>

Serial NumberStartEndValue
11/1/1612/31/1650
11/1/151/31/15100

<tbody>
</tbody>


Thank you kindly in advance.
KC
 

Some videos you may like

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723
See if this will work for you...
A​
B​
C​
D​
1​
Serial NumberDateValue
2​
112/16/201650
3​
28/19/2016150
4​
36/2/2016350
5​
6​
7​
Serial NumberStartEndValue
8​
11/1/201612/31/201650
9​
11/1/20151/31/2015100
10​
21/1/201612/31/2016150
11​
21/1/20151/31/2015200
12​
31/1/201612/31/2016350
13​
31/1/20151/31/2015300
C2=SUMPRODUCT(--(YEAR($B$8:$B$13)=YEAR(B2)),--($A$8:$A$13=A2),$D$8:$D$13)
copied down
 

kieuchau

New Member
Joined
Dec 16, 2016
Messages
10
Thanks for your quick response Ford!
However, it didn't work..
Also, sometimes the years in start/end date could be 4/1/15-3/31/16 ..
 

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723
What didn't work - wrong answer - no answer - something else? As you can see from my sample, it worked there.

Also, when you post sample data, you need to make it as representative of your actual data as possible.
Will there only ever be 1 match? If so, perhaps SUMIFS() may be a way to go
 

kieuchau

New Member
Joined
Dec 16, 2016
Messages
10

ADVERTISEMENT

What didn't work - wrong answer - no answer - something else? As you can see from my sample, it worked there.

Also, when you post sample data, you need to make it as representative of your actual data as possible.
Will there only ever be 1 match? If so, perhaps SUMIFS() may be a way to go

[FONT=&quot]Hello,[/FONT]
[FONT=&quot]I just get a bunch of #value all the way down. [/FONT]
[FONT=&quot]There will be matches.[/FONT]
[FONT=&quot]
[/FONT]
[FONT=&quot]Thanks![/FONT]
 

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723

ADVERTISEMENT

Are your4 dates real dates, or text looking like a date?
test with =isnumber(cell-ref) FALSE indicates text and we will need to convert them
 

kieuchau

New Member
Joined
Dec 16, 2016
Messages
10
Hi, Are the date ranges overlapping? And are there more than one possible matches per lookup date?

[FONT=&quot]Yes, the dates do overlap (some serial number's may share the same date range). and there will only be one possible match per date + serial.
Thanks! [/FONT]
 

Watch MrExcel Video

Forum statistics

Threads
1,122,657
Messages
5,597,391
Members
414,142
Latest member
Banyangt

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