Return each unique value for a single criteria

Emma Eve

New Member
Joined
Jan 24, 2018
Messages
20
Hello.

I have a spreadsheet that contains multiple documents some of which are duplicates. The vast majority of the time the duplicates have different dollar amounts. However, after applying an INDEX/MATCH, the formula returns the fist dollar value it reads and applies that amount to all duplicates. Is there a way to return each unique dollar value for the duplicated document number? For example:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Doc Number[/TD]
[TD]Dollar Amounts[/TD]
[TD]Amount - My results after INDEX/MATCH[/TD]
[TD]Amount - Desired Results[/TD]
[/TR]
[TR]
[TD]DOCX111[/TD]
[TD]1000[/TD]
[TD]1000[/TD]
[TD]1000
[/TD]
[/TR]
[TR]
[TD]DOCX111[/TD]
[TD]2000[/TD]
[TD]1000[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]DOCX111[/TD]
[TD]3000[/TD]
[TD]1000[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]DOCX111[/TD]
[TD]4000[/TD]
[TD]1000[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Thank you!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Maybe something like this array formula.

This formula must be enter with
Excel Workbook
AB
1NumberDollar Amounts
2DOCX1111000
3DOCX1112000
4DOCX1121200
5DOCX1113000
6DOCX1114000
7DOCX1121500
8
9
10
11
12Number:DOCX111
13Amounts1000
142000
153000
164000
17
CTRL-SHIFT-ENTER.
 
Upvote 0
I was just ready to reply in a (much) more clunky manner. Thanks - I love learning better approaches!
 
Upvote 0
Thank you, AhoyNC. Is it possible for the unique results to appear next to each identical doc. number as they appear in column A?
 
Upvote 0
Yes, You could do something like this (not sure what your actual layout looks like).
Formula needs to be entered with CTRL-SHIFT-ENTER.
Then drag down column as needed.
Excel Workbook
AB
1NumberDollar Amounts
2DOCX1111000
3DOCX1112000
4DOCX1121200
5DOCX1113000
6DOCX1114000
7DOCX1121500
8
9
10
11NumberDollar Amounts
12DOCX1111000
13DOCX1112000
14DOCX1113000
15DOCX1114000
16DOCX1121200
17DOCX1121500
Sheet
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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