+ Reply to Thread
Results 1 to 6 of 6

Dates in a column but with variable blanks

  1. #1
    Registered User
    Join Date
    03-31-2021
    Location
    Perth Australia
    MS-Off Ver
    2007
    Posts
    3

    Dates in a column but with variable blanks

    Hi All,

    We are going on a caravan trip round Australia - about 17,000km over 3 months.

    I usually create an excel sheet detailing where we expect to go and distances between the towns to be visited. If I do a sheet with auto fill the date in column A that's easy but we might pass through a number of towns before we stop for the night, or a number of nights - so auto fill cannot handle the variable number of rows that require no date.

    I need a formula that will take into account the variable "blank" rows for the nights we do NOT stay. Also allow changes to the days where we stay by recopying the formula down from that amendment.

    A sample worksheet is attached.

    Any suggestions would be gratefully received.


    Regards

    DWWA
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Dates in a column but with variable blanks

    How about in B3:

    =IF(B3="","",$A$2+SUM($B$2:B2))
    Quang PT

  3. #3
    Registered User
    Join Date
    03-31-2021
    Location
    Perth Australia
    MS-Off Ver
    2007
    Posts
    3

    Re: Dates in a column but with variable blanks

    Thanks for your speedy reply. Unfortunately your solution does not do what I intend.

    1. To create a start point, I put a start date into A2...ie 5th March 2021
    2. Then in A3 have a formula that looks at B3, B4,etc that do NOT have a 1 indicating we are still traveling and hence the date is to blank. This formula is copied down to the end of the trip.
    3. When it finds a 1 in the overnight column then it needs a date in A5 - being one day more than the previous date ie 5th March in A2. Because there is a 1 in B6 and B7 then the date will appear.


    I hope this clarifies what I am trying to archive.


    Thanks DWWA

  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: Dates in a column but with variable blanks

    In A3:

    =IF(B3=1,LOOKUP(10^300,A$2:A2)+1,"")
    Attached Files Attached Files
    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

  5. #5
    Registered User
    Join Date
    03-31-2021
    Location
    Perth Australia
    MS-Off Ver
    2007
    Posts
    3

    Re: Dates in a column but with variable blanks

    Brilliant!!! Works exactly the way I wanted it to.

    Sorry to that you are in lock down. One advantage of being one of the most isolated cities in the world and being an island in an island there only half a dozen roads in and out so no one allowed in or out! Result has been that life has been fairly "normal" for the last year. However no one is going to Bali (or any where else in the world) so every caravan park in the state is full!!!

    Thanks again.....now I will go away and figure out how it does it!

    davidwwa

  6. #6
    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: Dates in a column but with variable blanks

    If you need help... ask. Otherwise...

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ 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: 4
    Last Post: 03-16-2021, 02:35 AM
  2. Replies: 8
    Last Post: 06-15-2016, 09:53 AM
  3. [SOLVED] Formula needed for future date using variable text from 1 column and dates from another.
    By KennySJT in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-09-2014, 08:14 AM
  4. Replies: 11
    Last Post: 05-04-2014, 08:28 PM
  5. [SOLVED] Sum of 12 column (months) based on variable values (dates)
    By MassimoR in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-24-2014, 04:36 PM
  6. [SOLVED] SUM column based on two dates, SUM function begins at first date which is a variable
    By moxiepilot in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-11-2013, 06:36 AM
  7. Scan a Column A (numbers and blanks) and copy its contents WITHOUT BLANKS into Column B
    By bighandsam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2012, 05:16 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