+ Reply to Thread
Results 1 to 17 of 17

GoogleSheets: Count number of days between days listed in text

  1. #1
    Registered User
    Join Date
    05-12-2021
    Location
    Sydney
    MS-Off Ver
    Microsoft 365
    Posts
    10

    GoogleSheets: Count number of days between days listed in text

    Hi
    Seeking some guidance in excel formulas if there is a way to calculate number of days between days listed as text with no dates (Monday, Tuesday etc)

    Attached sample output with desired result seeking to achieve

    Any help/guidance much appreciated!

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Count number of days between days listed in text

    Can the whole process ever take more than 2 weeks?

    if an individual row takes more than 1 week, will column B or C ALWAYS contain a weekend day?

    If col A is Monday and Col B is also Monday, how can you tell if it is the SAME Monday or the NEXT Monday?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    11-06-2020
    Location
    Semarang, Indonesia
    MS-Off Ver
    2010, 2016, 2021
    Posts
    23

    Re: Count number of days between days listed in text

    Content deleted by GK.

    Please start your OWN thread.
    Last edited by Glenn Kennedy; 09-12-2022 at 07:20 AM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Count number of days between days listed in text

    CokZz.

    You MUST try to start your own thread.

    Read the forum rules about hijacking threads.

  5. #5
    Registered User
    Join Date
    05-12-2021
    Location
    Sydney
    MS-Off Ver
    Microsoft 365
    Posts
    10

    Re: Count number of days between days listed in text

    Can the whole process ever take more than 2 weeks?
    - No

    if an individual row takes more than 1 week, will column B or C ALWAYS contain a weekend day?
    - No will not always contain a weekend though may travel over the weekend. Example: Train Departure Day = Friday, Train Arrival Day = Monday

    If col A is Monday and Col B is also Monday, how can you tell if it is the SAME Monday or the NEXT Monday?
    - if the day is listed the same in these two col, assume = same day

  6. #6
    Registered User
    Join Date
    11-06-2020
    Location
    Semarang, Indonesia
    MS-Off Ver
    2010, 2016, 2021
    Posts
    23

    Re: Count number of days between days listed in text

    Content deleted by AliGW

    Start your own thread. If you are unable to upload your attachment, it is probebly too big - try wxpliaing what you need without it.

    Do NOT post to this thread again - if you have any queries, send me a PM.
    Last edited by AliGW; 09-12-2022 at 08:01 AM.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Count number of days between days listed in text

    OK. That helps. Not sure how to do it (yet)!!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Count number of days between days listed in text

    Try this (I hope you don't have a problem with helper columns!!)

    See file. Each shade = different formula.
    Attached Files Attached Files

  9. #9
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Count number of days between days listed in text

    This is a soloution without helpers:

    Please create a table with the days and try for the Lead Days incl. weekend:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    try for the Lead Days excl. weekend:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by HansDouwe; 09-12-2022 at 08:04 AM.

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Count number of days between days listed in text

    If you change the format of the days in dddd and create an easy input validation of these days the formulas can be shortened to:

    Lead days incl. weekend:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Lead days excl. weekend:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    05-12-2021
    Location
    Sydney
    MS-Off Ver
    Microsoft 365
    Posts
    10

    Re: Count number of days between days listed in text

    Is there a way this can also be done in google sheets is this formula unique to excel only? I tried replicating in google sheets though gives me an error when formulating lead days - 'Function MINUS parameter 1 expects number values. But 'Wednesday' is a text and cannot be coerced to a number'

  12. #12
    Registered User
    Join Date
    05-12-2021
    Location
    Sydney
    MS-Off Ver
    Microsoft 365
    Posts
    10

    Re: Count number of days between days listed in text

    Hi Glenn,
    For some reason the formula is not picking up the correct days for some examples as below, it should return 8 days (inc WE) and 6 days (ex WE), formula returns 1 day. Is it a easy fix for this i could be missing
    Collection Day Train Departure Day Train Arrival Day Delivery Day
    Friday Monday Friday Friday

    Attachment 796797

  13. #13
    Registered User
    Join Date
    05-12-2021
    Location
    Sydney
    MS-Off Ver
    Microsoft 365
    Posts
    10

    Re: Count number of days between days listed in text

    HI HansDouwe
    this perfectly does the job, it just seems the formula is not user friendly when using it with google sheets

  14. #14
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Count number of days between days listed in text

    Thanks for the feedback and rep. .
    I have also learned from looking for the right answer.

    I have no idea about google sheets.
    It is best to post this question on the forum "For other Platforms".

  15. #15
    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,853

    Re: GoogleSheets: Count number of days between days listed in text

    I have moved the thread to the correct forum area and amended its title.
    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.

  16. #16
    Registered User
    Join Date
    05-12-2021
    Location
    Sydney
    MS-Off Ver
    Microsoft 365
    Posts
    10

    Re: Count number of days between days listed in text

    Hi Glenn
    Your formulas work with google sheets as well, just seems some days are not lining up with that example i provided earlier. Could you explain the formula in helper 5 is trying to achieve?

    Thanks

  17. #17
    Registered User
    Join Date
    05-12-2021
    Location
    Sydney
    MS-Off Ver
    Microsoft 365
    Posts
    10

    Re: Count number of days between days listed in text

    Hi HansDouwe
    I have a scenario where all days are the same and the formula is reading it as same day for everything returning 1 day lead time. I am wanting the formula to read this as following week and to return lead days as 8 (inc weekend) & 6 (excluding weekend) on sample example below. Is it possible?

    Example:
    Collection Day - Thursday
    Train Departure Day - Thursday (same day as collection)
    Train Arrival Day - Thursday (arrives following Thursday)
    Delivery Day - Thursday (same day as train arrival day)

+ 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: 8
    Last Post: 07-19-2022, 06:16 AM
  2. count number of days listed under pivot table heading
    By fabrecass in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-14-2021, 04:40 AM
  3. Replies: 2
    Last Post: 09-12-2020, 11:03 AM
  4. Replies: 16
    Last Post: 08-22-2017, 11:20 AM
  5. [SOLVED] calculate total number of days between two days based on 365 days year
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-14-2016, 12:51 AM
  6. [SOLVED] Count number of days since last text occurrence
    By Verifyor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-21-2014, 11:24 AM
  7. Help on count the number of days in between dates and then average number of days
    By Barbara Excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2013, 12:13 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