+ Reply to Thread
Results 1 to 5 of 5

Selectable X-Axis Range

  1. #1
    Registered User
    Join Date
    05-01-2024
    Location
    Westminster, CO
    MS-Off Ver
    Subscription
    Posts
    3

    Selectable X-Axis Range

    I'm trying to have a chart X-Axis that has only a range the user selects via a drop-down list. I've tried a lot of solutions such as offsets, indexes, and named ranges, and I'm not finding a good solution.
    I've uploaded a sample of what I'm trying to do. Any help would be greatly appreciated!!! Thanks so much!!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,870

    Re: Selectable X-Axis Range

    Have you tried using Autofilter? In your file, I:

    1) Select the chart and expand the source data range to include the full table.
    2) Select the chart and format the chart area so it does not move or size with cells.
    3) Select the data table -> Data -> Filter to set up the autofilter.
    4) Select the dropdown arrow on the "include" column and tell it to only show records where include has a "Y" in it.

    Would something like that work for you?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441

    Re: Selectable X-Axis Range

    This uses INDEX to create label and Front data references. Then Offset for the other series data
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    05-01-2024
    Location
    Westminster, CO
    MS-Off Ver
    Subscription
    Posts
    3

    Re: Selectable X-Axis Range

    Quote Originally Posted by MrShorty View Post
    Have you tried using Autofilter? In your file, I:

    1) Select the chart and expand the source data range to include the full table.
    2) Select the chart and format the chart area so it does not move or size with cells.
    3) Select the data table -> Data -> Filter to set up the autofilter.
    4) Select the dropdown arrow on the "include" column and tell it to only show records where include has a "Y" in it.

    Would something like that work for you?
    Yes, that works. Thank you. I had to create a new tab with the data, and then a macro to select "Y" in the filter. Thanks again!

  5. #5
    Registered User
    Join Date
    05-01-2024
    Location
    Westminster, CO
    MS-Off Ver
    Subscription
    Posts
    3

    Re: Selectable X-Axis Range

    Quote Originally Posted by Andy Pope View Post
    This uses INDEX to create label and Front data references. Then Offset for the other series data
    Thanks much! I'll give it a shot. Thanks again!

+ 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. How to fix selectable thickness
    By forilohud in forum Excel General
    Replies: 3
    Last Post: 08-21-2016, 02:35 AM
  2. [SOLVED] Chart X-Axis Range Automatically Expanding With Selected Y-Axis Range
    By Mvaldesi in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 10-08-2015, 03:43 PM
  3. Replies: 0
    Last Post: 07-08-2011, 02:25 PM
  4. User Selectable Range
    By bignowa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2011, 10:25 AM
  5. COUNTIF with selectable range
    By spank963 in forum Excel General
    Replies: 3
    Last Post: 09-18-2009, 12:14 PM
  6. [SOLVED] macro - copy range to selectable column
    By elevdown in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-03-2007, 09:27 AM
  7. Selectable dynamic range for chart??
    By cbgaloot in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 05-01-2007, 11:11 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