+ Reply to Thread
Results 1 to 5 of 5

Vlookup the first non-blank cell and retrive the adjcent data

  1. #1
    Registered User
    Join Date
    07-31-2019
    Location
    HONG KONG
    MS-Off Ver
    EXCEL 2016
    Posts
    48

    Vlookup the first non-blank cell and retrive the adjcent data

    Hi
    i want the formula for Vlookup the first non-blank cell and retrive the adjcent data

    Data
    A blank
    B 2
    C 3
    A 4
    B 5
    C 6


    Spreadsheet (desired result)
    A 4
    B 2
    C 3


    In Speadsheet, I want a formula to get the first column value (i.e. A), and vlookup for the first non-blank cell in data sheet and return the adject cell value(ie. 4)
    thanks in advance
    Last edited by wongsiuon; 10-18-2019 at 01:23 AM.

  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,926

    Re: Vlookup the first non-blank cell and retrive the adjcent data

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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
    07-31-2019
    Location
    HONG KONG
    MS-Off Ver
    EXCEL 2016
    Posts
    48

    Re: Vlookup the first non-blank cell and retrive the adjcent data

    thanks for reminder.
    i have attached the excel file. thanks a lot

  4. #4
    Registered User
    Join Date
    07-31-2019
    Location
    HONG KONG
    MS-Off Ver
    EXCEL 2016
    Posts
    48

    Re: Vlookup the first non-blank cell and retrive the adjcent data

    Finally, i search in web. got below formula. it works.
    =INDEX(A:A,MATCH(1,INDEX((A:A=A1)*(B:B<>""),0),0))

  5. #5
    Registered User
    Join Date
    09-27-2019
    Location
    Lisbon
    MS-Off Ver
    2016
    Posts
    1

    Re: Vlookup the first non-blank cell and retrive the adjcent data

    Hi Wongsiuon,
    can you please attach the file with that formula working in your example? I tried and it didn't work.
    TY!

+ 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. Snap pop-up calendar adjcent to a cell
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2018, 09:03 AM
  2. [SOLVED] Lookup cell in Range and return value in adjcent cells
    By DEREKWhelan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-06-2018, 05:32 AM
  3. Need VBA code to use vlookup and retrive values
    By awl0111 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2017, 07:27 AM
  4. [SOLVED] If two cells are blank then return blank, else vlookup cell with populated data
    By Jason G in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2017, 10:20 AM
  5. Simple vlookup doesnt retrive all data
    By akzonobel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2013, 01:02 PM
  6. How to use Cell value as variable in VB Macro
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2013, 04:17 PM
  7. Vlookup or other command to retrive data
    By lyilaly in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2006, 03:35 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