Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default monthly opening and closing balance in pivot table

hi,

have a pivot table that gives a bank statement:

1-apr opening bal 5000 dr
2-apr withdrew cash 2000 cr
3-apr chq to creditor 1000 cr

how do i get a new line automatically in the pivot:

1-apr opening bal 5000 dr
2-apr withdrew cash 2000 cr
3-apr chq to creditor 1000 cr
30-apr closing bal 2000 dr (that is total debits - total credits for
THIS MONTH OF APR ONLY)

how do i get the above last row automatically in a pivot, without
having it in source data, something like a calculated item or
something ? is it possible ?

best regards,
shripal d.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default monthly opening and closing balance in pivot table

Hi

Assuming your data is currently in column A:C, add an extra column and in D1
enter Month
In D2 enter
=IF(A2="","",TEXT(A2,"mmm"))
Copy down as far as required
Add a new column E and enter in E1 Amount
In E2 enter
=IF(C2="","",IF(RIGHT(C2,2)="dr",LEFT(C2,LEN(C2)-3)*-1,LEFT(C2,LEN(C2)-3)*1))
copy down as far as required.

Extend the source for your PT to include these new columns
Substitute your new column E, Amount, in place of your exiting column C
heading in the Data section.
Add the new Month column to the Page area

Select Apr from the page dropdown, and the Total will be the Closing Balance
for April
You can Overtype the cell entry Total Value with Closing Balance if you wish
--
Regards
Roger Govier

"shripaldalal" wrote in message
...
hi,

have a pivot table that gives a bank statement:

1-apr opening bal 5000 dr
2-apr withdrew cash 2000 cr
3-apr chq to creditor 1000 cr

how do i get a new line automatically in the pivot:

1-apr opening bal 5000 dr
2-apr withdrew cash 2000 cr
3-apr chq to creditor 1000 cr
30-apr closing bal 2000 dr (that is total debits - total credits for
THIS MONTH OF APR ONLY)

how do i get the above last row automatically in a pivot, without
having it in source data, something like a calculated item or
something ? is it possible ?

best regards,
shripal d.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default monthly opening and closing balance in pivot table

Well that wont solve my problem

I am saying something else. Total has to be zero

apr-1 opn bal 1000 dr
apr-2 cash 200 cr
apr-3 recvd 200 dr
apr-4 cl bal 1000 cr
total 1200 dr and 1200 cr (both equal)

dr and cr are actually two columns, i have made them one column here
because the formatting is a nightmare
so basically apr-4 line is not in the data, it is added automatically
in the pivot, is this possible ?

best regards,
shripal.
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default monthly opening and closing balance in pivot table

On May 16, 6:55*pm, shripaldalal wrote:
Well that wont solve my problem

I am saying something else. Total has to be zero

apr-1 opn bal 1000 dr
apr-2 cash * * 200 *cr
apr-3 recvd * *200 dr
apr-4 cl bal * 1000 cr
total * * * * * * *1200 dr and 1200 cr (both equal)

dr and cr are actually two columns, i have made them one column here
because the formatting is a nightmare
so basically apr-4 line is not in the data, it is added automatically
in the pivot, is this possible ?

best regards,
shripal.


sorry total does not have to be zero but equal
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default monthly opening and closing balance in pivot table

The options that I see a

1. Use just one column for your amount. Positive numbers are debits, and
negative numbers are credits.
2. Add a caculated field to your privot table (Dr + Cr) and sum that.

Regards,
Fred.

"shripaldalal" wrote in message
...
On May 16, 6:55 pm, shripaldalal wrote:
Well that wont solve my problem

I am saying something else. Total has to be zero

apr-1 opn bal 1000 dr
apr-2 cash 200 cr
apr-3 recvd 200 dr
apr-4 cl bal 1000 cr
total 1200 dr and 1200 cr (both equal)

dr and cr are actually two columns, i have made them one column here
because the formatting is a nightmare
so basically apr-4 line is not in the data, it is added automatically
in the pivot, is this possible ?

best regards,
shripal.


sorry total does not have to be zero but equal

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
error on opening file - pivot table oldLearner57 Excel Discussion (Misc queries) 0 December 2nd 07 07:29 AM
Pivot Table with Data Added Monthly Dawg House Inc Excel Discussion (Misc queries) 1 March 28th 07 01:30 AM
How do I create a running total (balance) in a pivot table? Jackie @ TRL Excel Worksheet Functions 1 May 17th 06 03:30 AM
Item wise balance in Pivot Table Samad Excel Discussion (Misc queries) 3 January 10th 05 06:43 PM
Item wise balance in Pivot Table Samad Excel Discussion (Misc queries) 0 January 8th 05 11:15 AM


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