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: 126
Default create Macro €“ select data, sort by acc no., yr, part no, create P

Am using Office 2K. Am a novice with macros €“ have used it by recording
simple macros. Would appreciate any help.

I have imported data into excel with the following columns.
Acc No; Acc Name; Part No; Part Description; Qty; Price; Total; Order Date
(dd-mmm-yy); Invoice Date (dd-mmm-yy); SO No;
The no. of rows in the data can vary from 10 to 10000 or more depending on
the number of years being consolidated. I need help in setting a macro that
will
1. copy the Invoice Date into a column next to the SO No. as an Invoice Year
(yyyy) {and not the date or month }
2. sort all the data by Acc No, InvoiceYear, Part No
3. Create a Pivot Table showing Acc No., Acc Name, Part No and sum of the
qty next to the part no. by years

e.g of Original data as follows:
Acc No Name Part No Part Descr Qty Price Total Or Date Inv Date SO No. Inv
Date
42004 SA 2750-03 Seal 50 0.5 25.00 12-Jan-04 05-Jan-04 208
2004
42004 SA 2750-03 Seal 75 0.5 37.50 12-Feb-05 05-Jan-04 229
2005
31605 Tim 5120-03 Handle 700 1.1 770.0 04-Jan-06 05-Jan-04 320
2006

e.g. of Required data
Year
Acc No Acc Name Part No 2004 2005 2006
31605 Tim 5120-03 700
42004 SA 2750-03 50 75

 
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
Create chart using part of data table (data legend) Koulla Charts and Charting in Excel 0 October 21st 09 08:17 AM
Create a Hyperlink as part of a macro Nahraine New Users to Excel 1 March 7th 07 04:37 PM
How do I create a formula using part of the data in 1 cell? SMC0890 Excel Worksheet Functions 3 August 11th 06 08:48 PM
excel - create a macro to use cell text as part of a file name bossman tv New Users to Excel 1 June 27th 06 10:38 PM
How do I create a Macro to sort data and insert blank rows & subto karinmpfa Excel Worksheet Functions 2 April 25th 06 09:57 PM


All times are GMT +1. The time now is 10:09 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"