#1   Report Post  
Posted to microsoft.public.excel.misc
Jerome
 
Posts: n/a
Default sum sub levels.

Hi there,

My name is Jerome. I would appreciate your help with the following problem.
I have an excel sheet whcih contains data displayed in various levels. There
are 11 levels in total. There are over 5000 rows. However each level has
different categories. I have to add the values of level 2 in level 1 and all
the values of level 3 into 2 and so forth. See tteh format below.

You'll notice that I have to add (PAYMENTS, TRANSFERS AND SUBSIDIES,
PAYMENTS FOR CAPITAL ASSETS - which are in level 2 ) in level 1 (PAYMENTS)

I should do the same for (TAX RECEIPTS, SALES GOODS & SERV NON CAP ASS,
TRANSFERS RECEIVED, FINES, PENALTIES AND FORFEITS, INTEREST, DIVIDEND, RENT
ON LAND, SALES OF CAPITAL ASSETS) and add it in level 1 (RECEIPTS)

LEVEL CODE AMOUNT 1 2
1 96623 PAYMENTS
2 982623 PAYMENTS
2 988623 TRANSFERS AND SUBSIDIES
2 996623 PAYMENTS FOR CAPITAL ASSETS
1 6318623 DIRECT EXCHEQUER PAYMENTS
2 6319623 DIRECT EXCHEQUER PAYMENTS
1 1623 RECEIPTS
2 2623 TAX RECEIPTS
2 3623 SALES GOODS & SERV NON CAP ASS
2 40623 TRANSFERS RECEIVED:
2 65623 FINES, PENALTIES AND FORFEITS
2 72623 INTEREST, DIVIDEND, RENT ON LAND
2 102623 SALES OF CAPITAL ASSETS

I have to do this for the entire worksheet. Could you please advise me how I
should go about this.

Thank you very much!:O)

Best regards,

Jerome

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bernard Liengme
 
Posts: n/a
Default sum sub levels.

I do not understand your 'levels'. Tell us how the data is set out: column
A as level-number 1 to 12? Column B has amount, and C has item name?
What you want to add?
All Level 1 Payments, all level 2 payments - as 2 separate numbers or 1 ?


--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Jerome" wrote in message
...
Hi there,

My name is Jerome. I would appreciate your help with the following
problem.
I have an excel sheet whcih contains data displayed in various levels.
There
are 11 levels in total. There are over 5000 rows. However each level has
different categories. I have to add the values of level 2 in level 1 and
all
the values of level 3 into 2 and so forth. See tteh format below.

You'll notice that I have to add (PAYMENTS, TRANSFERS AND SUBSIDIES,
PAYMENTS FOR CAPITAL ASSETS - which are in level 2 ) in level 1 (PAYMENTS)

I should do the same for (TAX RECEIPTS, SALES GOODS & SERV NON CAP ASS,
TRANSFERS RECEIVED, FINES, PENALTIES AND FORFEITS, INTEREST, DIVIDEND,
RENT
ON LAND, SALES OF CAPITAL ASSETS) and add it in level 1 (RECEIPTS)

LEVEL CODE AMOUNT 1 2
1 96623 PAYMENTS
2 982623 PAYMENTS
2 988623 TRANSFERS AND SUBSIDIES
2 996623 PAYMENTS FOR CAPITAL ASSETS
1 6318623 DIRECT EXCHEQUER PAYMENTS
2 6319623 DIRECT EXCHEQUER PAYMENTS
1 1623 RECEIPTS
2 2623 TAX RECEIPTS
2 3623 SALES GOODS & SERV NON CAP ASS
2 40623 TRANSFERS RECEIVED:
2 65623 FINES, PENALTIES AND FORFEITS
2 72623 INTEREST, DIVIDEND, RENT ON LAND
2 102623 SALES OF CAPITAL ASSETS

I have to do this for the entire worksheet. Could you please advise me how
I
should go about this.

Thank you very much!:O)

Best regards,

Jerome



  #3   Report Post  
Posted to microsoft.public.excel.misc
Jerome
 
Posts: n/a
Default sum sub levels.

Good morning Bernhard,

Thank you for your response. I need to add all the amounts (that column is
not shown in my request) for in each level (except level 1 of course) and
place the total in the level immediately above it.

Col 1 as Lvl (has levels 1 - 11)
Col 2 as "Code" (Unique values)
Col 3 as "Amount" (values will be entered in here)
Col 4 as "Total" (This is where the formula will be entered)

There are over 5000 rows.
lvl code desc total amount 1 2 3 4
1 6333623 revenue fund receipts revenue fund receipts
2 6338623 debt portfolio debt portfolio
3 6351623 dbl pmt r150 settlemnt 21/7/00 dbl pmt r150 settlemnt 21/7/00
3 6351623 dbl pmt r150 settlemnt 21/7/00 dbl pmt r150 settlemnt 21/7/00
3 6350623 prem on debt protfolio restruct prem on debt protfolio restruct
3 6350623 prem on debt protfolio restruct prem on debt protfolio restruct
3 6349623 premium on issuance of bonds premium on issuance of bonds
3 6349623 premium on issuance of bonds premium on issuance of bonds
3 6348623 profit on conv of foreign loans profit on conv of foreign loans
3 6348623 profit on conv of foreign loans profit on conv of foreign loans
2 6335623 fines, penalties and forfeits fines, penalties and forfeits
3 6339623 penalties penalties
4 6341623 amnesty unit amnesty unit
4 6341623 amnesty unit amnesty unit
4 6340623 retail bonds retail bonds
4 6340623 retail bonds retail bonds

Yes, i want to add the levles as two seperate numbers, however there are
many different categories of levels for instance level 1 (Revenue) and level
1 (Direct Payments) etc ... each with their own sublevels. The sheet is
structured so that the sublevels (which need to be added for the level above
it) are immediately below the level above it.

I sincerely hope this explains it more clearly

"Bernard Liengme" wrote:

I do not understand your 'levels'. Tell us how the data is set out: column
A as level-number 1 to 12? Column B has amount, and C has item name?
What you want to add?
All Level 1 Payments, all level 2 payments - as 2 separate numbers or 1 ?


--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Jerome" wrote in message
...
Hi there,

My name is Jerome. I would appreciate your help with the following
problem.
I have an excel sheet whcih contains data displayed in various levels.
There
are 11 levels in total. There are over 5000 rows. However each level has
different categories. I have to add the values of level 2 in level 1 and
all
the values of level 3 into 2 and so forth. See tteh format below.

You'll notice that I have to add (PAYMENTS, TRANSFERS AND SUBSIDIES,
PAYMENTS FOR CAPITAL ASSETS - which are in level 2 ) in level 1 (PAYMENTS)

I should do the same for (TAX RECEIPTS, SALES GOODS & SERV NON CAP ASS,
TRANSFERS RECEIVED, FINES, PENALTIES AND FORFEITS, INTEREST, DIVIDEND,
RENT
ON LAND, SALES OF CAPITAL ASSETS) and add it in level 1 (RECEIPTS)

LEVEL CODE AMOUNT 1 2
1 96623 PAYMENTS
2 982623 PAYMENTS
2 988623 TRANSFERS AND SUBSIDIES
2 996623 PAYMENTS FOR CAPITAL ASSETS
1 6318623 DIRECT EXCHEQUER PAYMENTS
2 6319623 DIRECT EXCHEQUER PAYMENTS
1 1623 RECEIPTS
2 2623 TAX RECEIPTS
2 3623 SALES GOODS & SERV NON CAP ASS
2 40623 TRANSFERS RECEIVED:
2 65623 FINES, PENALTIES AND FORFEITS
2 72623 INTEREST, DIVIDEND, RENT ON LAND
2 102623 SALES OF CAPITAL ASSETS

I have to do this for the entire worksheet. Could you please advise me how
I
should go about this.

Thank you very much!:O)

Best regards,

Jerome




  #4   Report Post  
Posted to microsoft.public.excel.misc
starguy
 
Posts: n/a
Default sum sub levels.


can you send sample data of that workbook




--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=528110

  #5   Report Post  
Posted to microsoft.public.excel.misc
John James
 
Posts: n/a
Default sum sub levels.


Hi Jerome,

How I'd approach the problem given the info provided, if the objective
was minimising the effort to produce the result:

First step is to get all of your posting level accounts and amounts and
relevant identifiers into a simple, well-structured datasheet. This
source data should have a separate row for each posting level account
and no rows for any summary level accounts.

In this datasheet, the relevant summary level accounts for each level,
can be listed against each row within a separate column. e.g. The
relevant level 2 summary level accounts for each posting account are
listed in a "Level 2" column. This ensures that every amount has every
necessary identifier on that same row to enable summary level totals to
be calculated. These summary level account cells are likely to be
populated with vlookup formulae which extract from a separate master
account table (which shows all summary account descriptions at all
levels for all posting accounts)

Once you have your data in a database like this, production of a report
may be relatively straight-forward, depending upon how specific the
final report format needs to be. I'd suggest you look at
Data-SubTotals to produce a report similar to your description.

Good luck,


--
John James
------------------------------------------------------------------------
John James's Profile: http://www.excelforum.com/member.php...o&userid=32690
View this thread: http://www.excelforum.com/showthread...hreadid=528110



  #6   Report Post  
Posted to microsoft.public.excel.misc
David McRitchie
 
Posts: n/a
Default sum sub levels.

Hi Jerome,
So how many levels do you actually have and how do you intend to separate
Level 2 totals from level 3 totals, perhaps with color, but are there more levels
than 3 you now show. I did figure out that you had an amount column, but you should be able
to define your problem for others, especially since it will require one to write a
macro to produce your format after you insert/delete rows. .


"Jerome" wrote
Thank you for your response. I need to add all the amounts (that column is
not shown in my request) for in each level (except level 1 of course) and
place the total in the level immediately above it.

Col 1 as Lvl (has levels 1 - 11)
Col 2 as "Code" (Unique values)
Col 3 as "Amount" (values will be entered in here)
Col 4 as "Total" (This is where the formula will be entered)

There are over 5000 rows.
lvl code desc total amount 1 2 3 4
1 6333623 revenue fund receipts revenue fund receipts
2 6338623 debt portfolio debt portfolio
3 6351623 dbl pmt r150 settlemnt 21/7/00 dbl pmt r150 settlemnt 21/7/00
3 6351623 dbl pmt r150 settlemnt 21/7/00 dbl pmt r150 settlemnt 21/7/00
3 6350623 prem on debt protfolio restruct prem on debt protfolio restruct
3 6350623 prem on debt protfolio restruct prem on debt protfolio restruct
3 6349623 premium on issuance of bonds premium on issuance of bonds
3 6349623 premium on issuance of bonds premium on issuance of bonds
3 6348623 profit on conv of foreign loans profit on conv of foreign loans
3 6348623 profit on conv of foreign loans profit on conv of foreign loans
2 6335623 fines, penalties and forfeits fines, penalties and forfeits
3 6339623 penalties penalties
4 6341623 amnesty unit amnesty unit
4 6341623 amnesty unit amnesty unit
4 6340623 retail bonds retail bonds
4 6340623 retail bonds retail bonds

Yes, i want to add the levles as two seperate numbers, however there are
many different categories of levels for instance level 1 (Revenue) and level
1 (Direct Payments) etc ... each with their own sublevels. The sheet is
structured so that the sublevels (which need to be added for the level above
it) are immediately below the level above it.

I sincerely hope this explains it more clearly

"Bernard Liengme" wrote:

I do not understand your 'levels'. Tell us how the data is set out: column
A as level-number 1 to 12? Column B has amount, and C has item name?
What you want to add?
All Level 1 Payments, all level 2 payments - as 2 separate numbers or 1 ?


--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Jerome" wrote in message
...
Hi there,

My name is Jerome. I would appreciate your help with the following
problem.
I have an excel sheet whcih contains data displayed in various levels.
There
are 11 levels in total. There are over 5000 rows. However each level has
different categories. I have to add the values of level 2 in level 1 and
all
the values of level 3 into 2 and so forth. See tteh format below.

You'll notice that I have to add (PAYMENTS, TRANSFERS AND SUBSIDIES,
PAYMENTS FOR CAPITAL ASSETS - which are in level 2 ) in level 1 (PAYMENTS)

I should do the same for (TAX RECEIPTS, SALES GOODS & SERV NON CAP ASS,
TRANSFERS RECEIVED, FINES, PENALTIES AND FORFEITS, INTEREST, DIVIDEND,
RENT
ON LAND, SALES OF CAPITAL ASSETS) and add it in level 1 (RECEIPTS)

LEVEL CODE AMOUNT 1 2
1 96623 PAYMENTS
2 982623 PAYMENTS
2 988623 TRANSFERS AND SUBSIDIES
2 996623 PAYMENTS FOR CAPITAL ASSETS
1 6318623 DIRECT EXCHEQUER PAYMENTS
2 6319623 DIRECT EXCHEQUER PAYMENTS
1 1623 RECEIPTS
2 2623 TAX RECEIPTS
2 3623 SALES GOODS & SERV NON CAP ASS
2 40623 TRANSFERS RECEIVED:
2 65623 FINES, PENALTIES AND FORFEITS
2 72623 INTEREST, DIVIDEND, RENT ON LAND
2 102623 SALES OF CAPITAL ASSETS

I have to do this for the entire worksheet. Could you please advise me how
I
should go about this.

Thank you very much!:O)

Best regards,

Jerome






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
How to setup a nested if function with 10 levels? Haritt Excel Worksheet Functions 4 March 8th 06 11:58 PM
No Buttons to Control Subtotal Levels!?!? Levi Excel Discussion (Misc queries) 1 October 20th 05 07:31 PM
IF function with 14 nested levels Dan Fingerman Excel Worksheet Functions 3 September 5th 05 05:57 PM
Levels in Subtotals KipNowlin Excel Worksheet Functions 6 July 14th 05 07:03 AM
Protection and levels of access chris w Excel Worksheet Functions 0 January 7th 05 05:45 PM


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

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"