+ Reply to Thread
Results 1 to 9 of 9

Adding counters for each employee based on cell values in multiple sheets

Hybrid View

  1. #1
    Registered User
    Join Date
    04-18-2024
    Location
    Canada
    MS-Off Ver
    MS365 2402
    Posts
    15

    Post Adding counters for each employee based on cell values in multiple sheets

    Hello everyone,

    I'm trying to generate a counter for each employee based on cell values on multiple sheets.

    I have attached a mocked-up file of what I'm looking for. Example of data is shown on the January sheet (I need the counters on the summary page to keep adding up based on the data inputted on each sheet - January, February, March and so on). A screen shot of the counter I would like to use it shown on the summary sheet. I would need a counter for each employee.

    Thank you.

    Employee Absence Report COPYCOPY.xlsx
    Last edited by Jordon R; 04-29-2024 at 06:39 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,945

    Re: Adding counters for each employee based on cell values in multiple sheets

    Well, 10 out of 10 for artistic impression. I'm looking at this on an iPad so I can't get at your existing formulae.

    I would use VSTACK to stack the data from the month sheets in one "table" and use that as the basis for your counters. You might need to use FILTER rather than COUNTIF as I think COUNTIF might need a range rather than an array.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,796

    Re: Adding counters for each employee based on cell values in multiple sheets

    This has been adapted from a very well-used Microsoft template - I recognise the format and style.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,945

    Re: Adding counters for each employee based on cell values in multiple sheets

    I wouldn't know. Never used them. Too much "pretty" and not enough practical.

  5. #5
    Registered User
    Join Date
    04-18-2024
    Location
    Canada
    MS-Off Ver
    MS365 2402
    Posts
    15

    Re: Adding counters for each employee based on cell values in multiple sheets

    They wanted it to look "Nice", so I had to compromise functionality.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,796

    Re: Adding counters for each employee based on cell values in multiple sheets

    The named ranges are getting in the way of stacking the worksheets with HSTACK, so would need renaming.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,796

    Re: Adding counters for each employee based on cell values in multiple sheets

    OK - so I renamed the named ranges from January and February to JanuaryM and FebruaryM, then used the following in February AI9:

    =LET(c,HSTACK(January:February!C9:AG9),IFERROR(COLUMNS(FILTER(c,c=LEFT(FebruaryM[[#Headers],[Paid/Unpaid]]))),0))

    The other monthly named ranges would need similarly renaming, then the formula for March would be:

    =LET(c,HSTACK(January:March!C9:AG9),IFERROR(COLUMNS(FILTER(c,c=LEFT(MarchM[[#Headers],[Paid/Unpaid]]))),0))

    and for April:

    =LET(c,HSTACK(January:April!C9:AG9),IFERROR(COLUMNS(FILTER(c,c=LEFT(AprilM[[#Headers],[Paid/Unpaid]]))),0))

    and so on.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    04-18-2024
    Location
    Canada
    MS-Off Ver
    MS365 2402
    Posts
    15

    Re: Adding counters for each employee based on cell values in multiple sheets

    Thank you so much for your help!

  9. #9
    Registered User
    Join Date
    04-18-2024
    Location
    Canada
    MS-Off Ver
    MS365 2402
    Posts
    15

    Re: Adding counters for each employee based on cell values in multiple sheets

    Hey, How do I change the named ranges? Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Unhide Sheets Based on Multiple Cell Values
    By povictory in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2022, 08:30 PM
  2. [SOLVED] Need help with adding multiple cell values based on criteria.
    By skonduru in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 03-25-2016, 04:26 PM
  3. [SOLVED] Adding multiple values based on certain text in another cell
    By n3mcx1 in forum Excel General
    Replies: 2
    Last Post: 10-14-2015, 10:07 AM
  4. [SOLVED] Split excel data into multiple sheets based on Employee ID
    By Preeti1309 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-21-2014, 02:33 AM
  5. Adding cell values across multiple sheets
    By iracknback in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-09-2013, 10:51 AM
  6. Replies: 1
    Last Post: 10-01-2013, 02:41 AM
  7. [SOLVED] Want to pull values based on same cell # but from multiple sheets
    By pamc in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-29-2013, 09:52 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1