+ Reply to Thread
Results 1 to 11 of 11

Return number of out of date training in a month

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-13-2013
    Location
    Swindon UK
    MS-Off Ver
    Excel 2010
    Posts
    277

    Return number of out of date training in a month

    Hi All

    sorry for the tital did not know what to call it, any way here goes

    i have a training spredsheet and all the training that is out of date for say fork lift training will automaticll populate at the bottom under each month, this is working ok but i have to keep changing the date every year, see code here "ARP 2018, i need to change manuall each cell to 2021

    SUM(IF($D$22:$D$99="END DATE",IF(TEXT(E22:E99,"mmm yyyy")="ARP 2018"1,0)))

    I would like to refrence "ARP 2018" to the information to a cell ie cel a105 ( which will have 2021 in,

    I know this may seem confusing, i have attached the spreedsheet to try and make a bit clear.

    Can anyone please help

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,089

    Re: Return number of out of date training in a month

    You were asked to update the title of your original thread, not open a new one! I have closed the older thread.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    05-13-2013
    Location
    Swindon UK
    MS-Off Ver
    Excel 2010
    Posts
    277

    Re: Return number of out of date training in a month

    Hi Sorry

    Thank you for deleting old post for me

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,375

    Re: Return number of out of date training in a month

    1. There were no dates in April 2018 in your raw data.

    2. April abbreviates to APR, not ARP.

    =SUM(IF($D$22:$D$99="END DATE",IF(TEXT(E22:E99,"mmm yyyy")="APR 2018",1,0)))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Forum Contributor
    Join Date
    05-13-2013
    Location
    Swindon UK
    MS-Off Ver
    Excel 2010
    Posts
    277
    Hi

    Oops year APR not ARP lol sorry. But for the actual 2018 can that part be refrenced to cell a105 ?

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,375

    Re: Return number of out of date training in a month

    Yes, of course!!

    =SUM(IF($D$22:$D$99="END DATE",IF(TEXT(E22:E99,"mmm yyyy")="APR "&Date,1,0)))

    The bl@@dy thing wouldn't work for me until I remembered about ARP...

    Your sheet seems awfully slow!! Have your troubleshooted/troubleshot it to see why??

  7. #7
    Forum Contributor
    Join Date
    05-13-2013
    Location
    Swindon UK
    MS-Off Ver
    Excel 2010
    Posts
    277

    Re: Return number of out of date training in a month

    HI Glenn

    Thank you so much that worked, i just need to update all the other cells now with the new formula.

    I have not troubledshot the file, not sure how to do this

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,375

    Re: Return number of out of date training in a month

    When you update it... post it again here and PM me. I'll take a look for you. There is NO WAY that it should be so laggy. The use of an array formula is certainly overkill..

    But for now,

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

  9. #9
    Forum Contributor
    Join Date
    05-13-2013
    Location
    Swindon UK
    MS-Off Ver
    Excel 2010
    Posts
    277

    Re: Return number of out of date training in a month

    HI

    Thank you your so kind, will update and send it over

    King regards

  10. #10
    Forum Contributor
    Join Date
    05-13-2013
    Location
    Swindon UK
    MS-Off Ver
    Excel 2010
    Posts
    277

    Re: Return number of out of date training in a month

    Hi Glenn

    Here is the updatd file

    Thank you for taking a look
    Attached Files Attached Files

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,375

    Re: Return number of out of date training in a month

    I made the formulas a bit shorter, more automated and more easily copied.

    End date: =IF(E22="","",EDATE(E22,12*$E$20)-1)

    To copy paste quickly, I selected E22 & E23 and copy/pasted down the row. I then selected E22:E99 and copy pasted across the columns.

    I set up a Named Range containining th emonth names, starting from April (called months). I then called that from a formula in E105, to pull th emonth name from the Named Range, rather than from a mnaully adjusted entry:

    =SUMPRODUCT(($D$22:$D$99="END DATE")*(TEXT(E$22:E$99,"mmmyyyy")=INDEX(Months,ROWS(E$105:E105))&Date))

    Copy down, select column and paste into the other columns.

    I then ran a speed test and realsied that your BIGGEST problem was the (almost) 1,000 TODAY() you were using. These are a disaster. EVERY time anything changes anywhere in yourfile, the 1000 TODAY() values recalculate...

    So. I replaced them ALL with a reference to U1, where you MANUALLY enter the date on which you're looking at the sheet. The time taken to calculate the sheet fell 20-fold, to about 5% of its previous value. I suggest you DO NOT re-introduce all those TODAY()s.
    Attached Files Attached Files

+ 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. [SOLVED] Lookup a month from a weekly date range and return the minimum value in that month?
    By as9178 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-17-2020, 05:37 PM
  2. [SOLVED] Formula to return End OF Month date with non-calendar month lengths.
    By Snoddas in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 05-09-2014, 08:45 AM
  3. Replies: 12
    Last Post: 10-10-2013, 10:02 AM
  4. [SOLVED] Find first date of the month in range and return column number
    By jben86 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-06-2013, 08:30 PM
  5. [SOLVED] Date Formula to Return Week Number in Current Month based on Reporting Period
    By jeversf in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2013, 12:10 PM
  6. Replies: 4
    Last Post: 03-01-2012, 04:27 PM
  7. Replies: 3
    Last Post: 09-25-2007, 10:26 AM

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