Results 1 to 6 of 6

horizontal lookup/fill

Threaded View

pfchang horizontal lookup/fill 10-28-2009, 07:20 PM
martindwilson Re: horizontal lookup/fill... 10-28-2009, 07:46 PM
HammerTime Re: horizontal lookup/fill... 10-28-2009, 07:46 PM
martindwilson Re: horizontal lookup/fill... 10-28-2009, 07:58 PM
HammerTime Re: horizontal lookup/fill... 10-28-2009, 08:15 PM
pfchang Re: horizontal lookup/fill 10-29-2009, 05:41 PM
  1. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: horizontal lookup/fill question

    replace the column number with
    COLUMNS($A$1:A1) (thats = to 1)
    columns simply counts the cols in a given range when dragged across it will change to
    COLUMNS($A$1:B1) Ie 2
    COLUMNS($A$1:C1) ie 3
    so in your case starting from 2 use
    COLUMNS($A$1:B1)

    vlookup($A1,sheet1!$A:$D,COLUMNS($A$1:B1),0)
    note you dont have to use the columns you're in

    COLUMNS($BA$1:BA1) for example would also = 1 no matter where you use it on the sheet
    you can also do the same with rows() on dragging down
    rows($A$1:A1) =1
    changes to
    rows($A$1:A2) =2
    Last edited by martindwilson; 10-28-2009 at 07:54 PM.
    "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

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