Consulting

Results 1 to 6 of 6

Thread: Solved: Match function

  1. #1

    Solved: Match function

    I need a code which can look at the value in sheet1 a1 and then check sheet2 columns c:d for the value held in a1 , if a value is found then give the value in column f for that row. ? does that make sense ?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =INDEX(Sheet2!F2:F20,MIN(MATCH(A1,Sheet2!C2:C20,0),MATCH(A1,Sheet2!D2:D20,0 )))
    Last edited by Bob Phillips; 05-22-2008 at 10:57 AM.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Mentor
    Joined
    Oct 2007
    Posts
    372
    Location
    ha ha ha

  4. #4

    confused match

    it doesnt work

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Doesn't it?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    VBAX Mentor
    Joined
    Oct 2007
    Posts
    372
    Location
    the downfall of the emoticon lol.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •