+ Reply to Thread
Results 1 to 10 of 10

Lookup (with blank rows)

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Lookup (with blank rows)

    Hi im trying to get a time from a row with two lookup criteria the issue im having is i cant bring the data back because of the gap between the names in column A please see attached.

    example
    Luke Andrews Phone would be 02:03:04


    If you can help, THANKS!!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Lookup (with blank rows)

    With the macro below to fill the gaps.

    After that with an pivot table.

    See the attached file.

    Sub filldata_acending_incolumnA()
    
    'from top to below (acending)
    
        Range(Range("a2"), Cells(Rows.Count, 3).End(xlUp).Offset(, -2)). _
            SpecialCells(xlCellTypeBlanks).FormulaR1C1 = "=R[-1]C"
     
    End Sub
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: Lookup (with blank rows)

    Hi thank you for your reply, I cant fill in the gaps it needs to be the same layout without macros also

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Lookup (with blank rows)

    And why is that?

  5. #5
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: Lookup (with blank rows)

    I dump that data and on a daily basis, I was just looking for a formula

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Lookup (with blank rows)

    Then it is a small job to run to macro to fill the gaps.

    It will make it much easier to find a formula that fits your needs.

  7. #7
    Forum Contributor
    Join Date
    05-07-2013
    Location
    apple valley ca
    MS-Off Ver
    Excel 2007
    Posts
    110

    Re: Lookup (with blank rows)

    try this.. hope this works..
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    05-07-2013
    Location
    apple valley ca
    MS-Off Ver
    Excel 2007
    Posts
    110

    Re: Lookup (with blank rows)

    or you can do it like this.. i changed you table..
    Attached Files Attached Files

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Lookup (with blank rows)

    =OFFSET(A3,MATCH(E4,$A$4:$A$20,0)+LOOKUP(F4,{"chat","email","phone","Text"},{0,1,2,3}),2,1) should do it
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  10. #10
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: Lookup (with blank rows)

    Thank you all, MarinDWilson that worked perfectly! Thank you all!

+ 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. 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
  2. [SOLVED] Delete blank rows between data rows, shift rows up, then repeat
    By excelactuary in forum Excel General
    Replies: 2
    Last Post: 03-11-2013, 11:53 AM
  3. Replies: 1
    Last Post: 11-07-2012, 01:57 PM
  4. [SOLVED] Delete blank rows after filter - if no blank rows exit sub
    By cmb80 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2012, 10:00 AM
  5. blank rows:program that deletes blank rows
    By phil2006 in forum Excel General
    Replies: 2
    Last Post: 06-19-2006, 11:10 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