+ Reply to Thread
Results 1 to 5 of 5

lookup formula need help

Hybrid View

  1. #1
    Registered User
    Join Date
    10-01-2012
    Location
    kolkatta
    MS-Off Ver
    Excel 2003
    Posts
    7

    lookup formula need help

    i have data in a1:a100, b1:b100, c1:100

    if c1 data mach between b1:b100 in any cell then paste result front that cell (from a1:a100)

    example

    if c1 data mach in b5 then paste a5
    if c10 data mach in b20 then paste a20

  2. #2
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Re: lookup formula need help

    Lookup is an excel function not a vba property.
    That being said, type this into d1 and drag down:

    =LOOKUP(C1,$B$1:$B$100,$A$1:$A$100)
    If you think that my answer was helpful, please click on the "Add to this user's Reputation" button.

  3. #3
    Registered User
    Join Date
    10-01-2012
    Location
    kolkatta
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: lookup formula need help

    thank's very much it's working

  4. #4
    Registered User
    Join Date
    10-01-2012
    Location
    kolkatta
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: lookup formula need help

    sorry sir it's not working now

    if c1 data mach in b5 then only past a5 ans.other wise past as 0

    but your formula give me ans. if not mach c1 wth b5

    and in coluam c and b there is time value (11:01:01)

  5. #5
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Re: lookup formula need help

    I'm not really sure whether I understand you correctly, but if you meant that in a case where no match is found, the formula still displays some results then try this please:

    =IFERROR(INDEX($A$1:$A$100, MATCH(C1,$B$1:$B$100,0)),"")
    This goes into C1 and has to be dragged down

+ 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