• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

Average IFS Error|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Average IFS Error|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Average IFS Error
sp_PrintTopic sp_TopicIcon
Average IFS Error
Avatar
Paul Benjamin
Member
Members
Level 0
Forum Posts: 89
Member Since:
July 11, 2017
sp_UserOfflineSmall Offline
1
July 3, 2023 - 3:37 am
sp_Permalink sp_Print

Hi,

I'm trying to find the average rate of pay at each site for Supervision, there are 9 different Supervision roles so I have written an AVERAGEIFS formula to look at the key words Assistant, Supervisor & Floor, but the formula is not working and I'm not sure what I have done wrong. The data is from row 2 to 2382 and the 1st result should appear in cell D2384.

Supervisor
Assistant
Supervisor Extra Chargeable
Floor Supervisor - Xtr Chargeable
Floor Housekeeper
Floor Supervisor
PA Supervisor
Senior Supervisor
Night Supervisor

Any help would be greatly appreciated.

Regards

Paul

Avatar
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members


Trusted Members

Moderators

Power BI
Level 1
Forum Posts: 605
Member Since:
January 31, 2022
sp_UserOfflineSmall Offline
2
July 3, 2023 - 3:41 pm
sp_Permalink sp_Print

Criteria entered in AVERAGEIFS work like an AND function. Only items for which all criteria are met will be included in the average calculation.

Obviously, no item will ever contain "assistent" AND *supervisor" AND *floor", unless there would an Assistent floor supervisor.

Better to create a pivot table (Site Name in the Rows area, Service in the Column area and Final Rate in the Values field, set to calculate Average.

Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 688
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
3
July 3, 2023 - 4:48 pm
sp_Permalink sp_Print

If you have the FILTER function available, you could use:

=IFERROR(AVERAGE(FILTER($D$2:$D$2382,COUNT(SEARCH({"assistant","supervisor","floor"},$C$2:$C$2382)))),0)

If not, it's still achievable with formulas using a SUM(SUMIFS())/SUM(COUNTIFS()) construction.

Avatar
Paul Benjamin
Member
Members
Level 0
Forum Posts: 89
Member Since:
July 11, 2017
sp_UserOfflineSmall Offline
4
July 5, 2023 - 1:00 am
sp_Permalink sp_Print

Thanks Riny & Velouria

 

@Velouria: the formula works but gives me the average of all 2382 rows, I need to know the average for each of the 188 sites, so need to also lookup site in column A, I'm not sure how to add that to your formula

Thanks

Paul

Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 688
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
5
July 5, 2023 - 4:26 pm
sp_Permalink sp_Print

You can add that in like this:

=IFERROR(AVERAGE(FILTER($D$2:$D$2382,COUNT(SEARCH({"assistant","supervisor","floor"},$C$2:$C$2382))*($a$2:$a$2382="site name"))),0)

Avatar
Paul Benjamin
Member
Members
Level 0
Forum Posts: 89
Member Since:
July 11, 2017
sp_UserOfflineSmall Offline
6
July 10, 2023 - 9:42 pm
sp_Permalink sp_Print

Thanks Velouria,

I'm away at the moment, let me try this when I get back, will confirm all OK the,

Regards

Paul

Avatar
Paul Benjamin
Member
Members
Level 0
Forum Posts: 89
Member Since:
July 11, 2017
sp_UserOfflineSmall Offline
7
July 15, 2023 - 1:56 am
sp_Permalink sp_Print

Hi Velouria,

I have attached an updated the attached sheet,

When I add in all other services the old formula (cell C185) returns an average of all rows not the average of the requested rows which contains the words Assistant, Supervisor or Floor.

When I update with the new formula (Cell C184) to look up the average for a site, the new formula returns 0, I presume because it does not know which site to look for, it needs something that first looks at cell B184 then site name in column A

Thanks Paul

Avatar
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members


Trusted Members

Moderators

Power BI
Level 1
Forum Posts: 605
Member Since:
January 31, 2022
sp_UserOfflineSmall Offline
8
July 15, 2023 - 4:47 pm
sp_Permalink sp_Print

Cahnge the formula to:
=FILTER($C$2:$C$181,($A$2:$A$181=B184)*BYROW(SEARCH({"Assistant","Supervisor","Floor"},$B$2:$B$181),LAMBDA(a,COUNT(a))))

and note that there are two you omitted the "Evening Supervisor" (rows 24 and 114) role in your example. That will change the outcome for Site 1 to 13.13 and 11.607 for Site 2.

Avatar
Paul Benjamin
Member
Members
Level 0
Forum Posts: 89
Member Since:
July 11, 2017
sp_UserOfflineSmall Offline
9
July 18, 2023 - 8:52 pm
sp_Permalink sp_Print

Thanks Riny

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Susan VanRiper, Sue Hammond, Lee Mapes, Tracy English, Joaquim Amorim, Mohamed Touahria
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
jaryszek: 183
Newest Members:
David von Kleek
Ronald White
Ginette Guevremont
Taryn Ambrosi
Mark Davenport
Christy Nichols
Harald Endres
Ashley Hughes
Herbie Key
Trevor Pindling
Forum Stats:
Groups: 3
Forums: 24
Topics: 6528
Posts: 28594

 

Member Stats:
Guest Posters: 49
Members: 32817
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.