Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am working on sales bonuses in a sales tracking sheet. It is setup as
follows: Column G H L O 21 DP $5,000 S 23 AF $10,000 S I want to average column L if G=21, H=DP, and O=S. I entered: Average(IF((G2:G100=U2),--(H2:H100=V3),L2:L100) (CTRL, SHIFT, ENTER). The U2 and V3 are refrencing cells where I have put 21,23 and DP or AF as to not make them equal "DP" or 21. I have also used the "DP" or 21 in the equation. I cannot figure this out. Please help me. Thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Todd,
You should be able to structure it using concatenation: =average(if(g2:g100&h2:h100&l2:l100=u2&v3&"S",aver age_rng,"")) Ensure you press shift-control-enter Replace average_rng with the range that will be averaged. -- http://HelpExcel.com "Todd" wrote: I am working on sales bonuses in a sales tracking sheet. It is setup as follows: Column G H L O 21 DP $5,000 S 23 AF $10,000 S I want to average column L if G=21, H=DP, and O=S. I entered: Average(IF((G2:G100=U2),--(H2:H100=V3),L2:L100) (CTRL, SHIFT, ENTER). The U2 and V3 are refrencing cells where I have put 21,23 and DP or AF as to not make them equal "DP" or 21. I have also used the "DP" or 21 in the equation. I cannot figure this out. Please help me. Thanks |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=AVERAGE(IF((G2:G100=U2)*(H2:H100=V3),L2:L100))
ctrl+shift+enter, not just enter "Todd" wrote: I am working on sales bonuses in a sales tracking sheet. It is setup as follows: Column G H L O 21 DP $5,000 S 23 AF $10,000 S I want to average column L if G=21, H=DP, and O=S. I entered: Average(IF((G2:G100=U2),--(H2:H100=V3),L2:L100) (CTRL, SHIFT, ENTER). The U2 and V3 are refrencing cells where I have put 21,23 and DP or AF as to not make them equal "DP" or 21. I have also used the "DP" or 21 in the equation. I cannot figure this out. Please help me. Thanks |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=AVERAGE(IF((G2:G100=U2)*(H2:H100=V3)*(O2:O100="S" ),L2:L100,""))
Still entered with CTRL+SHIFT+ENTER. -- Regards, Dave "Todd" wrote: I am working on sales bonuses in a sales tracking sheet. It is setup as follows: Column G H L O 21 DP $5,000 S 23 AF $10,000 S I want to average column L if G=21, H=DP, and O=S. I entered: Average(IF((G2:G100=U2),--(H2:H100=V3),L2:L100) (CTRL, SHIFT, ENTER). The U2 and V3 are refrencing cells where I have put 21,23 and DP or AF as to not make them equal "DP" or 21. I have also used the "DP" or 21 in the equation. I cannot figure this out. Please help me. Thanks |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Todd
Try the non-array entered Sumproduct formula as follows =SUMPRODUCT((G2:G100=U2)*(H2:H100=V3)*L2:L100)/ SUMPRODUCT((G2:G100=U2)*(H2:H100=V3)) -- Regards Roger Govier "Todd" wrote in message ... I am working on sales bonuses in a sales tracking sheet. It is setup as follows: Column G H L O 21 DP $5,000 S 23 AF $10,000 S I want to average column L if G=21, H=DP, and O=S. I entered: Average(IF((G2:G100=U2),--(H2:H100=V3),L2:L100) (CTRL, SHIFT, ENTER). The U2 and V3 are refrencing cells where I have put 21,23 and DP or AF as to not make them equal "DP" or 21. I have also used the "DP" or 21 in the equation. I cannot figure this out. Please help me. Thanks |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I did not know you could use a concentration. Worked great and I will give
you a reply. Thank you very much. Todd "galimi" wrote: Todd, You should be able to structure it using concatenation: =average(if(g2:g100&h2:h100&l2:l100=u2&v3&"S",aver age_rng,"")) Ensure you press shift-control-enter Replace average_rng with the range that will be averaged. -- http://HelpExcel.com "Todd" wrote: I am working on sales bonuses in a sales tracking sheet. It is setup as follows: Column G H L O 21 DP $5,000 S 23 AF $10,000 S I want to average column L if G=21, H=DP, and O=S. I entered: Average(IF((G2:G100=U2),--(H2:H100=V3),L2:L100) (CTRL, SHIFT, ENTER). The U2 and V3 are refrencing cells where I have put 21,23 and DP or AF as to not make them equal "DP" or 21. I have also used the "DP" or 21 in the equation. I cannot figure this out. Please help me. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multiple IF statements or a better method ? | Excel Discussion (Misc queries) | |||
2 IF Statements not mutually exclusive | Excel Discussion (Misc queries) | |||
UDFunctions and nested If-the-else statements | Excel Worksheet Functions | |||
Linking two IF statements together | Excel Discussion (Misc queries) | |||
Changing the range of several averaging functions | Excel Discussion (Misc queries) |