+ Reply to Thread
Results 1 to 7 of 7

VLOOKUP Help Please

  1. #1
    Registered User
    Join Date
    04-08-2014
    Location
    Longview, Texas
    MS-Off Ver
    Excel 2010
    Posts
    32

    VLOOKUP Help Please

    Alright, I give up. I will come to the masters here. I am trying to copy the times from column D where there is a "0" in column E and transfer those to column A in another tab. Then I would like to copy the times in column D where there is a "1" in column E and transfer those to Column B in another tab as in the pictures below. I appreciate your help.

    Capture.PNG CaptureB.PNG

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: VLOOKUP Help Please

    Post a sample workbook, not pictures.

    Are you familiar with PivotTables? You could just wrap a named range around the DATA then filter on column E to be 0 and it will pull those dates in...
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  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: VLOOKUP Help Please

    See if this is what you had in mind:

    http://www.excelforum.com/tips-and-t...ml#post3376007
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: VLOOKUP Help Please

    Assuming Sheet1 contains your data with dates in col. D (starting from row4) and numbers 0 or 1 in col. E (starting from row 4), then on sheet2.......

    Col. A in cell A2 , place this array formula. Since this is an array formula so you need to confirm it with Ctrl+Shift+Enter instead of just Enter. (i.e. hold down Ctrl+Shift and then press Enter) and drag down the formula until you get blank cells.

    Please Login or Register  to view this content.
    Col. B in cell B2 , place this array formula. Since this is an array formula so you need to confirm it with Ctrl+Shift+Enter instead of just Enter. (i.e. hold down Ctrl+Shift and then press Enter) and drag down the formula until you get blank cells.

    Please Login or Register  to view this content.
    Is this what you want?
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

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

    Re: VLOOKUP Help Please

    Using ROW(A1) leaves the formula(s) vulnerable to new row insertions on the sheet that contains the formula(s).

    Insert a new row 1 and ROW(A1) becomes ROW(A2) and now the formula will not return the correct first result.

    Using ROWS(...) is more robust.

    ROWS(A$1:A1)

    Insert a new row 1 and ROWS(A$1:A1) becomes ROWS(A$2:A2) and still evaluates to 1.

  6. #6
    Registered User
    Join Date
    04-08-2014
    Location
    Longview, Texas
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: VLOOKUP Help Please

    I took sktneer's formula and added Tony's help at the end and it works like a charm. I appreciate everyone's help.

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

    Re: VLOOKUP Help Please

    The formula at the link I posted already had the ROWS function incorporated!

    Glad you got it working. We appreciate the feedback.


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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: 0
    Last Post: 12-26-2013, 01:12 PM
  2. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  3. [SOLVED] Vlookup is not working and giving =vlookup(B2,$T$2:$U$135,2,false) this kind of values.
    By yogeshsharma1981 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2013, 04:08 PM
  4. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  5. Replies: 5
    Last Post: 07-29-2009, 07:53 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