• 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

Excel: Creating a list of unique cells based on multiple criteria including a date range.|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Excel: Creating a list of unique cells based on multiple criteria including a date range.|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…Excel: Creating a list of unique ce…
sp_PrintTopic sp_TopicIcon
Excel: Creating a list of unique cells based on multiple criteria including a date range.
Avatar
Dave Clarke

New Member
Members
Level 0
Forum Posts: 1
Member Since:
February 28, 2019
sp_UserOfflineSmall Offline
1
February 28, 2019 - 1:56 am
sp_Permalink sp_Print

Hello,

I have an excel file that contains labour information. A separate line is entered for each work order that is worked on for each employee for each day (each employee typically works on numerous work orders each day). Here are some of the pertinent columns contained on the labour tab "Labour 2017-2018":

Column A: Work order number.

Column D: Date.

Column H: Number of hours worked (on that work order on that date).

Column I: Overtime (blank = regular pay, "Y" = time & ½, "D" = double time).

On another tab, I am trying to generate a separate list of work orders for each of the three pay rates (regular, time & ½ & double time) that are worked for a specific week. I have a cell where you can enter a week ending date (C2). I have another cell (C3) that calculates the beginning of that particular week based on the date entered (C2 - 6). I have created the following items under 'Name Manager':

JC_Work_Order: Column 'A' of the labour tab.

JC_Date: Column 'D' of the labour tab.

JC_Labour_Info: The entire labour tab (column 'A' to column 'I' for all of the labour items that have been entered).

JC_Code: Column 'I' of the labour tab.

I need three separate lists to be generated (regular pay, time & ½ and double time). I also need each list to only show the work orders that have labour associated with them during the particular week. This means that if a particular work order only has double time labour and no regular or time & ½ it will only show up on the double time list. If a work order has both regular time as well as time & ½ it would show up on both regular and time & ½ lists. I currently have the following formula for generating the list of work orders for regular time:

=IFERROR(INDEX(JC_Work_Order, MATCH(0,COUNTIF($A$4:A4, IF(($C$2>=JC_Date)*($C$3<=JC_Date), JC_Work_Order, $A$4)), 0)), "")

I save the formula by pressing CTRL/SHIFT/ENTER and it seems to work but it includes all of the work orders that have labour during the specified period. Unfortunately, this includes work orders that do not have regular labour but do have either time & ½ or double time labour. These work orders show up on the list but obviously they do not have any regular labour associated with them. I have not been able to figure out how to amend this formula to remove these particular work orders.

In addition, I cannot figure out the formulas for the time & ½ and double time lists.

Once the three lists of work orders are generated successfully, I want to calculate the number of hours that each employee works on each work order during that particular week. I currently have the following formula for calculating the regular hours worked:

=SUMIFS('Labour 2017-2018'!$H:$H,'Labour 2017-2018'!$C:$C,"="&C$4,'Labour 2017-2018'!$A:$A,"="&$A5,'Labour 2017-2018'!$D:$D,">="&$C$3,'Labour 2017-2018'!$D:$D,"<="&$C$2,'Labour 2017-2018'!$I:$I,"<>Y",'Labour 2017-2018'!$I:$I,"<>D")

This formula appears to be working properly. The entire Excel file is very large and I would prefer not to publish it online so I am hopeful that the information that I have provided will be sufficient for someone to understand what I am trying to do and potentially provide the three formulas that I need.

Any assistance with this would be greatly appreciated.

Thank you.

Dave

Avatar
joe denly

New Member
Members
Level 0
Forum Posts: 1
Member Since:
February 28, 2019
sp_UserOfflineSmall Offline
2
February 28, 2019 - 4:01 pm
sp_Permalink sp_Print

Creating unique cells using criteria is different and there are multiple ways to do this. Fix Error code 0X0070002 helped me to get the detail of this.

Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 689
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
3
February 28, 2019 - 11:12 pm
sp_Permalink sp_Print

It sounds to me like a pivot table would be ideal for this. Or Power Query, if you have it.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Tracy English, David Birch, QSolutions Group
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:
Jennifer Rodriguez-Avila
Khaled Ibrahim
Kiran Supekar
Lisa Myers
Ronald White
Ginette Guevremont
Taryn Ambrosi
Mark Davenport
Christy Nichols
Harald Endres
Forum Stats:
Groups: 3
Forums: 24
Topics: 6530
Posts: 28602

 

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