Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Ecxel Macro to summary and eliminate duplicates

I am trying to create a macro that will create a new work sheet called
Summary, take all of the items on the active worksheet, Move them to the
summary Sort them so that all of the items that have the same description are
together then combine each matching description into one record that will
total the qty for that description. That way we can summarize all of the
items.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Ecxel Macro to summary and eliminate duplicates

Hi,
Have you tried using a Pivot Table?
- select the Data with the Header field names
- menu Data Pivot Table. The wizard dialog pops up.
- step 1 of 3: choose "MS Excel List or Database" and "Pivot Table". Click
Next.
- step 2 of 3: the selection (source data with header) address should
already be in there. Click next
- step 3 of 3: choose "New worksheet" and click "Layout". in the Layout
dialog, put the item number field in the Row Section and the field you need
to count or sum in the Data section. Click ok, then Finish.
Pivot Tables can be a bit intimidating at first, but experience a bit when
them, you can save a lot of time when you are used to them.

Regards,
Sebastien

"kdreyer" wrote:

I am trying to create a macro that will create a new work sheet called
Summary, take all of the items on the active worksheet, Move them to the
summary Sort them so that all of the items that have the same description are
together then combine each matching description into one record that will
total the qty for that description. That way we can summarize all of the
items.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Ecxel Macro to summary and eliminate duplicates

Record a macro and do the following...
Copy the sheet (Hold down the Ctrl key and drag the sheet to one side or the
other)
Sort the sheet however makes you the happiest
Click on Data - Subtotal
Choose how to subtotal based on the form
Click OK
Optionally you can also format the data
Format
AutoFormat
Select your favorite...

Stop recording

HTH

"kdreyer" wrote:

I am trying to create a macro that will create a new work sheet called
Summary, take all of the items on the active worksheet, Move them to the
summary Sort them so that all of the items that have the same description are
together then combine each matching description into one record that will
total the qty for that description. That way we can summarize all of the
items.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
eliminate duplicates on a sheet C. Brown Excel Worksheet Functions 3 April 5th 10 03:54 AM
How to eliminate everything but duplicates jtpryan Excel Worksheet Functions 2 February 17th 09 04:32 PM
Eliminate duplicates in mailing list AnneCir Excel Discussion (Misc queries) 7 April 4th 07 11:58 PM
Eliminate Duplicates in Pivot Table roadkill Excel Discussion (Misc queries) 2 February 3rd 06 06:13 PM
Pivot Table- how do I eliminate duplicates in count of name Isabelga Excel Discussion (Misc queries) 1 January 16th 06 06:15 PM


All times are GMT +1. The time now is 02:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"