PC Review


Reply
Thread Tools Rate Thread

complex column addition

 
 
formula428
Guest
Posts: n/a
 
      14th Sep 2008
I have 3 columns. Column "A" is the task. Column "B" is the user who is
doing the task. Column "C" is the numerical hours for that particular task.

For my users, I have 3. Names denoted as "C, M, and Z". Off to the side,
I'd like to keep a running total of how many hours per person...say column
"T".

As an example, say my totals for C,M,and Z are cells T2, T3, and T4. I can
use a simple IF statement:

for person C, =IF(B2="C", +C2, +0).
for person M, =IF(B2="M", +C2, +0).
for person Z, =IF(B2="Z", +C2, +0).

There has to be a way to do this for every row all the way down for each
person...other than typing =IF(BX="Y", +CX,+0) where the X indicates the
different rows and corresponding adjacent cells (in column C) and Y indicates
the different people.
 
Reply With Quote
 
 
 
 
Rick Rothstein
Guest
Posts: n/a
 
      14th Sep 2008
It sounds like you want the SUMIF function...

For "C": =SUMIF(B:B,"C",C:C)

For "M": =SUMIF(B:B,"M",C:C)

For "Z": =SUMIF(B:B,"Z",C:C)

--
Rick (MVP - Excel)


"formula428" <(E-Mail Removed)> wrote in message
news:8B4E46FD-9D4A-433A-AFED-(E-Mail Removed)...
>I have 3 columns. Column "A" is the task. Column "B" is the user who is
> doing the task. Column "C" is the numerical hours for that particular
> task.
>
> For my users, I have 3. Names denoted as "C, M, and Z". Off to the side,
> I'd like to keep a running total of how many hours per person...say column
> "T".
>
> As an example, say my totals for C,M,and Z are cells T2, T3, and T4. I
> can
> use a simple IF statement:
>
> for person C, =IF(B2="C", +C2, +0).
> for person M, =IF(B2="M", +C2, +0).
> for person Z, =IF(B2="Z", +C2, +0).
>
> There has to be a way to do this for every row all the way down for each
> person...other than typing =IF(BX="Y", +CX,+0) where the X indicates the
> different rows and corresponding adjacent cells (in column C) and Y
> indicates
> the different people.


 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      14th Sep 2008
=SUMIF(B:B,"Y",C:C)

etc.

--
__________________________________
HTH

Bob

"formula428" <(E-Mail Removed)> wrote in message
news:8B4E46FD-9D4A-433A-AFED-(E-Mail Removed)...
>I have 3 columns. Column "A" is the task. Column "B" is the user who is
> doing the task. Column "C" is the numerical hours for that particular
> task.
>
> For my users, I have 3. Names denoted as "C, M, and Z". Off to the side,
> I'd like to keep a running total of how many hours per person...say column
> "T".
>
> As an example, say my totals for C,M,and Z are cells T2, T3, and T4. I
> can
> use a simple IF statement:
>
> for person C, =IF(B2="C", +C2, +0).
> for person M, =IF(B2="M", +C2, +0).
> for person Z, =IF(B2="Z", +C2, +0).
>
> There has to be a way to do this for every row all the way down for each
> person...other than typing =IF(BX="Y", +CX,+0) where the X indicates the
> different rows and corresponding adjacent cells (in column C) and Y
> indicates
> the different people.



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      14th Sep 2008
That Y should be one of your values of course.

--
__________________________________
HTH

Bob

"Bob Phillips" <(E-Mail Removed)> wrote in message
news:%23RL$(E-Mail Removed)...
> =SUMIF(B:B,"Y",C:C)
>
> etc.
>
> --
> __________________________________
> HTH
>
> Bob
>
> "formula428" <(E-Mail Removed)> wrote in message
> news:8B4E46FD-9D4A-433A-AFED-(E-Mail Removed)...
>>I have 3 columns. Column "A" is the task. Column "B" is the user who is
>> doing the task. Column "C" is the numerical hours for that particular
>> task.
>>
>> For my users, I have 3. Names denoted as "C, M, and Z". Off to the
>> side,
>> I'd like to keep a running total of how many hours per person...say
>> column
>> "T".
>>
>> As an example, say my totals for C,M,and Z are cells T2, T3, and T4. I
>> can
>> use a simple IF statement:
>>
>> for person C, =IF(B2="C", +C2, +0).
>> for person M, =IF(B2="M", +C2, +0).
>> for person Z, =IF(B2="Z", +C2, +0).
>>
>> There has to be a way to do this for every row all the way down for each
>> person...other than typing =IF(BX="Y", +CX,+0) where the X indicates the
>> different rows and corresponding adjacent cells (in column C) and Y
>> indicates
>> the different people.

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel addition of column =?Utf-8?B?TFNQIE1hcmc=?= Microsoft Excel New Users 1 11th May 2006 12:27 PM
column addition question =?Utf-8?B?RA==?= Microsoft Excel Worksheet Functions 1 19th Feb 2006 11:50 PM
Complex Addition Query Wes Henry Microsoft Access 3 4th Nov 2005 10:32 PM
Get Addition of each Column in a sheet Ahmad Jalil Qarshi Microsoft Excel Programming 1 6th Jun 2005 06:22 AM
Column addition in query Teofilo Homsany Microsoft Access Queries 2 29th Jan 2004 04:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:14 PM.