By using SUBTOTAL function in data menu, it can be done. Regards Naveen Kumar M N
Transport Supervisor(HP) 91-08-99728 10886 Email :[EMAIL PROTECTED] Best Wishes-Karunaada Kuvara --- On Wed, 11/5/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Subject: $$Excel-Macros$$ Excel Macros totaling like values To: "MS Excel & VBA Macros" <excel-macros@googlegroups.com> Date: Wednesday, November 5, 2008, 3:28 PM How do I create a macro in Excel that will count the number of like values in a cell? For Example: "how many people live in each city" in an excel spreadsheet of names and addresses --~--~---------~--~----~------------~-------~--~----~ Visit the blog to download Excel tutorials at http://www.excel-macros.blogspot.com To post to this group, send email to excel-macros@googlegroups.com For more options, visit this group at http://groups.google.com/group/excel-macros?hl=en Visit & Join Our Orkut Community at http://www.orkut.com/Community.aspx?cmm=22913620 Visit the blog to download Excel tutorials at http://www.excel-macros.blogspot.com To Learn VBA Macros Please visit http://www.vbamacros.blogspot.com To see the Daily Excel Tips, Go to: http://exceldailytip.blogspot.com -~----------~----~----~----~------~----~------~--~---