+ Reply to Thread
Results 1 to 4 of 4

Table Generator

  1. #1
    Registered User
    Join Date
    05-25-2018
    Location
    Bristol, England
    MS-Off Ver
    365
    Posts
    11

    Table Generator

    Hello,

    I would like to generate a table with two columns 'X' and 'Y'. The user will be required to enter the 'start', 'end' and 'interval' that will make up the 'X' column, the 'Y' column contains a simple formula. These values will the be plotted on a chart.

    I have done this manually in the attached example but would like a way to automate this, as I can't seem to find a way to do it. Any help appreciated!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Table Generator

    If you use a structured table, it will grow as needed as they enter data
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-25-2018
    Location
    Bristol, England
    MS-Off Ver
    365
    Posts
    11

    Re: Table Generator

    Thanks for the reply - I had tried this, but I need to be able to also reduce the number of rows, eg one user might want to see a graph for 0-100 with intervals of 1, whereas another user might want to see 0-10 with intervals of 0.1. The structured table method falls over here as I can't find a way to remove rows automatically.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Table Generator

    Perhaps the following will help
    1. Populate cell E4 using: =C2
    2. Populate cells E5:E103 using: =IF(E4<C$3,SUM(E4,C$4),"")
    3. Populate cells F4:F103 using: =IF(E4="","",E4*2)
    4. Produce a named range X_Range using Refers To: =OFFSET(Sheet1!$E$4,0,0,SUMPRODUCT(--(Sheet1!$E$4:$E$103<>"")))
    5. Produce a named range Y_Range using Refers To: =OFFSET(Sheet1!$F$4,0,0,SUMPRODUCT(--(Sheet1!$F$4:$F$103<>"")))
    6. Edit the series values for the chart to read: =Sheet1!Y_Range
    7. Edit the axis label range for the chart to read: =Sheet1!X_Range
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. re:bb code table generator addin
    By protonLeah in forum Suggestions for Improvement
    Replies: 2
    Last Post: 11-05-2019, 11:30 PM
  2. SKU Generator
    By b21playa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-22-2017, 10:10 AM
  3. Combination Generator
    By lorber123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2016, 06:32 AM
  4. tip of the day generator
    By Tony Vargo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-23-2008, 09:19 AM
  5. Name Generator
    By ratcat in forum The Water Cooler
    Replies: 6
    Last Post: 09-04-2008, 12:58 AM
  6. [SOLVED] Pin Generator
    By GoBucks in forum Excel General
    Replies: 2
    Last Post: 09-13-2005, 11:05 AM
  7. [SOLVED] simple HTML table generator
    By Scott in forum Excel General
    Replies: 0
    Last Post: 03-23-2005, 01:06 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