+ Reply to Thread
Results 1 to 3 of 3

Using LET to collate data and SORTing data based off date column

  1. #1
    Registered User
    Join Date
    06-29-2022
    Location
    South Australia
    MS-Off Ver
    MS Windows 365 - Version 2204
    Posts
    46

    Exclamation Using LET to collate data and SORTing data based off date column

    I am using the following formula
    =LET(T,HSTACK(Tina!$B$4:$I$9962,Tina!$AO$4:$AO$9962,Tina!$AV$4:$AV$9962),Z,HSTACK(Zarah!$B$4:$I$9973,Zarah!$AO$4:$AO$9973,Zarah!$AV$4:$AV$9973),M,HSTACK(Michael!$B$4:$I$9993,Michael!$AO$4:$AO$9993,Michael!$AV$4:$AV$9993),S,HSTACK(Shin?!$B$4:$I$9985,Shin?!$AO$4:$AO$9985,Shin?!$AV$4:$AV$9985),d,VSTACK(T,Z,M,S),FILTER(d,(INDEX(d,,8)="New Hire")*(INDEX(d,,9)=TRUE)*(INDEX(d,,6)="Jobfit")*NOT((INDEX(d,,7)="Casual")+(INDEX(d,,7)="Fixed Casual"))))

    This formula is pulling the data off 4 spreadsheets (Shine, Tina, Zarah, Michael). The data is new employees and it has their details (only if value equals TRUE (meaning the onboard is completed)) then finally it pulls their commencement date off the 4 spreadsheets. I want the collated array of all the spreadsheets to be sorted based on the oldest date to the newest date (data from all spreadsheets) then finally at the bottom because some of the dates don?t have a date but instead have "-" I want this at the bottom as it is not relevant. Can you do a formula for me to allow for the request.


    **I have attached a sample workbook
    Attached Files Attached Files

  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
    44,466

    Re: Using LET to collate data and SORTing data based off date column

    Tim, Jane and Fiona? What happened to Shine, Tina, Zarah, Michael? No data matching your description.
    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 Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Using LET to collate data and SORTing data based off date column

    Please try

    =LET(z,VSTACK(Tim:Fiona!B4:J1999),y,FILTER(z,INDEX(z,,8)),SORT(HSTACK(DROP(y,,-2),TAKE(y,,-1)),8))
    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] Collate a Data's based on Ref No.
    By Raj.xls in forum Excel General
    Replies: 5
    Last Post: 01-29-2019, 03:58 AM
  2. Sorting data based on date criteria and other information
    By nanders8 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-08-2017, 09:29 AM
  3. Gather data based on date and collate into a weekly total
    By Issy.87 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-15-2015, 08:02 PM
  4. Sorting and filtering data based on join date
    By ExcelHalp1 in forum Excel General
    Replies: 3
    Last Post: 12-18-2014, 10:47 PM
  5. Sorting all data based on data in single column (DATES)
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2013, 08:19 AM
  6. Data sorting based on time and date
    By Pelusa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2012, 08:59 AM
  7. [SOLVED] How do I collate (match-up) one column's data with another?
    By Mark in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2006, 12:25 PM

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