+ Reply to Thread
Results 1 to 9 of 9

best way to look up and return next column value ( rank )

  1. #1
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    best way to look up and return next column value ( rank )

    hi guys

    Im trying to find out the rank value depending on two cells and returning the rank value ( next column to the answer )

    in the example i have used Arsenal and 442

    so for home shots it needs to look in column a for "arsenal" then look for "442" between cells D1 and AU1 )
    i then need it to return the answer in the rank column to the right which would be cell Y2

    then

    for home shots on target it needs to look in column a for "arsenal" then look for "442" between cells AX1 and CO1 )
    i then need it to return the answer in the rank column to the right which would be cell BS2

    what would be the best way to go about this please

    I welcome any help
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: best way to look up and return next column value ( rank )

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


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

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    Re: best way to look up and return next column value ( rank )

    wow
    thanks so much Richard Works a treat

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: best way to look up and return next column value ( rank )

    My pleasure and thanks for the rep.

  5. #5
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    Re: best way to look up and return next column value ( rank )

    Hi Richard

    Sorry to trouble you
    i have tried to extend my data but cannot understand how your formula works so that i can extend with it
    Would you please be kind enough to look at the attachment again for me and explain how the formula works and how i can adapt it to use the next sector and the ideal scenario underneath.

    really appreciate your help
    kind regards
    Attached Files Attached Files

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: best way to look up and return next column value ( rank )

    Hi,

    The original formula worked because there were only two sets of columns.
    Note the two formulae I gave you were slighly different in that the second MATCH() function in D6 tha looked for the 442 value did not have the third 'False' parameter. With a False argument a MATCH() finds the first instance, without a False it finds the last, hence with only two sets of columns D5 & D6 found both.

    Now you have 5 sets of columns the binary choice of one or the other won't work. I think the simplest way is to use some helper cells, i.e. F8:K12
    I also added a dynamic range name called 'Data' which is used in the K8:K12 cells

    See attached
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    Re: best way to look up and return next column value ( rank )

    Hi Richard

    Sorry i havent got back to you sooner but i have been unwell.
    Thank you for your efforts
    unfortunately when i select another team in cell B2 i get #REF! in the returning cells

    really appreciate your help
    Attached Files Attached Files

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: best way to look up and return next column value ( rank )

    Hi

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


    and change K8 and copied down to
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    Re: best way to look up and return next column value ( rank )

    you sir are an absolute legend.
    I really cannot thank you enough and thank you for your patience

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Return Name of SUMPRODUCT and Rank
    By wn2tappe in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-20-2015, 08:02 AM
  2. lookup, rank and return top 3 and most improved
    By victoria.chabot in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-17-2015, 04:13 PM
  3. [SOLVED] Function to return sequence from rank?
    By cocacrave in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2015, 11:22 AM
  4. Return Value base on Top x highest rank
    By danzarette in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-20-2013, 12:05 PM
  5. [SOLVED] Return Column Headers based on row rank with duplicate values in row
    By carlwin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2013, 12:24 AM
  6. Replies: 2
    Last Post: 05-09-2012, 01:30 PM
  7. Sum , Rank & Return
    By Xcentrik in forum Excel General
    Replies: 1
    Last Post: 08-30-2011, 12:45 AM

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