#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Problem with SUMIF

My problem arises from the below fomula.

=(SUMIF($G$11:$G$39,"CR",Z11:Z39)+0.5*SUMIF($G$11: $G$39,"MIX",Z11:Z39))/8

It works except that it is missing a critical piece. The data in cells
AA11:AA39 need to be multiplied by cell "Y".

This spreadsheet is used for OT requests. Our jobs are based on different
funding. This is goverened by column "$G$11:$G$39" with values of "CR", "MIX"
& "MF". I want cell "Z40" to sum up all numbers in column "Z" * by the
appropriate cell in column "Y".

G Y Z AA AB
10 CR-MIX-MF OT MON TUE WED
Hours
11 CR 2 1 2 2
12 CR 2 1 1 1
13 CR 4 5 5 5
......
40 3.0 3.250 3.250


Row 40 above is what the totals should be. This is what needs to happen:
1. Look in Column G for CR
2. Multiply column "Y" by column "Z"
3. Then, add up all the results

Something like this for all "CR" Columns: ((2*1)+(2*1)+(4*5))/8 = 3.0

Any help in this would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Problem with SUMIF

=SUMPRODUCT(--($G$11:$G$39="CR"),($Y$11:$Y$39)*($Z$11:$Z$39))/8

ought to get it.


"SSG QuarterMaster" wrote:

My problem arises from the below fomula.

=(SUMIF($G$11:$G$39,"CR",Z11:Z39)+0.5*SUMIF($G$11: $G$39,"MIX",Z11:Z39))/8

It works except that it is missing a critical piece. The data in cells
AA11:AA39 need to be multiplied by cell "Y".

This spreadsheet is used for OT requests. Our jobs are based on different
funding. This is goverened by column "$G$11:$G$39" with values of "CR", "MIX"
& "MF". I want cell "Z40" to sum up all numbers in column "Z" * by the
appropriate cell in column "Y".

G Y Z AA AB
10 CR-MIX-MF OT MON TUE WED
Hours
11 CR 2 1 2 2
12 CR 2 1 1 1
13 CR 4 5 5 5
.....
40 3.0 3.250 3.250


Row 40 above is what the totals should be. This is what needs to happen:
1. Look in Column G for CR
2. Multiply column "Y" by column "Z"
3. Then, add up all the results

Something like this for all "CR" Columns: ((2*1)+(2*1)+(4*5))/8 = 3.0

Any help in this would be greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default Problem with SUMIF

Hi,

I think you still need the SUMIF part:

=(SUMPRODUCT(($G$11:$G$39="CR")*Z11:Z39*Y11:Y39)+0 .5*SUMIF($G$11:$G$39,"MIX",Z11:Z39))/8

If you aren't copying the formula:
=(SUMPRODUCT((G11:G39="CR")*Z11:Z39*Y11:Y39)+0.5*S UMIF(G11:G39,"MIX",Z11:Z39))/8

--
Thanks,
Shane Devenshire


"SSG QuarterMaster" wrote:

My problem arises from the below fomula.

=(SUMIF($G$11:$G$39,"CR",Z11:Z39)+0.5*SUMIF($G$11: $G$39,"MIX",Z11:Z39))/8

It works except that it is missing a critical piece. The data in cells
AA11:AA39 need to be multiplied by cell "Y".

This spreadsheet is used for OT requests. Our jobs are based on different
funding. This is goverened by column "$G$11:$G$39" with values of "CR", "MIX"
& "MF". I want cell "Z40" to sum up all numbers in column "Z" * by the
appropriate cell in column "Y".

G Y Z AA AB
10 CR-MIX-MF OT MON TUE WED
Hours
11 CR 2 1 2 2
12 CR 2 1 1 1
13 CR 4 5 5 5
.....
40 3.0 3.250 3.250


Row 40 above is what the totals should be. This is what needs to happen:
1. Look in Column G for CR
2. Multiply column "Y" by column "Z"
3. Then, add up all the results

Something like this for all "CR" Columns: ((2*1)+(2*1)+(4*5))/8 = 3.0

Any help in this would be greatly appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Problem with SUMIF

Thanks a bunch on this one. I had spent about two days trying to figure this
out. I only had to duplicate it in the second half of the formula to the the
same thing for the "MIX" side which was 50/50 split.

"ShaneDevenshire" wrote:

Hi,

I think you still need the SUMIF part:

=(SUMPRODUCT(($G$11:$G$39="CR")*Z11:Z39*Y11:Y39)+0 .5*SUMIF($G$11:$G$39,"MIX",Z11:Z39))/8

If you aren't copying the formula:
=(SUMPRODUCT((G11:G39="CR")*Z11:Z39*Y11:Y39)+0.5*S UMIF(G11:G39,"MIX",Z11:Z39))/8

--
Thanks,
Shane Devenshire


"SSG QuarterMaster" wrote:

My problem arises from the below fomula.

=(SUMIF($G$11:$G$39,"CR",Z11:Z39)+0.5*SUMIF($G$11: $G$39,"MIX",Z11:Z39))/8

It works except that it is missing a critical piece. The data in cells
AA11:AA39 need to be multiplied by cell "Y".

This spreadsheet is used for OT requests. Our jobs are based on different
funding. This is goverened by column "$G$11:$G$39" with values of "CR", "MIX"
& "MF". I want cell "Z40" to sum up all numbers in column "Z" * by the
appropriate cell in column "Y".

G Y Z AA AB
10 CR-MIX-MF OT MON TUE WED
Hours
11 CR 2 1 2 2
12 CR 2 1 1 1
13 CR 4 5 5 5
.....
40 3.0 3.250 3.250


Row 40 above is what the totals should be. This is what needs to happen:
1. Look in Column G for CR
2. Multiply column "Y" by column "Z"
3. Then, add up all the results

Something like this for all "CR" Columns: ((2*1)+(2*1)+(4*5))/8 = 3.0

Any help in this would be greatly appreciated.

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
sumif problem Rick Excel Discussion (Misc queries) 2 February 6th 08 06:56 AM
sumif problem RPW New Users to Excel 3 February 9th 07 09:14 PM
SumIf Problem Brian Matlack Excel Discussion (Misc queries) 7 April 18th 06 12:26 AM
SUMIF Problem julie Excel Discussion (Misc queries) 0 November 10th 05 12:27 AM
SumIf Problem carl Excel Worksheet Functions 4 October 18th 05 06:19 PM


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