Cell Address of a Maximum Value

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

Barry has a worksheet with 65,000 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 (3818) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Cell Address of a Maximum Value.

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

siddiqui    18 Jan 2015, 01:08
Hi
i have two sheets on one i am maintaining removals & Installations of particular object
i want to get only removal on 2nd sheet automatically once i entered it on sheet 1
Michael (Micky) Avidan    04 Dec 2014, 06:55
For the figure in cell A1:
=MIN(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))
=MAX(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))
*** Both Array Formulas !!!
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2015)
ISRAEL
Hi,
I have a figure like 23869 in a cell of excel worksheet. how do i get to know with a formula that max number is 9 and minimum number is 2. please help

Michael (Micky) Avidan    13 Jun 2014, 09:58
One possibility will be as shown in the linked picture:
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2014)
ISRAEL
mansoor    12 Jun 2014, 05:00
i want to create a mark sheet in which i want to be like this,
i have seven rows and each row has a particular value, but i want be like this that when if i put "X" in the particular row, that particular value would come in the total row.for example,

A1 value is 20
B1 value is 30
C1 value is 40

i want that when if put 'X' in row A1, it have to show 20 in the total row.

thanks

 *Name: Email: Notify me about new comments ONLY FOR THIS TIP Notify me about new comments ANYWHERE ON THIS SITE Hide my email address *Text: *What is 4+5 (To prevent automated submissions and spam.)

Our Company

Sharon Parq Associates, Inc.

Our Sites

Tips.Net

Beauty and Style

Cars

Cleaning

Cooking

ExcelTips (Excel 97–2003)

ExcelTips (Excel 2007–2013)

Gardening

Health

Home Improvement

Money and Finances

Organizing

Pests and Bugs

Pets and Animals

WindowsTips (Microsoft Windows)

WordTips (Word 97–2003)

WordTips (Word 2007–2013)

Excel Products

Word Products

Our Authors

Author Index

Write for Tips.Net