Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-23-2016, 11:05 AM
sammielou sammielou is offline Is this possible?! Windows 7 64bit Is this possible?! Office 2013
Novice
Is this possible?!
 
Join Date: Feb 2016
Posts: 9
sammielou is on a distinguished road
Default Is this possible?!

I'm trying to get an average percentage per client. I attached a copy of my current sheet to give a visual of what I'm trying to do. There is a percent and to the right is a client name or abbreviation. My goal is to calculate an average for the scores in the left columns based on the clients listed in the right columns.


Thanks!
Attached Images
File Type: png Capture.PNG (46.5 KB, 23 views)
Reply With Quote
  #2  
Old 02-23-2016, 12:18 PM
gebobs gebobs is offline Is this possible?! Windows 7 64bit Is this possible?! Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

For each client...

=sumif(f:f,[client],e:e)/countif(f:f,[client])

modify the ranges as you see fit.
Reply With Quote
  #3  
Old 02-23-2016, 03:57 PM
sammielou sammielou is offline Is this possible?! Windows 7 64bit Is this possible?! Office 2013
Novice
Is this possible?!
 
Join Date: Feb 2016
Posts: 9
sammielou is on a distinguished road
Default

=sumif(F3:F15,S4A,E3:E15)/countif(F3:F15,S4A)


This is the formula that I'm putting in and I'm getting the following output:

#DIV/0!

Can you take a look at the image I have attached and see if you can provide any additional assistance?

Also can I use wildcards in this formula for the client names?

Thanks!
Reply With Quote
  #4  
Old 02-23-2016, 04:09 PM
gebobs gebobs is offline Is this possible?! Windows 7 64bit Is this possible?! Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Quote:
Originally Posted by sammielou View Post
=sumif(F3:F15,S4A,E3:E15)/countif(F3:F15,S4A)
You would need to put the client name in quotes since it is text.

Alternatively, you could have a list of clients in a table and the formulas the next column over with the formula referencing the address of the client field.

Quote:
Also can I use wildcards in this formula for the client names?
http://www.bluepecantraining.com/por...ifs-functions/
Reply With Quote
  #5  
Old 02-23-2016, 11:10 PM
xor xor is offline Is this possible?! Windows 10 Is this possible?! Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

I can see you use Office 2013 so you could try this one (in for example T3 and copy down):

=IFERROR(AVERAGEIFS($A$3:$A$15,$B$3:$B$15,B3,$A$3: $A$15,"<>"),"")

And yes, you can use wildcards for client names. For example

=IFERROR(AVERAGEIFS($A$3:$A$15,$B$3:$B$15,"O*",$A$ 3:$A$15,"<>"),"")

will return 0.831429 which is the average for all clients where name starts with O.

As stated here the formula cannot be copied to the right without manual adjustment of the references because of the client columns.
Reply With Quote
  #6  
Old 02-24-2016, 06:43 AM
gebobs gebobs is offline Is this possible?! Windows 7 64bit Is this possible?! Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Ohhhh....AVERAGEIF. I should have thought of that.
Reply With Quote
  #7  
Old 02-24-2016, 09:19 AM
sammielou sammielou is offline Is this possible?! Windows 7 64bit Is this possible?! Office 2013
Novice
Is this possible?!
 
Join Date: Feb 2016
Posts: 9
sammielou is on a distinguished road
Default

Thank you guys so much. So this is where I'm at now... and I'm feeling a little dumb lol


I plugged in this formula:
=IFERROR(AVERAGEIFS($E$3:$E$15,$F$3:$F$15,"*AVE",$ E$3:$E$15,"<>"),"")

and got the correct average for the clients on one week. The issue I'm facing now is how get the average for multiple weeks so that I can get an average per client for the entire month.

Any help is appreciated!!

Thanks!
Reply With Quote
  #8  
Old 02-24-2016, 09:39 AM
xor xor is offline Is this possible?! Windows 10 Is this possible?! Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

What do you mean by entire month. Which columns? Please give examples of expected results.

(It would be easier to help if you could upload an Excel file instead of a picture).
Reply With Quote
  #9  
Old 02-24-2016, 02:44 PM
sammielou sammielou is offline Is this possible?! Windows 7 64bit Is this possible?! Office 2013
Novice
Is this possible?!
 
Join Date: Feb 2016
Posts: 9
sammielou is on a distinguished road
Default

Basically what I'm doing is trying to get an average percentage per client for our entire month. Each week has two separate columns containing scores for that week.

I have attached my excel document. Thanks again for all your help!
Attached Files
File Type: xlsx AverageByClient.xlsx (12.7 KB, 17 views)
Reply With Quote
  #10  
Old 02-25-2016, 12:17 AM
xor xor is offline Is this possible?! Windows 10 Is this possible?! Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

What would then be the average percentage for instance for AVE and OAVE for your entire month? Please specify exactly which cells should be included for each of these clients (cf. my request at expected results in my previous message).
Reply With Quote
  #11  
Old 02-25-2016, 05:57 AM
sammielou sammielou is offline Is this possible?! Windows 7 64bit Is this possible?! Office 2013
Novice
Is this possible?!
 
Join Date: Feb 2016
Posts: 9
sammielou is on a distinguished road
Default

For example I need an combined average for all percentages to the left of all clients listed as AVE and OAVE: C5,C6,C8,C11,C13,E5,E6,E8,E11,G6,G8,G9,G11,G13 ect...

I am aware of how to get this manually each month. I'm just trying to get help with a formula that will calculate an average percent based on the percentages to the left of each client name.

I hope that makes since... Please let me know if you need more clarification, sorry.
Again thank you for helping.
Reply With Quote
  #12  
Old 02-25-2016, 08:17 AM
gebobs gebobs is offline Is this possible?! Windows 7 64bit Is this possible?! Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

I'll dip my toe in again with a possible solution. If there's a more elegant one, perhaps xor knows it.

I don't think one can do AVERAGEIFS over multiple ranges. If so, then you would have to do it for each column of data and then combine. But averages of averages may not be accurate. This is definitely the case here since there are variable counts in the columns which would weight the percentages in columns with fewer counts greater than those with more.

Thus, the most accurate solution I can think of would be to go back to my earlier less elegant formula and expand it over the columns i.e. (sum of sums for each)/(sum of counts for each).

Without further ado, the formula from hell...

Code:
=IFERROR((SUMIF(D2:D13,"*ave",C2:C13)+SUMIF(F2:F13,"*ave",E2:E13)+SUMIF(H2:H13,"*ave",G2:G13)+SUMIF(J2:J13,"*ave",I2:I13)+SUMIF(L2:L13,"*ave",K2:K13)+SUMIF(N2:N13,"*ave",M2:M13)+SUMIF(P2:P13,"*ave",O2:O13)+SUMIF(R2:R13,"*ave",Q2:Q13))/(COUNTIF(D2:D13,"*ave")+COUNTIF(F2:F13,"*ave")+COUNTIF(H2:H13,"*ave")+COUNTIF(J2:J13,"*ave")+COUNTIF(L2:L13,"*ave")+COUNTIF(N2:N13,"*ave")+COUNTIF(P2:P13,"*ave")+COUNTIF(R2:R13,"*ave")),"")
Reply With Quote
  #13  
Old 02-25-2016, 09:08 AM
sammielou sammielou is offline Is this possible?! Windows 7 64bit Is this possible?! Office 2013
Novice
Is this possible?!
 
Join Date: Feb 2016
Posts: 9
sammielou is on a distinguished road
Default

Quote:
Originally Posted by gebobs View Post
I'll dip my toe in again with a possible solution. If there's a more elegant one, perhaps xor knows it.

I don't think one can do AVERAGEIFS over multiple ranges. If so, then you would have to do it for each column of data and then combine. But averages of averages may not be accurate. This is definitely the case here since there are variable counts in the columns which would weight the percentages in columns with fewer counts greater than those with more.

Thus, the most accurate solution I can think of would be to go back to my earlier less elegant formula and expand it over the columns i.e. (sum of sums for each)/(sum of counts for each).

Without further ado, the formula from hell...

Code:
=IFERROR((SUMIF(D2:D13,"*ave",C2:C13)+SUMIF(F2:F13,"*ave",E2:E13)+SUMIF(H2:H13,"*ave",G2:G13)+SUMIF(J2:J13,"*ave",I2:I13)+SUMIF(L2:L13,"*ave",K2:K13)+SUMIF(N2:N13,"*ave",M2:M13)+SUMIF(P2:P13,"*ave",O2:O13)+SUMIF(R2:R13,"*ave",Q2:Q13))/(COUNTIF(D2:D13,"*ave")+COUNTIF(F2:F13,"*ave")+COUNTIF(H2:H13,"*ave")+COUNTIF(J2:J13,"*ave")+COUNTIF(L2:L13,"*ave")+COUNTIF(N2:N13,"*ave")+COUNTIF(P2:P13,"*ave")+COUNTIF(R2:R13,"*ave")),"")


Thanks so much for the formula. I tried it out and it doesn't seem to be accurate it is a few percentile off of the actual average. I think we may try to do something to make this work by pasting them in the same column. Unless anyone has a better solution...
Reply With Quote
  #14  
Old 02-25-2016, 09:55 AM
xor xor is offline Is this possible?! Windows 10 Is this possible?! Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default Is this possible?!

Don't know if this can be used but you may want to give it a try.
Attached Files
File Type: xlsx AverageOfAverages_2.xlsx (15.4 KB, 13 views)
Reply With Quote
  #15  
Old 02-25-2016, 10:40 AM
sammielou sammielou is offline Is this possible?! Windows 7 64bit Is this possible?! Office 2013
Novice
Is this possible?!
 
Join Date: Feb 2016
Posts: 9
sammielou is on a distinguished road
Default

Many thanks xor and gebobs!

You guys rock!!
Thanks for saving me so much time and brain rattling!

Reply With Quote
Reply



Other Forums: Access Forums

All times are GMT -7. The time now is 03:52 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft