+ Reply to Thread
Results 1 to 5 of 5

Set Chart X Max Value Based on Cell Value

  1. #1
    Registered User
    Join Date
    09-10-2019
    Location
    Edinburgh, UK
    MS-Off Ver
    Office 365 (Mac and Windows)
    Posts
    27

    Question Set Chart X Max Value Based on Cell Value

    As per the attached sheet, I am looking to:

    - Have the x-axis of the chart on the 'Prioritisation' sheet so that the min is always zero and the max is taken from cell BG1 in the 'Master Copy' worksheet. This value will change as the slicers are used to update the chart so the axis will need to be recalculated each time the chart updates

    - The y axis min should always be zero and the max 100

    Is there any way to automate the above? I have tried several solutions with no success.
    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,819

    Re: Set Chart X Max Value Based on Cell Value

    You say that you have tried several solutions with no success, but you don't tell us what you have tried, so we might end up repeating some strategies that you have already tried. Risking that, have your tried this solution: https://peltiertech.com/chart-udf-control-axis-scale/
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    09-10-2019
    Location
    Edinburgh, UK
    MS-Off Ver
    Office 365 (Mac and Windows)
    Posts
    27

    Re: Set Chart X Max Value Based on Cell Value

    Yes I have tried this along with https://exceloffthegrid.com/chart-axis-min-mix/ and https://www.extendoffice.com/documen...h-formula.html with no success. This may be user error but regardless I just can't get this too work...

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

    Re: Set Chart X Max Value Based on Cell Value

    I put this in Prioritisation!A1 and it worked

    A1: =setChartAxis("Prioritisation", "Chart 1", "Max", "X", "Primary", 'Master Copy'!BG1)
    Cheers
    Andy
    www.andypope.info

  5. #5
    Registered User
    Join Date
    09-10-2019
    Location
    Edinburgh, UK
    MS-Off Ver
    Office 365 (Mac and Windows)
    Posts
    27

    Re: Set Chart X Max Value Based on Cell Value

    Thank you so much, that works perfectly!

+ 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: 11
    Last Post: 03-22-2018, 03:54 AM
  2. Chart colour based on cell text
    By pauldaddyadams in forum Excel General
    Replies: 3
    Last Post: 03-02-2017, 05:39 PM
  3. [SOLVED] dynamically update chart based on cell value
    By Bax in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-06-2015, 09:13 AM
  4. Changing chart based upon a cell ...
    By reglook0736 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-20-2015, 11:18 AM
  5. Chart updates itself based on another cell's value
    By jberkman in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-11-2014, 11:15 AM
  6. Chart min/max based on cell value
    By Subject_Name_Here in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2012, 07:59 PM
  7. Chart change based on cell value
    By sarails in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-01-2011, 11:24 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