• 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

LOOKUP & IF STATEMENTS |General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / LOOKUP & IF STATEMENTS |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…LOOKUP & IF STATEMENTS
sp_PrintTopic sp_TopicIcon
LOOKUP & IF STATEMENTS
Avatar
Rachel Harvey
Member
Members

Dashboards
Level 0
Forum Posts: 8
Member Since:
July 23, 2019
sp_UserOfflineSmall Offline
1
February 28, 2022 - 8:25 am
sp_Permalink sp_Print

Hello to the Forum 

This is my first post on the Forum, so apologies if I am going into too much detail hereEmbarassed

The issue I have involves two worksheets - a Project Management Summary Sheet and a Project Management Data Sheet.  This document will be used by a number of team members across various teams within the company and therefore I am keen to make it as clear and easy to use as possible,  I will also be adding some instructions for users.  

Both of these sheets reference each other.  The PM Data Sheet uses the project reference on the PM Summary Sheet and the PM SS uses the PM DS to establish the % complete of the whole project.  

The PM Data Sheet has a number of rows for each project (currently 18) representing each stage of the project, and I would like to show an overall project status on the PM Summary Sheet based on the status of these rows.  For example, if any 1 of the 18 stages is 'On Hold' the overall project status would be 'On Hold'.  If all stages were either 'Complete' or 'N/A' the overall status would be 'Complete'.  

I seem to be experiencing a mental block trying to put together the formula for this (Confused) hence my request to you.  I have considered LOOKUP and IF statements and also INDEX, MATCH and IF statements, but seem to be going around in circles.  Once I have this, I would like to represent the number of projects at each stage in a chart which I hope should be quite straightforward. 

I have attached a sample version of the spreadsheet being used which should explain this more clearly - there are a couple of notes on the SS just as reminders for me to add in some funtionality / formatting. 

Many thanks in advance for any advice, guidance you can offer. Smile

Kind regards R  

Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 202
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
2
February 28, 2022 - 6:00 pm
sp_Permalink sp_Print

Hi Rachel!

I have an IF formula for you with nested SUMPRODUCT. My initial thought was a COUNTIFS, but that doesn't account for any OR. So long winded explanation, sorry, but here's the formula I concocted.

=IF([@[Days Complete]]>0,IF(SUMPRODUCT((Table1[Project]='Project List'!$B3)*((Table1[Task Stage]="Complete")+(Table1[Task Stage]="N/A")))=COUNTIF(Table1[Project],'Project List'!$B3),"Complete","Incomplete"),"")

It's just checking to make sure the project name count in your Tracking tab = the number of Complete or N/A counts for that project. Obviously, you can change the text according to your needs. I hope this makes sense and at least gets you started toward your solution! 🙂

Avatar
Rachel Harvey
Member
Members

Dashboards
Level 0
Forum Posts: 8
Member Since:
July 23, 2019
sp_UserOfflineSmall Offline
3
March 1, 2022 - 1:45 am
sp_Permalink sp_Print

That's perfect - thanks Jessica, that's really a great help.  I haven't used SUMPRODUCT that much before, can I ask if I want to display a different Project Status depending on the task stage, would I nest another IF(SUMPRODUCT argument in the formula?  

I have attempted this, which works when the Project Status is Complete, but doesn't seem to pickup the 'Awaiting Input' Task Stage so I have clearly got this wrong somewhere. Cry Oh to be an Excel genius!  

=IF([@[Days Complete]]>0,IF(SUMPRODUCT((Table1[Project]='Project List'!$B5)*((Table1[Task
Stage]="Complete")+(Table1[Task
Stage]="N/A")))=COUNTIF(Table1[Project],'Project List'!$B5),"Complete",IF(SUMPRODUCT((Table1[Project]='Project List'!$B5)*((Table1[Task
Stage]="Awaiting Input")))=COUNTIF(Table1[Project],'Project List'!$B5),"Awaiting Input","")),"")

Again, any pointers you can give would be very much appreciated.  

Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 202
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
4
March 1, 2022 - 1:56 am
sp_Permalink sp_Print sp_EditHistory

Hi Rachel!

Thank you but I am far from an Excel genius.

=IF([@[Days Complete]]>0,IF(SUMPRODUCT((Table1[Project]='Project List'!$B5)*((Table1[Task
Stage]="Complete")+(Table1[Task
Stage]="N/A")))=COUNTIF(Table1[Project],'Project List'!$B5),"Complete",IF(SUMPRODUCT((Table1[Project]='Project List'!$B5)*((Table1[Task
Stage]="Awaiting Input")))=COUNTIF(Table1[Project],'Project List'!$B5),"Awaiting Input","")),"")

It looks like it is looking to compare the count like the first SUMPRODUCT formula. What you want is instead of =COUNTIF (in blue above) you want >0 - so if there is an "Awaiting input" in even one cell for that project your text would be "Awaiting Input".

Avatar
Rachel Harvey
Member
Members

Dashboards
Level 0
Forum Posts: 8
Member Since:
July 23, 2019
sp_UserOfflineSmall Offline
5
March 1, 2022 - 9:08 pm
sp_Permalink sp_Print

Amazing - that works perfectly!  Many thanks Jessica - I don't think I would have been able to work this out myself.  

You are definitely an Excel genius in my eyes... Smile

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Ben Hughes, Alison West, Ramon Lagos, Shawn Barwick
Guest(s) 12
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
yashal minahil
Oluwadamilola Ogun
Yannik H
dectator mang
Francis Drouillard
Orlando Inocente
Jovitha Clemence
Maloxat Axmatovna
Ricardo Freitas
Marko Meglic
Forum Stats:
Groups: 3
Forums: 24
Topics: 6201
Posts: 27185

 

Member Stats:
Guest Posters: 49
Members: 31861
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.