+ Reply to Thread
Results 1 to 8 of 8

look up values based on corresponding year

  1. #1
    Forum Contributor
    Join Date
    11-24-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    225

    look up values based on corresponding year

    Hi I want to extract size information from j3 to U3 cells into i3 cells for corresponding year. The year should be matched from c column and j1 to u1.
    Attached Files Attached Files

  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: look up values

    there is no year 2000 in that table oops yes there is
    otherwise
    =LOOKUP(C2,$J$1:$U$1,J2:U2) would work. fyi numbers in j1:u1 are text re enter them as numbers
    Last edited by martindwilson; 11-24-2012 at 09:19 AM.
    "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
    Registered User
    Join Date
    11-24-2012
    Location
    delhi
    MS-Off Ver
    Excel 2007
    Posts
    8

    Red face Re: look up values

    Hi,

    U can use index and match to get your answer.
    e.g
    =+INDEX($J$1:$U$7,ROW(),MATCH(C2,$J$1:$U$1,0))

    Pl find the attached file.

    Thanks
    Ranjeet.
    Attached Files Attached Files

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: look up values

    In I2, Drag Down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note

    I would be tempted to change $J$1:$U$1 to numbers and then use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: look up values

    Hi mahershams

    Are we looking at matching C2! If so try in I2 and copy down:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Array formula, CTRL + SHIFT + ENTER, not ENTER
    Last edited by Kevin UK; 11-24-2012 at 08:38 AM.

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: look up values

    @ Ranjeet.
    Why restrict the reference range?

    @ Kevin
    Why use an array formula, when it is easier to write a standard equivalent? ...

  7. #7
    Registered User
    Join Date
    11-24-2012
    Location
    delhi
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: look up values

    Hi Marcol,

    I agree with U.
    thanks.

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

    Re: look up values

    for that matter
    =INDEX($J2:$U2,,MATCH($C2&"",$J$1:$U$1,0))
    or
    =LOOKUP(C2&"",$J$1:$U$1,J2:U2)

+ 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