+ Reply to Thread
Results 1 to 3 of 3

When my formula encounters a blank cell it returns a 0, I need it to return a blank

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    7

    When my formula encounters a blank cell it returns a 0, I need it to return a blank

    The formula returns a text value in a column of a table, when it encounters a blank cell it returns a 0, I would like it to return a blank. Conditional formatting in the destination cell won't work because I'll be using that data in a pivot table and it picks up the 0 even when it is not visible.

    My formula is an array: =(INDEX(Analyze[#All],SMALL(IF(Analyze.Dog='3from analyze movavgtable'!$C$1,ROW(Analyze.Dog)),ROW(1:1)),10))

    Thanks for your help.


    Doug

  2. #2
    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,929

    Re: When my formula encounters a blank cell it returns a 0, I need it to return a blank

    Maybe this...
    =IF(INDEX(Analyze[#All],SMALL(IF(Analyze.Dog='3from analyze movavgtable'!$C$1,ROW(Analyze.Dog)),ROW(1:1)),10)=0,"",INDEX(Analyze[#All],SMALL(IF(Analyze.Dog='3from analyze movavgtable'!$C$1,ROW(Analyze.Dog)),ROW(1:1)),10))

    Another option would be to include a test for 0 on your CF rules?
    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

  3. #3
    Registered User
    Join Date
    09-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: When my formula encounters a blank cell it returns a 0, I need it to return a blank

    Thanks, but I think I figured it out as soon as I posted the question. I added &"" to the end of the formula like this =(INDEX(Analyze[#All],SMALL(IF(Analyze.Dog='3from analyze movavgtable'!$C$1,ROW(Analyze.Dog)),ROW(1:1)),10))&""

    I'm checking to make sure it works through out the workbook.

    Doug

+ 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. Index/ Match Formula, How to return blank cell as a blank not 0
    By MDResearcher in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-24-2016, 08:40 PM
  2. [SOLVED] Date formula to return blank if cell is blank
    By DSgator1961 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-17-2014, 12:43 PM
  3. [SOLVED] Cell referenced in formula has no information displayed (shows blank), return blank cell
    By nunayobinezz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2013, 04:51 PM
  4. [SOLVED] Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP
    By TMB1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2013, 07:16 PM
  5. VLOOKUP returns N/A - Need to return blank cell
    By wulliemc in forum Excel General
    Replies: 2
    Last Post: 04-28-2009, 04:40 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