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
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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
 
Upvote 0
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 ..
 
Upvote 0
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
 
Upvote 0
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]
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,213,484
Messages
6,113,924
Members
448,533
Latest member
thietbibeboiwasaco

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