LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Sorting and grouping list totals

Morning,

I am looking for help with a macro that will enable me to process UK
intrastat information. Effectively the information will look like this

Column 1 Column 2 Column 3
1,000 101 NL
2,435 121 NL
2,565 121 DE
2,000 131 GB
2,500 101 NL

And I would like to be able to easily sort the output into the
following

Code Value Country
101 3,500 NL
121 2,435 NL
121 2,565 DE
131 2,500 GB

So in other words, each code is grouped together and totalled but
sorted and seperated by country code (column 3) - in the given
example, code 101 has two entries in the table, both from NL and
therefore are grouped as one but the 121 code has two entries but has
different country codes and therefore is seperated.

I hope that makes sense :)

Thanks to all in advance
 
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
Grouping and sorting Kirk Excel Discussion (Misc queries) 1 March 17th 09 05:50 PM
Grouping totals together by month per customer Mike Koop Excel Discussion (Misc queries) 6 September 18th 07 09:40 PM
Grouping Totals Funkydan Excel Discussion (Misc queries) 1 August 15th 07 03:13 PM
Grouping Cells / Sorting [email protected] Excel Discussion (Misc queries) 1 May 9th 07 08:50 PM
Grouping & Group Totals pamarty Excel Worksheet Functions 0 May 8th 06 09:26 PM


All times are GMT +1. The time now is 02:08 PM.

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"