+ Reply to Thread
Results 1 to 4 of 4

X-axis data is formula, cannot do scatterplot problem

  1. #1
    Registered User
    Join Date
    10-26-2011
    Location
    Bangor, Wales
    MS-Off Ver
    Excel 2003
    Posts
    17

    X-axis data is formula, cannot do scatterplot problem

    Hi all

    I am trying to make a simple XY plot of some data. The data for both axes are not actual values but formulae that take data from a different workbook. Within this formula I have an IF function to display a blank cell, rather than 0, when the original data file contains no data for that particular cell. But this is causing problems for the graph...if there is a blank cell within the range of the X-axis it causes the data to be ranked as 1,2,3, etc rather than taking the actual values. It is because the blank cell isn't actually blank, it contains a formula. Anyone know how I can get round this problem? It doesn't matter if there are blank cells in the Y-axis range for some reason.

    Many thanks
    Tim
    Last edited by t.jones; 01-30-2012 at 08:41 AM.

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

    Re: X-axis data is formula, cannot do scatterplot problem

    use NA() instead of "" in your formula
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: X-axis data is formula, cannot do scatterplot problem

    Instead of returning a blank (""), return NA() instead - this will give you the error #N/A which will be ignored by the graph. If you don't want to see the error, you can use conditional formatting to print white on white if the cell contains an error, and this will make it look blank.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    10-26-2011
    Location
    Bangor, Wales
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: X-axis data is formula, cannot do scatterplot problem

    Thanks Andy and Pete for those very quick answers. Works perfectly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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