Macro solution for summary Sub getuniqueandcount() Range("A1:A" & Cells(Rows.Count, 1).End(xlUp).Row) _ .AdvancedFilter Action:=xlFilterCopy, _ CopyToRange:=Range("G1"), Unique:=True Range("h2:H" & Cells(Rows.Count, "g").End(xlUp).Row).Formula = _ "=VLOOKUP(G2,A:B,2,0)&""--""&COUNTIF(A:A,G2)" End Sub
Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: NOORAIN ANSARI Sent: Wednesday, March 07, 2012 10:20 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ formula help Dear Avinash, Please use it.. =B2&"--"&COUNTIF($A$2:A2,A2) or =$B2&"--"&SUMPRODUCT(--($A$2:$A2=$A2)) See attached sheet. -- Thanks & regards, Noorain Ansari http://noorainansari.com/ http://excelmacroworld.blogspot.com/ On Wed, Mar 7, 2012 at 9:30 PM, Avinash <avinash007pa...@gmail.com> wrote: hi all can anyone help me to get the desired result in this sheet i have attached the sheet please see the attachment for better understanding. Regards Avinash -- 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 -- 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 -- 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