+ Reply to Thread
Results 1 to 7 of 7

Rank & then Offset

  1. #1
    Forum Contributor
    Join Date
    07-02-2008
    Location
    Utah
    Posts
    171

    Rank & then Offset

    Hi Excel Friends!

    I am trying to create a nice equation that will look in row 35 for the highest value and then return the value that is 33 rows up and 1 column to the left. See attachment of for more details.

    Basically, I need a formula to fill in cells B38:B41 (detail included in Excel doc attached).

    Thanks!!
    John
    Attached Files Attached Files
    Last edited by John Bates; 08-12-2009 at 06:16 PM. Reason: SOLVED

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Rank & then Offset

    In B38 and copy down,

    =INDEX($C$2:$S$2, MATCH(LARGE($C$35:$S$35, ROWS(B$38:B38) ), $C$35:$S$35, 0) - 1)
    Entia non sunt multiplicanda sine necessitate

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

    Re: Rank & then Offset

    =INDEX(C2:S2,,MATCH(1,C36:S36,0)-1) for rank 1
    =INDEX(C2:S2,,MATCH(2,C36:S36,0)-1) for rank 2
    ah i used your rank row shg has used the % row
    "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

  4. #4
    Forum Contributor
    Join Date
    07-02-2008
    Location
    Utah
    Posts
    171

    Thumbs up Re: Rank & then Offset

    Awesome!! Thank you so much!!...works perfectly

  5. #5
    Forum Contributor
    Join Date
    07-02-2008
    Location
    Utah
    Posts
    171

    Re: Rank & then Offset

    Hi shg,

    Thank you for your help! One more question...how would I then pull in the value for "::unspecified::" depending on the Region:Segment that is returned?

    Basically, I need to report the following in cells B38:B41
    Argentina SME
    Australia Consumer
    Australia SMB
    Argentina Consumer

    I then want to pull in the following in cells C38:C41
    1138
    950
    171
    100

    Does that make sense?

    Thanks again!!

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Rank & then Offset

    C38 and down: =INDEX(INDEX($C$5:$S$34, 0, MATCH(B38, $C$2:$S$2, 0) + 1), MATCH("::unspecified::", INDEX($C$5:$S$34, 0, MATCH(B38, $C$2:$S$2, 0) ), 0) )

  7. #7
    Forum Contributor
    Join Date
    07-02-2008
    Location
    Utah
    Posts
    171

    Talking Re: Rank & then Offset

    Wow, thank you so much!! This has saved me a ton of time

+ 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