Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Subtotal Function...

Hello All,

I have a macro that creates subtotals for a sheet of data. However, I then
insert rows below each subtotal to calculate percentages for each subtotal.
This works fine but afterwards, the grand total includes these percentages in
its figure. So, my grand total is off by a few dollars or cents depending
upon the percentages above it. Does anyone have any suggestions on how to
counter this?

Thanks for your time.

Trevor
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default Subtotal Function...

Move the % calculation one column to the left or right of the subtotaled
column.
HTH,
Gary Brown

"Jesterhoz" wrote:

Hello All,

I have a macro that creates subtotals for a sheet of data. However, I then
insert rows below each subtotal to calculate percentages for each subtotal.
This works fine but afterwards, the grand total includes these percentages in
its figure. So, my grand total is off by a few dollars or cents depending
upon the percentages above it. Does anyone have any suggestions on how to
counter this?

Thanks for your time.

Trevor

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default Subtotal Function...

Or create a text format something like...
=TEXT(1/4,"0.00%")
which will show 25.00% but you could use references like A1/A2
HTH,
Gary Brown


"Jesterhoz" wrote:

Hello All,

I have a macro that creates subtotals for a sheet of data. However, I then
insert rows below each subtotal to calculate percentages for each subtotal.
This works fine but afterwards, the grand total includes these percentages in
its figure. So, my grand total is off by a few dollars or cents depending
upon the percentages above it. Does anyone have any suggestions on how to
counter this?

Thanks for your time.

Trevor

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Subtotal Function...

Gary,

This worked beautifully. Thank you much.

Trevor

"Gary Brown" wrote:

Or create a text format something like...
=TEXT(1/4,"0.00%")
which will show 25.00% but you could use references like A1/A2
HTH,
Gary Brown


"Jesterhoz" wrote:

Hello All,

I have a macro that creates subtotals for a sheet of data. However, I then
insert rows below each subtotal to calculate percentages for each subtotal.
This works fine but afterwards, the grand total includes these percentages in
its figure. So, my grand total is off by a few dollars or cents depending
upon the percentages above it. Does anyone have any suggestions on how to
counter this?

Thanks for your time.

Trevor

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
subtotal function gls858 New Users to Excel 1 July 23rd 09 04:56 PM
Subtotal function Debby Bunce Excel Worksheet Functions 2 March 20th 06 11:16 PM
subtotal function Debby Bunce New Users to Excel 2 March 20th 06 10:20 PM
Embed a countif function in subtotal function? Stuck at work Excel Worksheet Functions 1 February 14th 06 03:19 AM
How do I nesting subtotal function within average function in Exc Amy Yeh Excel Worksheet Functions 4 January 19th 05 06:23 PM


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