• 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
    • 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

Aggregate Function with IF Condition|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Aggregate Function with IF Condition|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…Aggregate Function with IF Conditio…
sp_PrintTopic sp_TopicIcon
Aggregate Function with IF Condition
Avatar
Ahamed Shaakir
Member
Members
Level 0
Forum Posts: 15
Member Since:
March 29, 2020
sp_UserOfflineSmall Offline
1
January 12, 2023 - 2:57 pm
sp_Permalink sp_Print

Hi,

Aggregate funtion with IF conditions doesn't work for options like Average and Sum. But it works fine for options Large and Small. Any concerns! Screenshot-2023-01-12-102647.pngImage Enlarger

Screenshot-2023-01-12-102614.pngImage Enlarger

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 845
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
2
January 14, 2023 - 1:09 am
sp_Permalink sp_Print

Hello,

Please attach an Excel file instead of pictures, your formulas are referencing columns we don't see in the pictures and not many want to sit and create their own sample data, which may or may not be similar to your data.

There is a nice blog post about this aggregate function, well worth reading.
https://www.myonlinetraininghu.....e-function

As per the help text about this function (https://support.microsoft.com/.....9993fa26df)

Errors:
If a second ref argument is required but not provided, AGGREGATE returns a #VALUE! error.
If one or more of the references are 3-D references, AGGREGATE returns the #VALUE! error value.

Without access to the data I can't really give a better answer.

Br,
Anders

Avatar
Jessica Stewart
Northern USA
Member
Members

Dashboards

Power Query
Level 0
Forum Posts: 185
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
3
January 14, 2023 - 1:38 am
sp_Permalink sp_Print

It looks like you have the order wrong, it should be IF(D:D="Full Time", AGGREGATE(...),""). As Anders said, we can't give a better answer without seeing the actual spreadsheet.

Avatar
Velouria
London or thereabouts
Member
Members


Trusted Members
Level 4
Forum Posts: 574
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
4
January 14, 2023 - 1:48 am
sp_Permalink sp_Print

The first 13 options for AGGREGATE require a range to process and will not work with an array, which is what your IF function is returning.

Avatar
Ahamed Shaakir
Member
Members
Level 0
Forum Posts: 15
Member Since:
March 29, 2020
sp_UserOfflineSmall Offline
5
January 14, 2023 - 4:19 pm
sp_Permalink sp_Print

Thank you for the reply!

Pls check the google sheets. Pls feel free to edit the google sheets, I have given edit access.

https://docs.google.com/spread.....38;sd=true, https://docs.google.com/spread.....38;sd=true

The following users say thank you to Ahamed Shaakir for this useful post:

Mynda Treacy
sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 170
Currently Online: Riny van Eekelen, Ivan Kulubya, Vijay Vardhan
Guest(s) 86
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1431
Anders Sehlstedt: 845
Velouria: 574
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 213
A.Maurizio: 202
Aye Mu: 201
Jessica Stewart: 185
Newest Members:
Vicky Otosnika
Abhishek Singh
Kevin Sojourner
Kara Weiss
And Woox
Armani Quenga
moshood bello
annelies b
James1989
lucy gilmour
Forum Stats:
Groups: 3
Forums: 24
Topics: 6045
Posts: 26523

 

Member Stats:
Guest Posters: 49
Members: 31492
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Riny van Eekelen
© Simple:Press —sp_Information
  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
 
  • About My Online Training Hub
  • Contact
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

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.

Download A Free Copy of 100 Excel Tips & Tricks

excel tips and tricks ebook

We respect your privacy. We won’t spam you.

x