+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Steve
    Guest

    Is there a way to not show a dash as a zero in Excel chart?

    I'm setting up an spreadsheet to pull data and automatically graph a defined
    array of cells in a chart. When I have a dash (-) showing up in a cell, it is
    graphed as a zero. Is there any logic that I can implement so that a dash
    doesn't show up on the chart. I tried If/then statements where the "-" would
    be replaced by " " but that still graphed a zero.

  2. #2
    Bernard Liengme
    Guest

    Re: Is there a way to not show a dash as a zero in Excel chart?

    You were nearly there: use =IF(A1="-",NA(),A1) to get #N/A in the cell next
    to the dash; Excel will ignore these when plotting

    --
    Bernard V Liengme
    www.stfx.ca/people/bliengme
    remove caps from email

    "Steve" <Steve@discussions.microsoft.com> wrote in message
    news:565DB5EA-E9C8-402D-9134-7F204F688880@microsoft.com...
    > I'm setting up an spreadsheet to pull data and automatically graph a
    > defined
    > array of cells in a chart. When I have a dash (-) showing up in a cell, it
    > is
    > graphed as a zero. Is there any logic that I can implement so that a dash
    > doesn't show up on the chart. I tried If/then statements where the "-"
    > would
    > be replaced by " " but that still graphed a zero.




  3. #3
    Steve
    Guest

    Re: Is there a way to not show a dash as a zero in Excel chart?

    Thank you very much; it worked perfectly for what I was trying to do!

    "Bernard Liengme" wrote:

    > You were nearly there: use =IF(A1="-",NA(),A1) to get #N/A in the cell next
    > to the dash; Excel will ignore these when plotting
    >
    > --
    > Bernard V Liengme
    > www.stfx.ca/people/bliengme
    > remove caps from email
    >
    > "Steve" <Steve@discussions.microsoft.com> wrote in message
    > news:565DB5EA-E9C8-402D-9134-7F204F688880@microsoft.com...
    > > I'm setting up an spreadsheet to pull data and automatically graph a
    > > defined
    > > array of cells in a chart. When I have a dash (-) showing up in a cell, it
    > > is
    > > graphed as a zero. Is there any logic that I can implement so that a dash
    > > doesn't show up on the chart. I tried If/then statements where the "-"
    > > would
    > > be replaced by " " but that still graphed a zero.

    >
    >
    >


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.2.0