Thread: auto suming
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
violet violet is offline
external usenet poster
 
Posts: 52
Default auto suming

it actually nv generate name subtotal or what..it become other field sub
total. anyway is that a way of using vba to code it? cos i want this step to
be done in a click.

"Stefi" wrote:

1. Yes, you can hide the control column.
2. This is your result table (before hiding the control column):
name Jan Feb Wed control
alan 5 10 15 name
ben 6 0 3 name
11 10 18 name Subtotal
others 5 10 5 others
others 1 2 2 others
6 12 7 others Subtotal
17 22 25 Total

As you can see, it writes the words in Subtotal rows that you used in the
=IF(A2="others",A2,"name") function.

If you hide the control column, the result will be displayed like that:

name Jan Feb Wed
alan 5 10 15
ben 6 0 3
11 10 18
others 5 10 5
others 1 2 2
6 12 7
17 22 25

Regards,
Stefi

€˛violet€¯ ezt Ć*rta:

m i able to hide this control column? another thing is that hw i can write my
own heading. because it will auto write bla bla sub total..but that nt what i
want..

"Stefi" wrote:

Use a helper column, (say E), insert a header in E1 (say "control"), insert
formula =IF(A2="others",A2,"name") in E2 and drag it down as necessary, then
Data/Subtotals/Group by: control, Function: Sum, Columns to sum:
Jan,Feb,Wed/OK

Regards,
Stefi



€˛violet€¯ ezt Ć*rta:

i have the data in this format

name Jan Feb Wed
alan 5 10 15
ben 6 0 3


others 5 10 5
others 1 2 2

what i want is to do 3 suming..one is after the list of name i want it to do
a sum then after which is sum for others. finally do a sum for both name and
other. this is what it shld look like.

name jan feb march
alan 5 10 15
ben 6 0 3
sum 11 10 18

other 5 10 15
other 1 2 2
sum 6 12 17
total 17 22 35

is that a way to do this?