How about a macro Sub GetMaxPerCategory() Columns("e:f").ClearContents For Each c In Range("a2:a8") Name = Split(c, "/")(0) & "/" & Split(c, "/")(1) n = Split(c, "/")(2) Set mf = Columns("e").Find(What:=Name, LookIn:=xlValues, _ LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext) If Not mf Is Nothing Then If Val(n) > Cells(mf.Row, "f") Then Cells(mf.Row, "f") = n Else c.Offset(, 4) = Name c.Offset(, 5) = Val(n) End If Next c End Sub
Don Guillett Microsoft Excel Developer SalesAid Software dguille...@gmail.com From: Ashish Bhalara Sent: Thursday, July 12, 2012 7:49 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ output of maximum number from list of combine text and number Dear expert, I want to get output of maximum number from the list which contain combination of text and number. I can get this by change of cell format but it is not useful for me. For example, List Nano/Ref/003 Nano/Ref/002 Nano/Ref/001 Nano/Mfg.Subv/002 Nano/Mfg.Subv/001 Fiat/Crp/002 Fiat/Crp/001 Output Nano/Ref/003 Nano/Mfg.Subv/002 Fiat/Crp/002 Thanks & regards. Ashish Bhalara 9624111822 PPlease do not print this email unless it is absolutely necessary. Spread environmental üawareness.♣♣♣ -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com