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

Inserting a Section Mark

Section marks are used regularly in the writings of some industries, such as in legal documents. If you need a way to ...

Discover More

Inserting Workbook Comments Into a Cell

One of the pieces of information that Excel can maintain relative to a workbook is a set of comments of your choice. ...

Discover More

An Automatic Two Spaces after a Period

Should you put two spaces after a sentence or just one? Ask different people and you will get different answers. To Word ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!

More ExcelTips (ribbon)

Dealing with Long Formulas

If your worksheet formulas seem to go on forever, here's a handy way to make them more understandable. (All you need to ...

Discover More

Incrementing References by Multiples when Copying Formulas

You can easily set up a formula to perform some calculation on a range of cells. When you copy that formula, the copied ...

Discover More

Patterns of Numbers with a Formula

Want to create a sequential pattern using formulas? It's easy to do if you take a look at how your data repeats. This tip ...

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 three more than 8?

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.