+ Reply to Thread
Results 1 to 4 of 4

Indexing blank cells as blank

  1. #1
    Registered User
    Join Date
    04-12-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    18

    Indexing blank cells as blank

    I am trying to use the INDEX function. However, certain cells are blank and when indexed return zeroes. Is there anyway I can have it return a blank cell?

    Thank you!

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Indexing blank cells as blank

    This should do it!

    =IF(INDEX(range,row,column)=0,"",INDEX(range,row,column))

    Thanks!

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Indexing blank cells as blank

    Mr.WalterJones,

    There are many ways you can do that. Three suggestions are:

    1) Use a custom format to make 0's show as blanks. To do so, select the range of Index Results -> Right-click and select Format Cells -> Custom -> Type "0; ; " (no quotes, that's Zero Semicolon Space Semicolon Space) -> OK

    2) Use conditional formatting to make 0's show as blanks. To do so, select the range of Index Results -> Conditional Formatting -> Highlight Cells Rules -> Equal To... -> Type 0 and select Custom Format from the dropdown list -> Go tot he Number tab -> Custom -> Type "0; ; " (no quotes) -> OK

    3) Incorporate a check into the formula.
    =IF(INDEX(A1:A10,3)=0,"",INDEX(A1:A10,3))
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    04-12-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Indexing blank cells as blank

    YOU GUYS ARE THE BEST!

    TIGER YOU ARE A G, THAT'S A G FOR GANGSTA! Thank you very much!

+ 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