+ Reply to Thread
Results 1 to 9 of 9

Get 1 1st Item by the earliest date and time MULTIPLE SHEET

  1. #1
    Registered User
    Join Date
    04-22-2023
    Location
    jakarta
    MS-Off Ver
    google spreadsheet
    Posts
    11

    Get 1 1st Item by the earliest date and time MULTIPLE SHEET

    Can anyone help me my issue?
    I have probs that
    i want get the a value base on id and earliest date whitin 2 multiple sheet.

    please access below google sheet url
    SUMMARY SHEET RESULT SHOULD BE LIKE COL A
    ID TAG 1ST AMOUNT 1ST DATE
    A 60,000 19/08/2024 23:49:57
    B
    C


    DATA1
    DATE IDTAG AMOUNT
    19-08-2024 23:58:12 A 50,000
    19-08-2024 23:54:15 B 600,000
    19-08-2024 23:50:03 C 48,000

    DATA2

    DATE IDTAG AMOUNT
    19/08/2024 23:49:57 A 60,000
    19/08/2024 23:43:33 B 12,558
    19/08/2024 23:41:58 C 70,000

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,139

    Re: Get 1 1st Item by the earliest date and time MULTIPLE SHEET

    Try stacking the data then use SORTN to pull the first row

    If you need further help then please try creating a sample file.

    Heres a link to a sample file into which you can build your sample:

    https://docs.google.com/spreadsheets...it?gid=0#gid=0

    Let us know once you have created the sample.
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

  3. #3
    Registered User
    Join Date
    04-22-2023
    Location
    jakarta
    MS-Off Ver
    google spreadsheet
    Posts
    11

    Re: Get 1 1st Item by the earliest date and time MULTIPLE SHEET

    Hi janmorris,

    Thank you for your reply.
    i have been created the sample. you may check is

  4. #4
    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. 2501 (Windows 11 24H2 64-bit)
    Posts
    88,918

    Re: Get 1 1st Item by the earliest date and time MULTIPLE SHEET

    Where is the sample? Please provide a read/write enabled link to it. There is nothing added to the sheet at janmorris' link.
    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.

  5. #5
    Registered User
    Join Date
    04-22-2023
    Location
    jakarta
    MS-Off Ver
    google spreadsheet
    Posts
    11

    Re: Get 1 1st Item by the earliest date and time MULTIPLE SHEET


  6. #6
    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. 2501 (Windows 11 24H2 64-bit)
    Posts
    88,918

    Re: Get 1 1st Item by the earliest date and time MULTIPLE SHEET

    Thanks - I see the extra tabs now.

  7. #7
    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. 2501 (Windows 11 24H2 64-bit)
    Posts
    88,918

    Re: Get 1 1st Item by the earliest date and time MULTIPLE SHEET

    The earliest date for A is the one you have losted, but the amount for that date is 60,000, not 50,000.

    What gives?

  8. #8
    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. 2501 (Windows 11 24H2 64-bit)
    Posts
    88,918

    Re: Get 1 1st Item by the earliest date and time MULTIPLE SHEET

    I think this gives what should be the right answer. In J2 copied down:

    =let(v,sort(VSTACK(DATA1!$A$2:$C$5,DATA2!$A$2:$C$5)),choosecols(INDEX(filter(v,index(v,,2)=A2),1),3,1))

  9. #9
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,139

    Re: Get 1 1st Item by the earliest date and time MULTIPLE SHEET

    In addition to the solution offered by AliGW, heres another method:

    =BYROW(A2:A,LAMBDA(idtags,QUERY(SORT(VSTACK(DATA1!A:C,DATA2!A:C),1,true),"select Col3, Col1 where Col2 matches '"&idtags&"' limit 1",0)))

+ 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. Get 1 1st Item by the earliest date and time
    By slotyuk in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 8
    Last Post: 09-29-2023, 11:50 AM
  2. Get 1 1st Item by the earliest date and time
    By slotyuk in forum Excel General
    Replies: 5
    Last Post: 09-27-2023, 11:56 AM
  3. Earliest time on a date
    By puffin81 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-02-2023, 12:59 PM
  4. Find the earliest date&time for a value from different column
    By Neyme in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-08-2015, 10:10 PM
  5. Replies: 3
    Last Post: 08-31-2014, 06:39 AM
  6. Finding earliest date/time
    By Atlanticja in forum Excel General
    Replies: 3
    Last Post: 10-10-2012, 06:37 AM
  7. Identifying earliest expiration date/time
    By Arand in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-09-2010, 08:04 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