Consulting

Results 1 to 4 of 4

Thread: Solved: Index Match using named ranges

  1. #1
    VBAX Regular
    Joined
    Oct 2010
    Posts
    11
    Location

    Solved: Index Match using named ranges

    Hi,

    i have a vba code where i want to take the result of a match and get the result of that row number in an array (index).


    it is written as follows
    [VBA]x = Application.Index(SSI, 1, Application.Match(RngAC, MatchKey, 0))[/VBA]

    SSI being the named range in which i want to get the value
    RngAC being the named range (single cell, changes with loop) that i want to find
    and
    MatchKey being the range in which i want to find RngAC.

    my result is giving #value. when i know it should come up with a result

    have i typed the code wrong?

    any help is appreciated

  2. #2
    VBAX Regular
    Joined
    Oct 2010
    Posts
    11
    Location
    Oh, i should also mention that MatchKey and SSI are on a seperate workbook. thats why im working with names so it doesnt need the workbook specified.

    please correct me if i'm wrong.

  3. #3
    VBAX Regular
    Joined
    Oct 2010
    Posts
    11
    Location
    dont worry, i realised that i had the match in column instead of row.

    all good now

  4. #4
    VBAX Regular
    Joined
    Oct 2010
    Posts
    11
    Location
    back again.

    new issue. sorry

    ok so ive used a formula feed into vba of an index match however i want the index to be offset(-1,0) yet as its a formula and not a value i dont know how.

Posting Permissions

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