Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default how to sum one column using a second column as a condition

I have a budget management with rows indicating employee "time
entries". The sheet has columns:

date
client
project
employee
billed time (min)
description of work
charge type

Underneath the "time entries" is a "summary section" with columns

charge type
total min

their are 6 charge types

em
bar
bas
sam
saa
sad


How can I make the "total time" field in the summary section
automatically calculate the total minutes for each of the 6 charge
types given?

ie. if I have:

date client project employee billed time (min) description charge type
09/26/06 client 1 project 1 smith 30 description of some task EM
10/19/06 client 2 project 2 smith 30 description of some task EM
09/26/06 client 1 project 1 smith 100 description of some task BAR
10/19/06 client 5 some project smith 100 description of some task BAR
09/26/06 client 6 some project jones 100 description of some task BAR
10/19/06 client 5 some project smith 45 description of some task BAS
09/26/06 client 2 some project smith 45 description of some task BAS
10/19/06 client 3 some project davis 60 description of some task SAM
09/26/06 client 3 some project smith 60 description of some task SAM
10/19/06 client 4 some project smith 60 description of some task SAM
10/19/06 client 7 some project davis 60 description of some task SAA
09/26/06 client 8 some project smith 30 description of some task SAA
10/19/06 client 10 some project smith 15 description of some task SAA
10/19/06 client 3 some project davis 10 description of some task SAD
09/26/06 client 2 some project smith 25 description of some task SAD
10/19/06 client 2 some project smith 30 description of some task SAD

the summary will show :

charge total min
em 60.00
bar 300.00
bas 90.00
sam 180.00
saa 45.00
sad 65.00


I am hoping that there is some way to associate some VBA code with each
"total min" fields (for each "charge type") that will automatically
find time entry rows with a given charge type, total them all up and
then show the total in the summary.

I appreciate any help you can provide.

Thanks,
Alex

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default how to sum one column using a second column as a condition

=SUMIF(G:G,"em",E:E)

etc.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Alex" wrote in message
ups.com...
I have a budget management with rows indicating employee "time
entries". The sheet has columns:

date
client
project
employee
billed time (min)
description of work
charge type

Underneath the "time entries" is a "summary section" with columns

charge type
total min

their are 6 charge types

em
bar
bas
sam
saa
sad


How can I make the "total time" field in the summary section
automatically calculate the total minutes for each of the 6 charge
types given?

ie. if I have:

date client project employee billed time (min) description charge type
09/26/06 client 1 project 1 smith 30 description of some task EM
10/19/06 client 2 project 2 smith 30 description of some task EM
09/26/06 client 1 project 1 smith 100 description of some task BAR
10/19/06 client 5 some project smith 100 description of some task BAR
09/26/06 client 6 some project jones 100 description of some task BAR
10/19/06 client 5 some project smith 45 description of some task BAS
09/26/06 client 2 some project smith 45 description of some task BAS
10/19/06 client 3 some project davis 60 description of some task SAM
09/26/06 client 3 some project smith 60 description of some task SAM
10/19/06 client 4 some project smith 60 description of some task SAM
10/19/06 client 7 some project davis 60 description of some task SAA
09/26/06 client 8 some project smith 30 description of some task SAA
10/19/06 client 10 some project smith 15 description of some task SAA
10/19/06 client 3 some project davis 10 description of some task SAD
09/26/06 client 2 some project smith 25 description of some task SAD
10/19/06 client 2 some project smith 30 description of some task SAD

the summary will show :

charge total min
em 60.00
bar 300.00
bas 90.00
sam 180.00
saa 45.00
sad 65.00


I am hoping that there is some way to associate some VBA code with each
"total min" fields (for each "charge type") that will automatically
find time entry rows with a given charge type, total them all up and
then show the total in the summary.

I appreciate any help you can provide.

Thanks,
Alex



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default how to sum one column using a second column as a condition

thank you! it works perfectly.

-alex


Bob Phillips wrote:
=SUMIF(G:G,"em",E:E)

etc.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Alex" wrote in message
ups.com...
I have a budget management with rows indicating employee "time
entries". The sheet has columns:

date
client
project
employee
billed time (min)
description of work
charge type

Underneath the "time entries" is a "summary section" with columns

charge type
total min

their are 6 charge types

em
bar
bas
sam
saa
sad


How can I make the "total time" field in the summary section
automatically calculate the total minutes for each of the 6 charge
types given?

ie. if I have:

date client project employee billed time (min) description charge type
09/26/06 client 1 project 1 smith 30 description of some task EM
10/19/06 client 2 project 2 smith 30 description of some task EM
09/26/06 client 1 project 1 smith 100 description of some task BAR
10/19/06 client 5 some project smith 100 description of some task BAR
09/26/06 client 6 some project jones 100 description of some task BAR
10/19/06 client 5 some project smith 45 description of some task BAS
09/26/06 client 2 some project smith 45 description of some task BAS
10/19/06 client 3 some project davis 60 description of some task SAM
09/26/06 client 3 some project smith 60 description of some task SAM
10/19/06 client 4 some project smith 60 description of some task SAM
10/19/06 client 7 some project davis 60 description of some task SAA
09/26/06 client 8 some project smith 30 description of some task SAA
10/19/06 client 10 some project smith 15 description of some task SAA
10/19/06 client 3 some project davis 10 description of some task SAD
09/26/06 client 2 some project smith 25 description of some task SAD
10/19/06 client 2 some project smith 30 description of some task SAD

the summary will show :

charge total min
em 60.00
bar 300.00
bas 90.00
sam 180.00
saa 45.00
sad 65.00


I am hoping that there is some way to associate some VBA code with each
"total min" fields (for each "charge type") that will automatically
find time entry rows with a given charge type, total them all up and
then show the total in the summary.

I appreciate any help you can provide.

Thanks,
Alex


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
Counting entries in column based on condition in another column RobertR Excel Worksheet Functions 1 February 8th 07 03:54 PM
adding numbers from column B, while condition on column A The Fool on the Hill Excel Discussion (Misc queries) 4 February 1st 07 01:34 PM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Discussion (Misc queries) 1 December 27th 06 05:47 PM
how to count a column based on condition of another column R Khoshravan Excel Worksheet Functions 4 August 31st 06 05:25 PM
Enter a formula in column A, if a condition in column "B" is met jeffbert Excel Programming 6 February 10th 05 03:53 PM


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