+ Reply to Thread
Results 1 to 5 of 5

return cell address of a max

Hybrid View

  1. #1
    Registered User
    Join Date
    02-08-2011
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    5

    return cell address of a max

    I need to return the address of a cell (R,C) with max or min in value in 2000 lines of a column. What functions can be used to return the value?
    For instance: a minimal value in (C6, R666), it easy to find the value by MIN(), but i do not know which function should be combined to return the address. it should be straight forward, but i am not familiar with the codings.

    Thanks a lot,

    sandy

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: return cell address of a max

    Try..

    =CELL("address",INDEX(A1:A1000,MATCH(MAX(A1:A1000),A1:A1000,0)))

    Toggle between MIN and MAX as per requirement
    Last edited by Ace_XL; 11-14-2012 at 06:20 PM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: return cell address of a max

    you will have to play with the ranges, but try this...
    =CELL("address",INDIRECT("C"&MATCH(MIN(C8:C16),C8:C16,0)+7))

    swap max for min as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    02-08-2011
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: return cell address of a max

    thank you both!

    sandy

  5. #5
    Registered User
    Join Date
    02-08-2011
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: return cell address of a max

    I was wondering how to get the actual address by applying the first solution by FDibbins, becaue if the data does not starts from the first row, the cell address refers to the position within the arrey. Today i find the solution by Ace_XL works exactly what i wished. That is awsome!!! Again, thanks both!

+ 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