+ Reply to Thread
Results 1 to 4 of 4

Indirect function and Array formula

  1. #1
    Registered User
    Join Date
    04-28-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Indirect function and Array formula

    Hi guys,

    Does anyone know why the following formula doesn't work as an array formula?:

    VLOOKUP(D15:D195,B15:B195&"_client",2,FALSE)


    I highlight cells S15:S195, enter the above formula in the formula pane, and press Ctrl+Shift+Enter and I get a #N/A error.

    Thanks

    Manumusashi

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Indirect function and Array formula

    i have no idea why it would work as any formula what are you trying to do?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: Indirect function and Array formula

    VLOOKUP doesn't take a range or array as the first argument, try this version in S15 copied down

    =VLOOKUP(substitute(D15,"-client",""),B$15:C$195,2,FALSE)

    [I'm assuming D15 contains an entry like xyz_client, that will match with xyz in column B and return the corresponding value from column C]
    Audere est facere

  4. #4
    Registered User
    Join Date
    04-28-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Indirect function and Array formula

    Thanks Daddylong legs!

+ 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