+ Reply to Thread
Results 1 to 8 of 8

Google Sheets - Min Date formula gone wonky

Hybrid View

  1. #1
    Registered User
    Join Date
    09-23-2015
    Location
    England
    MS-Off Ver
    Excel 16.41 for Mac
    Posts
    21

    Google Sheets - Min Date formula gone wonky

    Hi

    I have a formula which on native Excel is fine but now has gone Wonky when I put in on Google Sheets. The aim of the formula is to search a list of orders and pick out the first date that rows customer made an order but its throwing up a random date which makes no sense.

    Sheet link here https://docs.google.com/spreadsheets...it?usp=sharing
    Last edited by spurs79; 03-19-2022 at 06:01 PM.

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

    Re: Google Sheets - Min Date formula gone wonky

    access to file is denied. can you give access?
    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
    09-23-2015
    Location
    England
    MS-Off Ver
    Excel 16.41 for Mac
    Posts
    21

    Re: Google Sheets - Min Date formula gone wonky

    If you request access I can grant it, I dont know how to make it public with an access request

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

    Re: Google Sheets - Min Date formula gone wonky

    when getting the share link, simply change the setting to "anyone with the link can" .. "Edit".. or "View"

    alternatively... provide a copy of an excel file, which i can then upload to google drive and work on solution.

  5. #5
    Registered User
    Join Date
    09-23-2015
    Location
    England
    MS-Off Ver
    Excel 16.41 for Mac
    Posts
    21

    Re: Google Sheets - Min Date formula gone wonky

    Done, new link attached

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

    Re: Google Sheets - Min Date formula gone wonky

    great, thank you!

    the problem appears to be that your dates in column I are actually text.

    if you will be working with the data in both excel and google sheets, change the formula in I2 to :
    =DATE(C2,E2,G2)
    and drag it down

    OR, if you intend to work in Google Sheets only, then delete all the formulas from column I, and put this formula into I2 :
    =ARRAYFORMULA(DATE(C2:C,E2:E,G2:G))
    but do NOT drag it down


    Next,

    change your formula in M2 to be :
    =SMALL(FILTER($I$2:$I$1000,$B$2:$B=$B2),1)
    and the formula in O2 to be :
    =LARGE(FILTER($I$2:$I$1000,$B$2:$B=$B2),1)
    Last edited by janmorris; 03-19-2022 at 06:35 PM.

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

    Re: Google Sheets - Min Date formula gone wonky

    corrections, due to rows with no dates:

    if excel and google sheets:
    =IF(C2="","",DATE(C2,E2,G2))
    and drag down

    if google sheets only, in I2 :
    =ARRAYFORMULA(IF(C2:C="","",DATE(C2:C,E2:E,G2:G)))
    and do NOT drag down

    EDIT:

    more corrections to accommodate for missing dates

    in M2:
    =IF(C2="","",SMALL(FILTER($I$2:$I$1000,$B$2:$B=$B2),1))
    in O2:
    =IF(C2="","",LARGE(FILTER($I$2:$I$1000,$B$2:$B=$B2),1))
    Last edited by janmorris; 03-19-2022 at 06:52 PM.

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

    Re: Google Sheets - Min Date formula gone wonky

    BONUS:

    DATEDIF formulas are in the format of:
    DATEDIF(startDate,endDate,unit)
    so Q2 should be :
    =DATEDIF(I2,O2,"d")

+ 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. Google Sheets: How to pull row numbers from different sheets based on date (Solved)
    By qcguys in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 13
    Last Post: 01-09-2022, 03:36 PM
  2. Google Sheets Master Sheet that pulls in data from other sheets with the last edit date
    By Badvgood in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 12-19-2020, 12:04 PM
  3. [SOLVED] Convert wonky Date text to a true date
    By jomili in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-29-2020, 12:49 PM
  4. [SOLVED] Google Sheets - Formula or conditional formatting help - a "today's date" formula?
    By Nolarobinson in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 6
    Last Post: 04-25-2018, 07:09 AM
  5. Find the nearest date in a range of dates formula (Google sheets)
    By kaytoc in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 10-20-2017, 05:20 PM
  6. Anniversary Date Formula Reminder [Google Sheets]
    By switzd0d in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 04-26-2016, 04:18 PM
  7. Anniversary Date Formula Reminder [Google Sheets]
    By switzd0d in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-26-2016, 02:04 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