+ Reply to Thread
Results 1 to 2 of 2

Excel table that adds columns based on date range

  1. #1
    Registered User
    Join Date
    07-28-2016
    Location
    KS
    MS-Off Ver
    2013
    Posts
    1

    Excel table that adds columns based on date range

    Hi,

    I have been tasked with improving our spreadsheet from which we manage maintenance periods. It is a sheet where approx. 10-15 end users enter their data into a predefined table. Each user gets their own tab. I will then grab certain data from each tab and populate a "summary" tab, showing the high level info for upper management.

    What I would like to do is dynamically (automatically) build a table, with the number of column dependent on the number of days we're shutdown. One "day" is 3 columns, representing the shifts of the day. I would like to automatically add these 3 template columns for each day. Number of days would be determined by putting in the begin date and end date of the maintenance period.

    I'm not new to excel, but I am new to vba, which is the route I think I need to take, but I haven't been able to find what I'm looking for with the Google.

    What's a good way to accomplish this?

    As a bonus: the rows will be for a given project scheduled for the maintenance period, which I would like to add row creation as the end user fills out their data. Again, this would actually be a template of about 5 rows.

    The end goal is to eliminate the copying and pasting that has been done in the past to size the table for each department, for each maintenance period. It has resulted in a myriad of formatting issues, formula issues, and other problems that has left the sheet all but unusable. My goal is to create a workbook, where the structure and formatting is managed by me, and the end user only has to enter their data, and not worry about the functioning of the file.

    Thank you.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Excel table that adds columns based on date range

    Welcome to the forum.

    It would be most useful if you could attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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. Reporting Columns Based on a date Range
    By mlawson1331 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-23-2016, 01:13 AM
  2. [SOLVED] VBA to unpivot table based on date range
    By Brawnystaff in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2015, 07:32 PM
  3. Hello Looking for Help Autohiding Columns based on date range
    By goulet in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 08-10-2015, 12:58 PM
  4. Replies: 6
    Last Post: 08-21-2014, 01:04 PM
  5. [SOLVED] Insert Columns Based on a Date Range
    By nikki555 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2013, 03:36 PM
  6. Replies: 19
    Last Post: 03-04-2013, 01:16 PM
  7. Help with a Macro that adds columns to a table
    By Jupasto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-02-2011, 08:22 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