+ Reply to Thread
Results 1 to 4 of 4

Index with blank cells

  1. #1
    Registered User
    Join Date
    06-10-2021
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    19

    Index with blank cells

    Hi All

    I have the following formula to find the last number in the cells A70 to A74. Ideally all cells have numbers in it so finding the last number works. Sometime, though, there are situations where one or more cells may have either a Zero or blank. This is where the formula falls down. How can I modify this to ignore any cells with either a zero or blank?



    =IF(INDEX(A70:A74,COUNT(A70:A74))="",0,INDEX(A70:A74,COUNT(A70:A74)))

    I should add that the numbers are not in numerical sequence. They are a random set of numbers. I just need to find the last number which is not a zero and also ignore the zeros and blank cells

    Thanks in advance

    regards

    Ged
    Last edited by Ged Salter; 08-16-2021 at 06:22 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Index with blank cells

    Like
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    adapt the range to tour needs

  3. #3
    Registered User
    Join Date
    06-10-2021
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    19

    Re: Index with blank cells

    =INDEX(A:A,MATCH(9.99999999999999E+307,A:A))

    I dont understand the 9.9999999999999999999E+307 reference?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,546

    Re: Index with blank cells

    The primary concern is if the formula provided yields the results you need.
    Once that is established then we may be able to help in understanding how it works.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] Trying to display blank cells as blank, rather than 0% with INDEX and MATCH
    By davo3286 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2020, 07:11 AM
  2. Replies: 3
    Last Post: 07-24-2017, 01:41 PM
  3. [SOLVED] Index Match How to avoid blank cells
    By lwilt in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-12-2017, 12:22 PM
  4. Using Match Index (Excluding Blank cells)
    By crazyarun2004 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-05-2017, 11:03 AM
  5. Index and Match where cells are blank
    By bigroo1958 in forum Excel General
    Replies: 10
    Last Post: 07-01-2015, 03:55 PM
  6. Blank cells returning 0 (zero) value with INDEX
    By jobdillon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2014, 10:47 AM
  7. [SOLVED] Index & Match on Blank Cells
    By itselflearn in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-11-2013, 02:28 PM

Tags for this Thread

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