+ Reply to Thread
Results 1 to 9 of 9

Lookup Formula

  1. #1
    Registered User
    Join Date
    10-10-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    34

    Lookup Formula

    Hi.

    I hope someone can help.

    I need H2 to lookup datum in Column B. The hard part is the lookupvalue and the datum is in one column

    Please see attachment for more information.

    I appreciate all the help.
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Lookup Formula

    How about...

    H2 =LOOKUP(2,1/(B4:B14="Log In"),C4:C14)
    H3 =LOOKUP(2,1/(B17:B28="Log In"),C17:C28)
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    10-10-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Lookup Formula

    Quote Originally Posted by jeffreybrown View Post
    How about...

    H2 =LOOKUP(2,1/(B4:B14="Log In"),C4:C14)
    H3 =LOOKUP(2,1/(B17:B28="Log In"),C17:C28)
    Hi Jeff,

    Thanks for the prompt response.

    Is there a way I can copy paste a formula all the way down in case I have more than 30 stations to look up so I won't have to edit the ranges for every station.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Lookup Formula

    Nothing immediately comes to mind except for, why not rearrage your blocks of data so they go left to right instead of up and down.

    With this setup you can easily transfer the formula to the next block of data.

  5. #5
    Registered User
    Join Date
    10-10-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Lookup Formula

    Quote Originally Posted by jeffreybrown View Post
    Nothing immediately comes to mind except for, why not rearrage your blocks of data so they go left to right instead of up and down.

    With this setup you can easily transfer the formula to the next block of data.
    I get you mean. Unfortunately, the list given me goes up down. To do it manually would take forever.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Lookup Formula

    You can convert Jeff's formula in H2 to:

    Please Login or Register  to view this content.
    copied down, if your groups are consistent in size and position.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  7. #7
    Registered User
    Join Date
    10-10-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Lookup Formula

    Thanks. This is perfect. Last question is how can I look up values in A instead of C?

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Lookup Formula

    Set the columns in the second offset to -1 to look to the left of B...

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    10-10-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Lookup Formula

    Quote Originally Posted by NBVC View Post
    Set the columns in the second offset to -1 to look to the left of B...

    Please Login or Register  to view this content.
    Thanks! Work Great!. I just found out that the groups are not consistent in size and position. Some groups go beyond 200. Any idea how this could work?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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