Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Total question (macro?)

Hey all,

I have 1,300 rows of G/L data that I need to clean up each month to create a
Staement of Cash Flows. The data is in five columns.

A B C D
E
G/L# Branch# Description Current Month Pior Month
701000 0 XXXX 12
10
701000 1 XXXX 10
11
701000 2 XXXX 5
10
701001 0 YYYY 6
5
701001 1 YYYY 2
3
701001 2 YYYY 1
3


I would like to write a macro that will sum the current and prior month
balances by G/L# and copy the G/L#, Description, and Totals to a new sheet.
Can someone help me start this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Total question (macro?)

you can do this with Data=Subtotals

Sum Current Month and Prior Month on G/L#

go to column C and do
Edit=goto=Special and select blanks

assume the first cell selected (the active cell) is C4. go to the formula
bar and enter

=C3 then do Ctrl+Enter

Use the cell address above the activecell.

This will fill in the descriptions in the subtotal rows

now select all of column 3 (column C) and do Edit=Copy, then do
Edit=PasteSpecial and select Values.

Now click on the little button on the top left with a 2 on it. This will
show the subtotals by G/L

select all you data and do Edit=Go=Special and select visible. Then do
edit = copy, go to you new sheet, select A1 and do Edit =Paste.

If you want a macro, you can turn on the macro recorder while you do it
manually, then generalize the code.

You can also look do something similar by using a Pivot table. select your
data, then do Data=Pivot Table, designate the source of your data, go to
the next dialog, select Layout, put G/L in the row field, leave the column
field blank, and put Current Month and Prior Month in the data area.

Click OK, make sure the destination is a new sheet, then click OK.

Now go to the Databutton and drag if slightly to the right and let it go.
This will put Current Month and Prior Month next to each other rather than
on top of each other.

--
Regards,
Tom Ogilvyi

"cwilson" wrote in message
...
Hey all,

I have 1,300 rows of G/L data that I need to clean up each month to create

a
Staement of Cash Flows. The data is in five columns.

A B C D
E
G/L# Branch# Description Current Month Pior Month
701000 0 XXXX 12
10
701000 1 XXXX 10
11
701000 2 XXXX 5
10
701001 0 YYYY 6
5
701001 1 YYYY 2
3
701001 2 YYYY 1
3


I would like to write a macro that will sum the current and prior month
balances by G/L# and copy the G/L#, Description, and Totals to a new

sheet.
Can someone help me start this?



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
Another sub total question [email protected] Excel Worksheet Functions 7 November 10th 08 07:54 PM
Pivot table total question ? paul Excel Discussion (Misc queries) 1 October 15th 08 07:04 PM
Pivot Table Sub-Total question - basic kleivakat New Users to Excel 0 October 31st 07 08:39 PM
Running total question Mike Hyndman Excel Worksheet Functions 7 January 23rd 07 08:17 AM
total dumb newbie question ayla Excel Discussion (Misc queries) 1 November 30th 05 03:57 PM


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

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

About Us

"It's about Microsoft Excel"