+ Reply to Thread
Results 1 to 3 of 3

Lookup First Non Blank Cell

  1. #1
    Registered User
    Join Date
    07-18-2013
    Location
    Worcester
    MS-Off Ver
    Microsoft 365
    Posts
    19

    Lookup First Non Blank Cell

    Hi,

    I have a sheet with phone numbers, and on a separate sheet in the same workbook I have call data. What I need is a formula to search the Call Data sheet for the phone numbers from the Numbers sheet, and retrieve the information from the column (Dest_Init - column G) which shows when a call was first attempted for that particular number (i.e. 18/07/2016 18:04:21).

    I have been using Vlookup, which in most cases is fine as an outbound call is made on the first attempt, but there are some cases when a call has been queued but the outbound call was never made so the cell is blank (in the Dest_Init column). I need to search for the first non-blank value for each phone number.

    I hope this makes sense! I think I need an Index Match formula (maybe??) but I could do with some guidance. I have attached a sample, but the real data has many more rows and a few more columns with information that is not relevant to this query.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Lookup First Non Blank Cell

    Hello
    If there's only one occurrence of each phone number in column G, apart from the blank, then you could perhaps use SUMIFS, for example:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    A2 is cell reference on the 'Numbers' sheet.

    If the number doesn't exist then this will return zero but you could hide that with perhaps an IF function or a Custom cell formatting. This would hide zeros:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    DBY

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup First Non Blank Cell

    Try this array formula** entered in B2:

    =IFERROR(INDEX(Table1[Dest_Init],MATCH(1,(Table1[Numbers]=A2)*(Table1[Dest_Init]<>""),0)),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Format as d/m/yyyy h:mm

    Copy down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] How to show cell blank if no value in lookup table
    By PhilBar in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-07-2016, 04:28 PM
  2. How to get CF formula to skip if lookup cell is blank.
    By Graham Pall in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-02-2015, 09:39 AM
  3. Lookup a blank cell in a Lookup table and return a figure.
    By jonnops in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-20-2014, 07:33 AM
  4. [SOLVED] Lookup cell value and if blank do not display zero
    By Abu Abdurakhim in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-28-2013, 03:19 AM
  5. lookup value and show last cell not blank
    By tonnerre2000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-07-2013, 07:30 PM
  6. [SOLVED] lookup leaving a cell blank
    By Twangbar in forum Excel General
    Replies: 2
    Last Post: 03-28-2012, 10:10 PM
  7. Returning a blank cell rather then #N/A (Lookup)
    By Monk in forum Excel General
    Replies: 2
    Last Post: 01-24-2006, 11:20 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