Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Look up values in multiple cells and sum

Hi

I have a workbook with the following worksheets.

I am using the formula =SUMIF('Training'!A:A,A1,'Training'!B:B) to add
up individuals totals but I have now included another column C which
has 'yes' & 'no' response. How can I adapt the formula to only add up
the 'no' totals?

Thanks
Debbie

Example
Personal Worksheet
A B
1 Bob
2 Gail
3 Fred
4 Gae
5 Gary
Training Worksheet
A B C
1 Bob 4 Yes
2 Gail 6 No
3 Gail 1 Yes
4 Gae 5 No
5 Bob 7 Yes
6 Bob 8 Yes
7 Fred 9 No
8 Fred 5 Yes

=SUMIF('Training'!A:A,A1,'Training'!B:B)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Look up values in multiple cells and sum

Try this:

=SUMPRODUCT((Training!A$1:A$1000=A1)*(Training!C$1 :C
$1000="no")*(Training!B$1:B$1000))

Adjust the ranges to suit, but you can not have full column references
(unless you have Excel 2007).

Hope this helps.

Pete

On Feb 4, 8:53*am, DebbieV wrote:
Hi

I have a workbook with the following worksheets.

I am using the formula =SUMIF('Training'!A:A,A1,'Training'!B:B) to add
up individuals totals but I have now included another column C which
has 'yes' & 'no' response. *How can I adapt the formula to only add up
the 'no' totals?

Thanks
Debbie

Example
Personal Worksheet
* * * * A * * * *B
1 * * * *Bob
2 * * * Gail
3 * * * Fred
4 * * * Gae
5 * * * Gary
Training Worksheet
* * * * A * * * *B * * *C
1 * * * Bob * * 4 * * * Yes
2 * * * Gail * *6 * * * No
3 * * * Gail * *1 * * * Yes
4 * * * Gae * * *5 * * *No
5 * * * Bob * * *7 * * *Yes
6 * * * Bob * * 8 * * * Yes
7 * * * Fred * * 9 * * *No
8 * * * Fred * *5 * * * Yes

=SUMIF('Training'!A:A,A1,'Training'!B:B)


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Look up values in multiple cells and sum

On Feb 4, 8:22*pm, Pete_UK wrote:
Try this:

=SUMPRODUCT((Training!A$1:A$1000=A1)*(Training!C$1 :C
$1000="no")*(Training!B$1:B$1000))

Adjust the ranges to suit, but you can not have full column references
(unless you have Excel 2007).

Hope this helps.

Pete

On Feb 4, 8:53*am, DebbieV wrote:



Hi


I have a workbook with the following worksheets.


I am using the formula =SUMIF('Training'!A:A,A1,'Training'!B:B) to add
up individuals totals but I have now included another column C which
has 'yes' & 'no' response. *How can I adapt the formula to only add up
the 'no' totals?


Thanks
Debbie


Example
Personal Worksheet
* * * * A * * * *B
1 * * * *Bob
2 * * * Gail
3 * * * Fred
4 * * * Gae
5 * * * Gary
Training Worksheet
* * * * A * * * *B * * *C
1 * * * Bob * * 4 * * * Yes
2 * * * Gail * *6 * * * No
3 * * * Gail * *1 * * * Yes
4 * * * Gae * * *5 * * *No
5 * * * Bob * * *7 * * *Yes
6 * * * Bob * * 8 * * * Yes
7 * * * Fred * * 9 * * *No
8 * * * Fred * *5 * * * Yes


=SUMIF('Training'!A:A,A1,'Training'!B:B)- Hide quoted text -


- Show quoted text -


Hi Pete

No luck. Here is the actual formula that i am using -

=SUMPRODUCT(('Step 2 - Training Details'!$A3:$A1000,B3)*('Step 2 -
Training Details'!$E3:$E1000="No")*(Step 2 - Training Details'!
$I3:$I1000))

It keeps throwing back an error on the B3 reference???

Training sheet - Col A = Surname - Col E = Yes/No - Col I = training
hours
Personal sheet Col B = Surname

Any ideas?
cheers
Debbie
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Look up values in multiple cells and sum

How about:

=SUMPRODUCT(('Step 2 - Training Details'!$A3:$A1000=B3)
*('Step 2 - Training Details'!$E3:$E1000="No")
*(Step 2 - Training Details'!$I3:$I1000))

I changed that comma to an equal sign. Is that the comparison you wanted? (I
didn't read the whole thread.)


DebbieV wrote:

On Feb 4, 8:22 pm, Pete_UK wrote:
Try this:

=SUMPRODUCT((Training!A$1:A$1000=A1)*(Training!C$1 :C
$1000="no")*(Training!B$1:B$1000))

Adjust the ranges to suit, but you can not have full column references
(unless you have Excel 2007).

Hope this helps.

Pete

On Feb 4, 8:53 am, DebbieV wrote:



Hi


I have a workbook with the following worksheets.


I am using the formula =SUMIF('Training'!A:A,A1,'Training'!B:B) to add
up individuals totals but I have now included another column C which
has 'yes' & 'no' response. How can I adapt the formula to only add up
the 'no' totals?


Thanks
Debbie


Example
Personal Worksheet
A B
1 Bob
2 Gail
3 Fred
4 Gae
5 Gary
Training Worksheet
A B C
1 Bob 4 Yes
2 Gail 6 No
3 Gail 1 Yes
4 Gae 5 No
5 Bob 7 Yes
6 Bob 8 Yes
7 Fred 9 No
8 Fred 5 Yes


=SUMIF('Training'!A:A,A1,'Training'!B:B)- Hide quoted text -


- Show quoted text -


Hi Pete

No luck. Here is the actual formula that i am using -

=SUMPRODUCT(('Step 2 - Training Details'!$A3:$A1000,B3)*('Step 2 -
Training Details'!$E3:$E1000="No")*(Step 2 - Training Details'!
$I3:$I1000))

It keeps throwing back an error on the B3 reference???

Training sheet - Col A = Surname - Col E = Yes/No - Col I = training
hours
Personal sheet Col B = Surname

Any ideas?
cheers
Debbie


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Look up values in multiple cells and sum

I copied your formula -- and it was missing an apostrophe in that last portion!!

=SUMPRODUCT(('Step 2 - Training Details'!$A3:$A1000=B3)
*('Step 2 - Training Details'!$E3:$E1000="No")
*('Step 2 - Training Details'!$I3:$I1000))

Dave Peterson wrote:

How about:

=SUMPRODUCT(('Step 2 - Training Details'!$A3:$A1000=B3)
*('Step 2 - Training Details'!$E3:$E1000="No")
*(Step 2 - Training Details'!$I3:$I1000))

I changed that comma to an equal sign. Is that the comparison you wanted? (I
didn't read the whole thread.)

DebbieV wrote:

On Feb 4, 8:22 pm, Pete_UK wrote:
Try this:

=SUMPRODUCT((Training!A$1:A$1000=A1)*(Training!C$1 :C
$1000="no")*(Training!B$1:B$1000))

Adjust the ranges to suit, but you can not have full column references
(unless you have Excel 2007).

Hope this helps.

Pete

On Feb 4, 8:53 am, DebbieV wrote:



Hi

I have a workbook with the following worksheets.

I am using the formula =SUMIF('Training'!A:A,A1,'Training'!B:B) to add
up individuals totals but I have now included another column C which
has 'yes' & 'no' response. How can I adapt the formula to only add up
the 'no' totals?

Thanks
Debbie

Example
Personal Worksheet
A B
1 Bob
2 Gail
3 Fred
4 Gae
5 Gary
Training Worksheet
A B C
1 Bob 4 Yes
2 Gail 6 No
3 Gail 1 Yes
4 Gae 5 No
5 Bob 7 Yes
6 Bob 8 Yes
7 Fred 9 No
8 Fred 5 Yes

=SUMIF('Training'!A:A,A1,'Training'!B:B)- Hide quoted text -

- Show quoted text -


Hi Pete

No luck. Here is the actual formula that i am using -

=SUMPRODUCT(('Step 2 - Training Details'!$A3:$A1000,B3)*('Step 2 -
Training Details'!$E3:$E1000="No")*(Step 2 - Training Details'!
$I3:$I1000))

It keeps throwing back an error on the B3 reference???

Training sheet - Col A = Surname - Col E = Yes/No - Col I = training
hours
Personal sheet Col B = Surname

Any ideas?
cheers
Debbie


--

Dave Peterson


--

Dave Peterson
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
find values in multiple cells and paste row values izzyt1972 Excel Discussion (Misc queries) 5 December 26th 07 10:14 PM
Counting multiple values within single cells Terry Bennett Excel Worksheet Functions 5 October 24th 06 06:10 PM
Looking up values in multiple cells Richard Excel Discussion (Misc queries) 1 October 17th 06 11:55 AM
offsetting values of multiple cells! via135 Excel Worksheet Functions 9 July 18th 06 06:15 AM
Values for Y and N in multiple cells Corey Excel Discussion (Misc queries) 1 February 16th 05 06:05 AM


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