+ Reply to Thread
Results 1 to 3 of 3

Flexible date conversion

  1. #1
    Registered User
    Join Date
    02-19-2018
    Location
    London, UK
    MS-Off Ver
    2016
    Posts
    11

    Flexible date conversion

    Hi.

    I'm trying to create a Recruitment Dashboard and I would like to compare various attributes year-on-year.

    The challenge is that the database gives us a column "Date application submitted" in a weird format and I would like to automatically code it into "MAT TY" (Moving Annual Total This Year) and "MAT YA" (Moving Annual Total Year Ago).

    I would like to pull the data out every month and refresh the dashboard to see how it's changing. I am able to pull 24 months of data which will give us everything needed for MAT TY and MAT YA but it won't be ordered by date. The order of applications in the database is random (I think).

    Let's assume it's 1st of April 2018 today. I am downloading data from 1st of April 2016 to 31st of March 2018. In this case the MAT TY will be from 1st of April 2017 to 31st of March 2018. MAT YA will include applications from 1st of April 2016 to 31st of March 2017.
    Obviously these dates/definitions will move forward when I want to repeat the exercise again on the 1st of May 2018. Then an application from 2nd of April 2017 should be classified at "MAT YA", not "MAT TY" any more.

    Data sample is attached. In red you can see an example of a result I would be keen to get (I filled it manually). If it's easier to e.g. put it in 2 columns feel free to change the format.

    Example of a task: let's compare what source did the candidates use to apply for a job in the latest 12 months vs previous 12 months. Has there been an increase in "LinkedIn Search"?

    Looking forward to hear your solutions!
    Cheers,
    Anna
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Flexible date conversion

    You need to record the start and end dates of the periods of interest, so I've assumed that you use F2 to H2 to record 1/04/2016, 1/04/2017 and 1/14/2018 in this example. Also, the "dates" that you show in column C are not proper dates (in the UK) because of the dashes, and so in D2 you can use this formula:

    =IF(AND(--SUBSTITUTE(C2,"-","/")>=$F$2,--SUBSTITUTE(C2,"-","/")<$G$2),"YA",IF(AND(--SUBSTITUTE(C2,"-","/")>=$G$2,--SUBSTITUTE(C2,"-","/")<$H$2),"TY",""))

    Copy this down as far as you need to.

    Hope this helps.

    Pete

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Flexible date conversion

    Thanks for the rep, Anna.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post and mark this thread as SOLVED.

    Pete

+ 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] Date conversion - Excel presents system report date incorrectly
    By Fred Johs in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-02-2017, 10:26 AM
  2. Conversion of Hijri Date to Gregorian Date and Vice versa
    By arshad.99.ali in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2016, 06:55 AM
  3. flexible update of remaining amount and end date based on current month
    By k1dr0ck in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-05-2015, 03:09 AM
  4. Long date/short date conversion and cycle time calculation
    By COGICPENNY in forum Excel General
    Replies: 1
    Last Post: 02-14-2014, 05:17 PM
  5. [SOLVED] The macro is not flexible enough to accommodate the date input
    By BNCOXUK in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-25-2013, 06:20 AM
  6. [SOLVED] Date time stamp to date conversion
    By N8237 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2012, 11:25 AM
  7. AVERAGE with flexible date ranges
    By Hoops61176 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-05-2010, 01:57 PM

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