+ Reply to Thread
Results 1 to 9 of 9

Help with clearing value of cell with 0 to clean up charts?

  1. #1
    Registered User
    Join Date
    07-26-2010
    Location
    Hawaii
    MS-Off Ver
    Excel 2010
    Posts
    25

    Help with clearing value of cell with 0 to clean up charts?

    I have a main sheet with all my data. I have many sub sheets with charts for each row of data. I have the charts values linked to the main sheet so I don’t have to update the charts anytime we update the workbook for the next month.

    Example Chart
    Jan Feb Mar Apr May Jun Jul
    0 0 78 75 76 77 79

    Each value for the for the month is a linked cell
    =Sheet1!F4
    =Sheet1!G4
    =Sheet1!H4
    =Sheet1!I4
    =Sheet1!J4
    =Sheet1!K4
    I wrote some code to change the value of 0 to null or nothing but it doesn’t seem to be working.

    Please Login or Register  to view this content.
    Any help is appreciated, thanks.

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Help with clearing value of cell with 0 to clean up charts?

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    07-26-2010
    Location
    Hawaii
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Help with clearing value of cell with 0 to clean up charts?

    Thanks or the reply, I tried that earlier but it did not work either.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Help with clearing value of cell with 0 to clean up charts?

    If you structure the formula to return an error, it will not plot

    Maybe something like...
    =1/1/Sheet1!F4
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Help with clearing value of cell with 0 to clean up charts?

    Sorry, I forgot to put the formulas in before I tested it.

  6. #6
    Registered User
    Join Date
    07-26-2010
    Location
    Hawaii
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Help with clearing value of cell with 0 to clean up charts?

    A co-worker already used this formula to achieve the same goal, I wish I would have asked before I wasted the time on the code.

    =IF((Sheet1!F4<1),NA(),Sheet1!F4)

    This actually puts in a #N/A instead of clearing the cell but it does get what I need.

    Thanks for all your help.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Help with clearing value of cell with 0 to clean up charts?

    That ws pretty much what I suggested, but as long as you got your answer, thats all that matters "

  8. #8
    Registered User
    Join Date
    07-26-2010
    Location
    Hawaii
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Help with clearing value of cell with 0 to clean up charts?

    I saw what you posted but I'm pretty new to excel formulas so I didn't quite understand what you were posting. I need to make a change to the formula to account for a field with a value of N/A so I tried concatenating a formula but was unsuccessful. I did some googling and found you can nest IF statements in formulas but I'm still having trouble getting it to work properly.

    Issue:
    My formula accounts for the value being less than, greater than, or equal to a value but I need to account for another value being N/A.

    =IF(Quality!E7<0.01,N/A(),IF(Quality!E7="N/A",N/A(), Quality!E7))

    Any help is appreciated, thanks.
    Last edited by kawi6rr; 03-24-2017 at 04:14 PM.

  9. #9
    Registered User
    Join Date
    07-26-2010
    Location
    Hawaii
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Help with clearing value of cell with 0 to clean up charts?

    SOLVED

    =IF(Quality!E7<0.01,NA(),IF(Quality!E7="N/A",NA(), Quality!E7))

+ 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. to clean the cell
    By Eric Tsang in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2016, 11:58 AM
  2. [SOLVED] Coding Convention Questions #2 (To clean up or not to clean up)
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 03-31-2014, 08:18 PM
  3. Transfer cell information into a new free cell and clean after pressing enter
    By juliangun4ev in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-12-2013, 03:57 AM
  4. [SOLVED] VBA Code to optimize and clean data- clean out numerical/ or symbol
    By tracylsr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-05-2012, 04:21 PM
  5. Clean Function to Clean Entire Sheet
    By gema in forum Excel General
    Replies: 7
    Last Post: 11-05-2009, 10:07 AM
  6. Clean the value of a cell
    By ChrisNor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2009, 09:34 AM
  7. Formula to clean data for Charts
    By ChrisNor in forum Excel General
    Replies: 1
    Last Post: 03-12-2009, 09:00 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