+ Reply to Thread
Results 1 to 8 of 8

Extract date range from cell and populate 'calendar-style' in separate tab

  1. #1
    Registered User
    Join Date
    01-19-2019
    Location
    NSW, Australia
    MS-Off Ver
    MS Office Professional 2016
    Posts
    3

    Question Extract date range from cell and populate 'calendar-style' in separate tab

    I would like to extract a start date (e.g. 1/1/19) and duration (e.g. 10 days) from a single cell to a separate tab that is set up like a calendar (1 row to a day from 1 January onwards). Is it possible to get the date range to fill the 10 rows for 1-10 January?

    File attached - this particular spreadsheet tracks the number of days a contractor is at a commercial jobsite. For example, John Smith is at Jobsite A 1-10 January. On the Construction Planner tab, I have the dates in the first column for 1 January onwards, each day to a row. I would like the date data in Client Planner tab to populate across to fill John Smith's column for 1-10 January.

    Tough ask but I thought I would start here to see if anyone knew if something like this is possible! Thanks in advance
    Attached Files Attached Files
    Last edited by ammegrace; 01-19-2019 at 09:16 PM. Reason: Adding attachment

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Extract date range from cell and populate 'calendar-style' in separate tab

    Welcome to the forum.

    It would help if you attached a sample Excel workbook.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post. Do NOT try to use the Paperclip icon, as it doesn't work on this forum.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-19-2019
    Location
    NSW, Australia
    MS-Off Ver
    MS Office Professional 2016
    Posts
    3

    Re: Extract date range from cell and populate 'calendar-style' in separate tab

    Thanks Pete, have attached workbook and edited my explanation. Any thoughts would be greatly appreciated!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Extract date range from cell and populate 'calendar-style' in separate tab

    It's getting a bit late here, so I need to go to bed. A few questions first, though:

    Why are there 2 columns for each contractor in the Contractor Planning sheet?

    What exactly do you want to show in that sheet? You refer to Jobsite A in the explanation, but I can't see where that data would be located.

    It would be handy if you could manually show what you would like to see from your sample data, and I'll pick this up tomorrow.

    Cheers for now.

    Pete

  5. #5
    Registered User
    Join Date
    01-19-2019
    Location
    NSW, Australia
    MS-Off Ver
    MS Office Professional 2016
    Posts
    3

    Re: Extract date range from cell and populate 'calendar-style' in separate tab

    Thanks Pete

    I have now removed the second unnecessary column for each contractor.

    Attached is what I would like to achieve. Please disregard "Jobsite A".
    Attached Files Attached Files

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Extract date range from cell and populate 'calendar-style' in separate tab

    I'm going to have to simplify the layout of your sheets, getting rid of the empty rows above the headings. They can always be added back in afterwards.

    Pete
    Last edited by Pete_UK; 01-20-2019 at 05:02 PM. Reason: changed some wording

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Extract date range from cell and populate 'calendar-style' in separate tab

    I've set this up in the attached file.

    On the Client Planner sheet I have added a list of Contractors in column T, and set this up as a named range covering the coloured area. You can just add new contractors to the bottom of the list (I've added Joe Bloggs (coloured red) for testing).

    A formula in column M gives a cumulative total of the days allocated. This needs to be copied down at least to the bottom of your data, but it doesn't matter if you copy further (I've copied to row 20 in the attached file).

    Three formulae in columns O, P and Q expand the data so that there is one entry for every date used in the ranges, and determines the contractor that the date applies. These three formulae need to be copied down until you start to see hyphens in column O, to ensure that all the data is accounted for - I've copied them down to row 100.

    A formula in D2 of the Contractor Planner sheet can then extract the appropriate client name and locate it under the contractor on the appropriate dates. I have copied the formula across into the other (alternating) columns up to column X, and copied the formulae down to the end of February - obviously, you'll need to copy them further down beyond that date. I've also tidied up the conditional formatting rules, so they cover up to row 400.

    I've put some test data in red, and all seems to work fine.

    Hope this helps.

    Pete
    Attached Files Attached Files

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Extract date range from cell and populate 'calendar-style' in separate tab

    Just to return this to the same layout as you had before, with three empty rows at the top of the Client sheet.

    Hope this helps.

    Pete
    Attached Files Attached Files

+ 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: 1
    Last Post: 01-11-2019, 09:05 PM
  2. [SOLVED] Extract data from tables and populate a separate table?
    By Mirisage in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-20-2017, 03:08 PM
  3. convert 360 calendar integers to normal calendar style dates
    By dmhg in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-03-2014, 08:17 PM
  4. Populate an Excel calendar template with events from a separate table
    By Dana_Carter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2014, 12:14 PM
  5. Populate a specific range based on calendar date
    By gottnoskill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2014, 03:19 PM
  6. Need a calendar plug in, to help populate a cell with date
    By RCC in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-10-2006, 12:35 PM
  7. Populate a cell with a date using calendar pick
    By Shane Nation in forum Excel General
    Replies: 2
    Last Post: 01-29-2006, 03:50 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