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'

Input data:

Names



Values
AAA
100.00
BBB200.00
CCC300.00
DDD100.00
AAA240.00
CCC350.00
FFF110.00
AAA250.00
FFF100.00

<tbody>
</tbody>

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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

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,214,895
Messages
6,122,128
Members
449,066
Latest member
Andyg666

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