Return Less value based on Duplicate names

harinsh

Active Member
Joined
Feb 7, 2012
Messages
259
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
 

Some videos you may like

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

sheetspread

Well-known Member
Joined
Sep 19, 2005
Messages
5,117
<b>Excel 2010</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /><col /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">Names</td><td style=";">Values</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style=";">AAA</td><td style="text-align: right;;">100</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style=";">BBB</td><td style="text-align: right;;">200</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style=";">CCC</td><td style="text-align: right;;">300</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style=";">DDD</td><td style="text-align: right;;">100</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style=";">AAA</td><td style="text-align: right;;">240</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style=";">CCC</td><td style="text-align: right;;">350</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style=";">FFF</td><td style="text-align: right;;">110</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style=";">AAA</td><td style="text-align: right;;">250</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style=";">FFF</td><td style="text-align: right;;">100</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style=";">Names</td><td style=";">Values</td><td style=";">Result</td></tr><tr ><td style="color: #161120;text-align: center;">13</td><td style=";">AAA</td><td style="text-align: right;;">100</td><td style="text-align: right;;">100</td></tr><tr ><td style="color: #161120;text-align: center;">14</td><td style=";">BBB</td><td style="text-align: right;;">200</td><td style=";">na</td></tr><tr ><td style="color: #161120;text-align: center;">15</td><td style=";">CCC</td><td style="text-align: right;;">300</td><td style="text-align: right;;">300</td></tr><tr ><td style="color: #161120;text-align: center;">16</td><td style=";">DDD</td><td style="text-align: right;;">100</td><td style=";">na</td></tr><tr ><td style="color: #161120;text-align: center;">17</td><td style=";">AAA</td><td style="text-align: right;;">240</td><td style="text-align: right;;">100</td></tr><tr ><td style="color: #161120;text-align: center;">18</td><td style=";">CCC</td><td style="text-align: right;;">350</td><td style="text-align: right;;">300</td></tr><tr ><td style="color: #161120;text-align: center;">19</td><td style=";">FFF</td><td style="text-align: right;;">110</td><td style="text-align: right;;">100</td></tr><tr ><td style="color: #161120;text-align: center;">20</td><td style=";">AAA</td><td style="text-align: right;;">250</td><td style="text-align: right;;">100</td></tr><tr ><td style="color: #161120;text-align: center;">21</td><td style=";">FFF</td><td style="text-align: right;;">100</td><td style="text-align: right;;">100</td></tr></tbody></table><p style="width:4.2em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">Sheet18</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Array Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">C13</th><td style="text-align:left">{=IF(<font color="Blue">COUNTIF(<font color="Red">$A$2:$A$10,A13</font>)=1,"na",MIN(<font color="Red">IF(<font color="Green">$A$2:$A$10=A13,$B$2:$B$10</font>)</font>)</font>)}</td></tr></tbody></table><b>Entered with Ctrl+Shift+Enter.</b> If entered correctly, Excel will surround with curly braces {}.
<b>Note: Do not try and enter the {} manually yourself</b></td></tr></table><br />
 

Watch MrExcel Video

Forum statistics

Threads
1,095,172
Messages
5,442,823
Members
405,199
Latest member
mkarnout

This Week's Hot Topics

  • Copy entire row if CountA <>0 to another sheet
    [B]I want to copy entire row if CountA <>0 for column J7:AM7 (headers on J6:AM6) and so on till the last used cell is column D and paste the...
  • Select last used Row in Table
    I have created a Table in a Worksheet which is locked to prevent user errors and protect formula. Some of the cells require freetext entries which...
  • excel workbook: do not allow certain file name
    Hello all, Don't think this has ever been asked before, but how do I restrict file save [Before_Save Event] if the name of the file being saved...
  • fixing problem autofilter
    hello i need help about my code when i search by code in textbox it doesn't show anything this is my data [ATTACH type="full"...
  • “Weight”
    Hi, i’ve got a long sheet filled with weights such as kg,g,L & ml. i can build a formula to convert kg into g and liter into ml. How ever, my...
  • How to capitalize everything before a certain character?
    In column A, I have some text: Hello good day.mp3 Hello good day.flac etc. I'd like to capitalize everything before the period. I don't need the...
Top