+ Reply to Thread
Results 1 to 10 of 10

Google Sheets: how to match data and return needed value only..

  1. #1
    Registered User
    Join Date
    05-31-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    43

    Google Sheets: how to match data and return needed value only..

    Hi all;
    I'm trying to figure out how to obtain matching the country and dates as well login/logout time


    - Need to match country to fetch first Start Timestamp & last End Timestamp
    - to return value of hh:mm AM/PM only from the matching.


    Was trying to use this below but cant seems to get the last logout time. However my earlier data has time only but now its combined date and time...


    {=IFERROR(IF($G13="OD","OD",IF($G13="RD","RD",IF($G13="Leave","Leave",IF($G13="","",INDEX('Login Data'!$F:$F,MATCH(1,(TRIM('Login Data'!$A:$A)=TRIM($C13))*('Login Data'!$E:$E=$G$2),0)))))),"")}
    Attached Files Attached Files
    Last edited by AliGW; 05-30-2020 at 11:45 AM.

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: how to match data and return needed value only..

    entered as an array with shft ctrl enter

    in C3
    =MIN(IF('Login Data'!$B$2:$B$19=May!$A3,IF(INT('Login Data'!$E$2:$E$19)=May!B$1,'Login Data'!$E$2:$E$19,"")))

    in D3
    =MAX(IF('Login Data'!$B$2:$B$19=May!$A3,IF(INT('Login Data'!$F$2:$F$19)=May!B$1,'Login Data'!$F$2:$F$19,"")))

  3. #3
    Registered User
    Join Date
    05-31-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: how to match data and return needed value only..

    Hi There;
    Trying to figure out to use same array formula in google sheet. However its not returning the required value. Wont it work in google sheet?

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: how to match data and return needed value only..

    If it needs to work in Google Sheets you should gave said so right at the start, and you should have posted in the appropriate section. I am moving this thread there now.
    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.

  5. #5
    Registered User
    Join Date
    05-31-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Google Sheets: how to match data and return needed value only..

    I'm sorry...cause this was working in excel..but when tried in google sheet its not..i will resolve this thread since it was addressed earlier..

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Google Sheets: how to match data and return needed value only..

    This thread has been moved - please continue here. I will remove the solved tag for now.

  7. #7
    Registered User
    Join Date
    05-31-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Google Sheets: how to match data and return needed value only..

    Hi all;
    I'm trying to figure out how to obtain matching the country and dates as well login/logout time in google sheet using array formula. I had it worked in Excel but not in google sheet. And some formats and return value is not performing as it should.

    Hope anyone can guide

    https://docs.google.com/spreadsheets...it?usp=sharing

    Very much thanks in advance.
    Last edited by ricky82; 06-01-2020 at 10:05 AM.

  8. #8
    Registered User
    Join Date
    05-31-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Google Sheets: how to match data and return needed value only..

    Hi All;
    I manage to resolve the issue..10q

  9. #9
    Registered User
    Join Date
    05-31-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Google Sheets: how to match data and return needed value only..

    Hi All;
    I manage to resolve the issue..10q

  10. #10
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Google Sheets: how to match data and return needed value only..

    Please share the solution for the benefit of all.

+ 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. Replies: 6
    Last Post: 09-09-2018, 04:40 PM
  2. [SOLVED] Help needed with code to match word and phrase and return the results
    By rv02 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-21-2018, 06:48 AM
  3. [SOLVED] Formula needed to match two columns on two spreadsheets and return a third
    By scyllanbay in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-14-2014, 11:26 AM
  4. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  5. [SOLVED] Two Excel sheets trying to match text data and return the match from the second column!
    By bankcott in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2013, 02:17 PM
  6. Formula Needed to Match and Return Data from a Different Sheet
    By gunk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-25-2012, 08:35 PM
  7. Formula needed to return values for partial or full match
    By IntRes in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-07-2012, 08:32 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