Wednesday, July 6, 2016

Tech Support: Array for summing conditional averages

Array for summing conditional averages

I need an array formula to sum cells in a column when a row contains an "x", but to take an average of that cell if the row contains more than 1 "x".
In my screenshot below, I want F13 to give me a total for Jeff, based on which tasks have an "x" in column C.  And if there's more than 1 "x", then average the value in column F based on the number of x's in C2:E9.  I've manually entered the results in F13,
F14 & F15 in my screenshot, but I need a formula to do this for a larger, more complex worksheet.  Any ideas?

Solutions to the Problem Array for summing conditional averages

Download Error Fixer for Free Now

For a single formula solution, Using your posted example...try this:
F13: =SUMPRODUCT(($C$1:$E$1=B13)*($C$2:$E$9="X")*1/(($C$2:$C$9="X")+($D$2:$D$9="X")+($E$2:$E$9="X"))*$F$2:$F$9)
Copy F13 down through F15
Using the sample data, the formula returns these values:
6.75
8.75
13
Is that something you can work with?

Ron Coderre
Microsoft MVP - Excel (2006 - 2010)

P.S.
If any post answers your question, please mark it as the Answer (so it won't keep showing as an open item.)

Run CHKDSK

  • Go to the Start button.
  • In the Search box, type "cmd" (without quotes) and press Enter.
  • At the command prompt, type "chkdsk /r /f" (without quotes) and press Enter.
  • Reboot your computer.
NOTE: You might receive an error message that states:

"Access denied as you do not have significant privileges. You have to invoke this utility in elevated mode."

If you receive the above error message, it means you are not logged into you computer as an Administrator. If that's the case, follow these steps to run the command prompt in elevated mode:

  • Go to theStart button.
  • Go to "All Programs > Accessories" and right click on "Command Prompt".
  • Select "Run as Administrator".
  • In the Search box, type "cmd" (without quotes) and press Enter.
  • At the command prompt, type "chkdsk /r /f" (without quotes) and press Enter.
  • Reboot your computer.

Recommended Method to Fix the Problem: Array for summing conditional averages:

How to Fix Array for summing conditional averages with SmartPCFixer?

1. You can Download SmartPCFixer here. Install it on your computer. When you open SmartPCFixer, it will perform a scan.

2. After the scan is finished, you can see the errors and problems need to be repaired. Click Fix All.

3. The Repair part is done, the speed of your computer will be much higher than before and the errors have been fixed. You can also use other functions in this software. Like dll downloading, windows updating and print spooler error repair.


Related: AMD Radeon HD 7800M Win8 not working [Anwsered],I can access the internet, get on facebook and get to hotmail, but I can't play games on facebook and I can't open or respond to my e-mails,I keep getting this Media Player error when I log on my computer. [Anwsered],[Anwsered] System Hanging on shutdown and restart,Unable to get the Vlookup property of the WorksheetFunction class,Solution to Error: Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive.
,Troubleshoot:External Hard Drive not listed in Windows 7 backup wizard Error
,I'm always being signed off so annoying Tech Support
,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.
,Solution to Problem: Referencing data in another file
,Troubleshoot:Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive. Error,External Hard Drive not listed in Windows 7 backup wizard Tech Support,Tech Support: I'm always being signed off so annoying,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.,Referencing data in Access using Excel [Anwsered],Need Best Way To Present Data [Anwsered],Same question but for windows 7 home edition,sometimes fullscreen won't activate [Solved],Solution to Error: We bought a new computer with windows 7 and it is constantly freezing. How do we fix this?,Solution to Error: Windows 8 update crash (2013-07-22)
Read More: Solution to Error: Back and Forward Arrows No Longer There,How Can You Fix - Back up failure?,How Can You Fix - Backup status and configuration reports Next backup as unknown?,Troubleshooting:Automate selection of hyperlinks in worksheet,Fast Solution to Error: Backup Restore is failing error 0x80070002 0x8100002F 0x8100001A,application not found error,any problems in a team where one has Windows XP and the other has Windows 7?,Application/Object-Defined Error,An Excel formula question where hours are totalled and cumulating,Anyone know the hardware email?

No comments:

Post a Comment