Return Less value based on Duplicate names

harinsh

Active Member
Joined
Feb 7, 2012
Messages
273
Hello,

I am looking for excel function to return less value in Duplicate names given below. Ex. if we take AAA has three duplicates with different values however, I need less value out of all the duplicates and should be return the less value as output, in this case value 100.00 should get as output in column 'C'
[TABLE="width: 128"]
<tbody>[TR]
[TD]
Input data:

Names
[/TD]
[TD]


Values
[/TD]
[/TR]
[TR]
[TD]AAA
[/TD]
[TD]100.00
[/TD]
[/TR]
[TR]
[TD]BBB[/TD]
[TD]200.00
[/TD]
[/TR]
[TR]
[TD]CCC[/TD]
[TD]300.00
[/TD]
[/TR]
[TR]
[TD]DDD[/TD]
[TD]100.00
[/TD]
[/TR]
[TR]
[TD]AAA[/TD]
[TD]240.00
[/TD]
[/TR]
[TR]
[TD]CCC[/TD]
[TD]350.00
[/TD]
[/TR]
[TR]
[TD]FFF[/TD]
[TD]110.00
[/TD]
[/TR]
[TR]
[TD]AAA[/TD]
[TD]250.00
[/TD]
[/TR]
[TR]
[TD]FFF[/TD]
[TD]100.00
[/TD]
[/TR]
</tbody>[/TABLE]

Output data:
Names Values Result
AAA 100.00 100
BBB 200.00 na
CCC 300.00 300
DDD 100.00 na
AAA 240.00 100
CCC 350.00 300
FFF 110.00 100
AAA 250.00 100
FFF 100.00 100
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Excel 2010
ABC
1NamesValues
2AAA100
3BBB200
4CCC300
5DDD100
6AAA240
7CCC350
8FFF110
9AAA250
10FFF100
11
12NamesValuesResult
13AAA100100
14BBB200na
15CCC300300
16DDD100na
17AAA240100
18CCC350300
19FFF110100
20AAA250100
21FFF100100
Sheet18
Cell Formulas
RangeFormula
C13{=IF(COUNTIF($A$2:$A$10,A13)=1,"na",MIN(IF($A$2:$A$10=A13,$B$2:$B$10)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,112
Members
452,302
Latest member
TaMere

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