+ Reply to Thread
Results 1 to 3 of 3

Graph based on value in one cell ?

Hybrid View

  1. #1
    Registered User
    Join Date
    02-15-2015
    Location
    Finland, Oulu
    MS-Off Ver
    2013
    Posts
    2

    Graph based on value in one cell ?

    I have been stuck with this problem for a while and could`t find solid solution so ....

    I have two columns of data and only certain portion of data sould be displayed in graph. The amount of data displayed will be determined by input value in one cell which is separate from two columns.
    For example input value is 15 -> graph shows values from 1-15 from column 1 in x-axis and corresponding values from column 2 in y-axis.

    Attachment "chart1" should explain my problem.

    Solution for this might be something simple, but i cant figure this out because im not an expert in excel and not a smart man.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,454

    Re: Graph based on value in one cell ?

    2 approaches I would probably use:

    1) Filtering a list: https://support.office.com/en-US/Art...rs=en-US&ad=US You would enter your criteria (15) into a dialog box behind the autofilter arrows instead of in a cell. When a filter hides parts of a data set, the chart will usually follow suit.

    2) If you are willing to use helper cells, you could add a couple of adjacent columns, and take advantage of how Scatter charts will ignore cells containing N/A (http://peltiertech.com/mind-the-gap-...g-empty-cells/ ). Enter the criteria (15) into a convenient cell. One column will have a formula like =IF(xvalue<=criteria,xvalue,NA()). The second column will have something like IF(xvalue<criteria,yvalue,NA()). Then build your chart on these helper columns.
    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
    02-15-2015
    Location
    Finland, Oulu
    MS-Off Ver
    2013
    Posts
    2

    Re: Graph based on value in one cell ?

    That filtering trick was just what i was looking for. Thank you so much MrShorty!

+ 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. Macro Help...Plot Graph based on Cell Value
    By dksodhi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2012, 08:54 AM
  2. Dotted/Numbers graph based on cell
    By synergy007 in forum Excel General
    Replies: 0
    Last Post: 01-16-2012, 08:19 PM
  3. Create graph based on highlighted cell
    By xmmx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2011, 03:07 PM
  4. How to create a graph based on a cell colour.
    By daly in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-16-2010, 05:12 AM
  5. Change color of pie in a graph based on cell value
    By sa02000 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-01-2008, 09:21 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