Lookup each value in a list based on another column with duplicates

Drew_

Board Regular
Joined
Jul 8, 2017
Messages
87
Hi all.

I have a list of dates that contains some dates twice. I will provide some sample data below:

09/01/17 A/P
09/01/17 IM
09/05/17 A/R 11,867.00
09/07/17 IM
09/07/17 IM
09/07/17 IM 09/05/17 250.00
09/08/17 IM 09/07/17 620.00
09/08/17 A/R 900.00
09/08/17 ACH055
09/08/17 ACH055
09/08/17 ACH056
09/08/17 450.00
09/08/17
09/08/17



I would like to lookup the dollar values (third column here, call it C) for each specific date (Column A) and type of transaction (Column B). When I do INDEX/MATCH, it only looks up the first occurrence of the date and returns that value for every duplicate. I tried using OFFSET with it and that did not work either.

I essentially just want to return each unique value for each line item. Please let me know if I was not clear enough. Any help is appreciated, thanks

EDIT: I tried spacing out the data and it works fine when I edit it, but when I post it, it goes back to being cluttered. Let me know if it is not clear enough, thanks
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I tried spacing out the data and it works fine when I edit it, but when I post it, it goes back to being cluttered.
Part B here shows you a couple of ways you can post screenshots: https://www.mrexcel.com/forum/board-announcements/127080-guidelines-forum-use.html

It's not clear so far what your data looks like, but if it's guaranteed that there can be only one dollar value per date/transaction type, then perhaps:

D17: =SUMIFS(C$1:C$14,A$1:A$14,B17,B$1:B$14,C17)


Excel 2010
ABCD
11 Sep 2017A/P
21 Sep 2017IM
35 Sep 2017A/R11,867.00
47 Sep 2017IM
57 Sep 2017IM
67 Sep 2017IM250.00
78 Sep 2017IM620.00
88 Sep 2017A/R900.00
98 Sep 2017ACH055
108 Sep 2017ACH055777.00
118 Sep 2017ACH056
128 Sep 2017xxx450.00
138 Sep 2017
148 Sep 2017
15
16Find:Result:
177 Sep 2017IM250.00
188 Sep 2017ACH055777.00
Sheet1
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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