+ Reply to Thread
Results 1 to 7 of 7

Formula Looking for first non blank cell

  1. #1
    Registered User
    Join Date
    05-25-2016
    Location
    United States, Texas
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Formula Looking for first non blank cell

    I have a spreadsheet to track my mileage for my car attached.

    In J15 (Merge Cell) I want the mileage for the current week to populate from column D. For example, if the last week I input my mileage was row 5 I want "768" to automatically populate, but as soon as I put in my mileage for Cell E6 I would like the corresponding mileage (960 in cell D6) to automatically show up.

    Basically need a formula that finds the first blank cell in column E and go up one row, then copy the corresponding cell in column D.

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Formula Looking for first non blank cell

    How about this?

    =INDEX($D$2:$D$170,MATCH(TODAY(),$B$2:$B$170,1))

    Or maybe this?

    =INDEX($D$2:$D$170,MATCH(99^99,E:E)-1)

    Both produce the result you want.
    Last edited by AliGW; 03-27-2018 at 09:44 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-25-2016
    Location
    United States, Texas
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: Formula Looking for first non blank cell

    Quote Originally Posted by AliGW View Post
    How about this?

    =INDEX($D$2:$D$170,MATCH(TODAY(),$B$2:$B$170,1))

    So this worked for the mileage I put in today. How will it change from 768 (D5) to 960 (D6)?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Formula Looking for first non blank cell

    When today gets to the next date on the list in B it will change.

    I have added an alternative formula above.

  5. #5
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Formula Looking for first non blank cell

    this works too:

    HTML Code: 
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

  6. #6
    Registered User
    Join Date
    05-25-2016
    Location
    United States, Texas
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: Formula Looking for first non blank cell

    Quote Originally Posted by AliGW View Post
    When today gets to the next date on the list in B it will change.

    I have added an alternative formula above.
    Awesome! thank you!

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Formula Looking for first non blank cell

    You're welcome!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Replies: 1
    Last Post: 06-29-2016, 03:44 AM
  2. Replies: 11
    Last Post: 09-15-2014, 02:36 AM
  3. [SOLVED] When my formula encounters a blank cell it returns a 0, I need it to return a blank
    By stretch99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2014, 07:52 PM
  4. [SOLVED] If formula in one cell refers to another cell which is blank result is a blank cell
    By M-Tommo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-03-2014, 08:29 AM
  5. [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
  6. Mac Excel: Hiding rows if cell blank, when being blank depends on a conditional formula
    By lee_5_5 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 06-06-2013, 11:25 PM
  7. I want a formula cell to be blank if cells computing formula are blank
    By asawyer3 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2011, 05:24 PM

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