• 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
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

SumIFs best practice..I want to condense my formula|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / SumIFs best practice..I want to condense my formula|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
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…SumIFs best practice..I want to con…
sp_PrintTopic sp_TopicIcon
SumIFs best practice..I want to condense my formula
Avatar
Leslie Smith
Member
Members
Level 0
Forum Posts: 9
Member Since:
August 8, 2020
sp_UserOfflineSmall Offline
1
August 8, 2020 - 8:29 am
sp_Permalink sp_Print

Hi, 

I am looking to keep track of an associates daily tasks. I want to keep track of that in a summary sheet for the entire week.

I am looking to see if that person is on a certain job A OR job B. They may also not start on Job A or B but may switch to that later.  If so then add the data in this range of cells. 

What is happening is that the number of cells that I am comparing is a mismatch to the cells that I want to sum when trying to use a sumIfs statement. 

So I had to compared each cell to each condition for each day of the week. 

 

=(((SUMIF(P78,BALE,AF78))+(SUMIF(R78,BALE,AF78))+(SUMIF(T78,BALE,AF78)))+(((SUMIF(AI78,BALE,AY78))+(SUMIF(AK78,BALE,AY78))+(SUMIF(AM78,BALE,AY78)))+(((SUMIF(BB78,BALE,BR78))+(SUMIF(BD78,BALE,BR78))+(SUMIF(BF78,BALE,BR78)))+(((SUMIF(BU78,BALE,CK78))+(SUMIF(BW78,BALE,CK78))+(SUMIF(BY78,BALE,CK78)))+(((SUMIF(CN78,BALE,DD78))+(SUMIF(CP78,BALE,DD78))+(SUMIF(CR78,BALE,DD78)))+(((SUMIF(DG78,BALE,DW78))+(SUMIF(DI78,BALE,DW78))+(SUMIF(DK78,BALE,DW78)))+(((SUMIF(DZ78,BALE,EP78))+(SUMIF(EB78,BALE,EP78))+(SUMIF(ED78,BALE,EP78)))))))))) +(((SUMIF(P78,PALL,AF78))+(SUMIF(R78,PALL,AF78))+(SUMIF(T78,PALL,AF78)))+(((SUMIF(AI78,PALL,AY78))+(SUMIF(AK78,PALL,AY78))+(SUMIF(AM78,PALL,AY78)))+(((SUMIF(BB78,PALL,BR78))+(SUMIF(BD78,PALL,BR78))+(SUMIF(BF78,PALL,BR78)))+(((SUMIF(BU78,PALL,CK78))+(SUMIF(BW78,PALL,CK78))+(SUMIF(BY78,PALL,CK91)))+(((SUMIF(CN78,PALL,DD78))+(SUMIF(CP78,PALL,DD78))+(SUMIF(CR78,PALL,DD78)))+(((SUMIF(DG78,PALL,DW78))+(SUMIF(DI78,PALL,DW78))+(SUMIF(DK78,PALL,DW78)))+(((SUMIF(DZ78,PALL,EP78))+(SUMIF(EB78,PALL,EP78))+(SUMIF(ED78,PALL,EP78))))))))))

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
August 8, 2020 - 2:51 pm
sp_Permalink sp_Print

Hi Leslie,

The reason you're having problems is because the file is not structured correctly. In order to use SUMIF your data should be in a tabular format. Your data is already in what I call a semi-report. i.e. you've skipped the tabular data step and jumped straight to a report style layout. This is sometimes easier for the purpose of data entry, but when it comes time to summarising and analysing data, it becomes a nightmare...as illustrated by the SUMIF formula above! 🙂

I would use Power Query to get the data you're wanting to summarise and consolidate it into a tabular format so the formulas can be used the way they were intended. If you keep the file the way it is you're destined for formula errors. It's just too risky.

This tutorial shows you how to unpivot data using Power Query, which is what you'll need to do, but for multiple tables which you will then want to append to one another to make one big table that contains all of the data you want to summarise in the SUMIF fomula example above.

I hope that points you in the right direction. If you get stuck with Power Query, please come back and raise a new ticket with your Excel file containing the query.

Mynda

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Jeanine Hagge
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 205
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Othman AL MUTAIRI
Misael Gutierrez Sr.
Attif Ihsan
Kieran Fee
Murat Hasanoglu
Brett Dryland
Saeed Aldousari
Bhuwan Devkota
Kathryn Patton
Maria Conatser
Forum Stats:
Groups: 3
Forums: 24
Topics: 6222
Posts: 27293

 

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

Sidebar

Blog Categories

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

Company

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

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.