Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Cell Address of a Maximum Value.

Cell Address of a Maximum Value

by Allen Wyatt
(last updated October 24, 2015)

8

Barry has a worksheet with several thousand rows. They are unsorted and must remain unsorted. He can use the MAX function on the column and get the maximum value in that column. However, he also wants to know the address of the first cell in the column that contains this maximum value.

There are a number of ways that you can determine the address of the maximum value. One way is to use the ADDRESS function in conjunction with the MAX function, in the following manner:

=ADDRESS(MATCH(MAX(A:A),A:A,0),1,4)

The MATCH function is used to find where in the range (column A) the maximum value resides, and then the ADDRESS function returns the address of that location. A shorter version of the macro leaves off the ADDRESS function, instead being "hardwired" to return an address in column A:

="A"&MATCH(MAX(A:A),A:A,0)

Still another way to get the desired address is with a formula such as this:

=CELL("ADDRESS",INDEX(A:A,MATCH(MAX(A:A),A:A,0)))

This formula uses the CELL function, in conjunction with INDEX, to return the address of the cell that matches the maximum value in the column.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11441) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Cell Address of a Maximum Value.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Displaying the Document Title Right Away

One of the properties that Word maintains for a document is a title. If you want this title displayed on the title bar ...

Discover More

Creating Endnotes

Endnotes are often used in scholarly or legal documents, and they can be added easily. This tip shows how to add them ...

Discover More

Word Indexes and Special Tables

One of the finishing touches used in some types of documents is an index or a special table, such as a table of contents. ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Separating Names into Individual Columns

If you have a list of names in a column, and you want to separate those names into individual cells, there are several ...

Discover More

Finding the Smallest Even Value

When processing data in a worksheet, you may have a need to know what the smallest (lowest) even value in a range is. You ...

Discover More

Pulling a Phone Number with a Known First and Last Name

When using an Excel worksheet to store data (such as names and phone numbers), you may need a way to easily look up a ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 7 + 9?

2016-03-16 15:55:53

John

@Michael (Micky) Avidan,
I very much appreciate your comments and tips and look forward to your astute tips / comments.
I just tried the link: http://screenpresso.com/=PYQ2f , and it no longer works on screenpresso.com .
It returns the message: "Oups, this address is not available or not valid!"
I don't believe the non-availability of the link is related to Mr. Wyatt's website.


2016-03-15 09:03:55

Michael (Micky) Avidan

@MIchael Armstrong,
Sorry about that.
I wil ask Mr. Wyatt for a small space, on his servers, in order for my linked picture to last "for ever".
--------------------------
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2016)
ISRAEL


2016-03-14 08:03:48

MIchael Armstrong

@Micky, your link no longer works.


2016-03-13 13:39:54

Emilio

Allen,
I am by no means a Ninja, but when I have to use excel I do need to locate those power user attributes from my great brain.
I have struggled with pin pointing the cell with the max value now for a while, and you are the first to even explain it.
Now that I have this, I need to find the values in ascending order, from lowest to highest


2015-10-27 05:44:45

Michael (Micky) Avidan

@clas henrik ericsson,
Does the linked picture answer your question ?
http://screenpresso.com/=PYQ2f
--------------------------
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2016)
ISRAEL


2015-10-26 10:33:32

clas henrik ericsson

As William I also want to use the "max adress" and "Min adress" to define a range. This because my data , number of rows are large. I simply want to reduce the "lookup range" amount of unsorted and continuing changed data in order to reduce time to recalculate values/formulas. How do I do to avoid functions as Index to only recalculate within a given range? Or in other words, I firstly define a range (Define Name dynamically)and my formula stick always to this defined range until it is changed for one or another reason. (perhaps because one row have been added/deleted or the sheet have be sorted in another sortorder)


2015-10-24 10:28:14

Larry Mayerhofer

The INDIRECT function allows you to build a formula using text, column letters or row numbers. In this instance all you need to do is wrap the INDIRECT function around the ADDRESS function: =INDIRECT(ADDRESS(MATCH(MAX(A:A),A:A,0),1,4))


2015-10-24 10:12:51

William

OK. The tip works great for finding the address and placing it as text in a cell. But now I want to use this address in a formula but don;t know how.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.