Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need ability to get cell address of max value in range
When looking at a range of cells, I need both the contents of the maximum
value in the range and the actual cell address of that cell. For example, I have a series of readings from A1 to Y31 to represent every hour and day of a month. If the highest reading is in the 11th hour of the 15th day (obtained by the function MAX(A1:Z31) then i need to be able to get the actual address of K15 returned also. This is used for billing purposes. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/office/comm...et.f unctions |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need ability to get cell address of max value in range
Hi Michael.
With an array formula {=ADDRESS(MAX(IF(A1:Y31=MAX(A1:Y31),ROW(A1:Y31)," ")),COLUMN(A1:Y31))} Use Control Shift Enter to enter the formula ... HTH Cheers Carim |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need ability to get cell address of max value in range
Oops,
Sorry for my mistake, use Ragdyer 's array formula ... it is the right one ... Carim |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need ability to get cell address of max value in range
What happens when there are duplicate Max's or Min's?
<g Biff "Ragdyer" wrote in message ... Try this *array* formula: =ADDRESS(MAX((A1:Y31=MAX(A1:Y31))*ROW(A1:Y31)),MAX ((A1:Y31=MAX(A1:Y31))*COLU MN(A1:Y31))) -- Array formulas must be entered with CSE, <Ctrl <Shift <Enter, instead of the regular <Enter, which will *automatically* enclose the formula in curly brackets, which *cannot* be done manually. You *must also* use CSE when revising the formula. -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "Michael Turnbeaugh" <Michael wrote in message ... When looking at a range of cells, I need both the contents of the maximum value in the range and the actual cell address of that cell. For example, I have a series of readings from A1 to Y31 to represent every hour and day of a month. If the highest reading is in the 11th hour of the 15th day (obtained by the function MAX(A1:Z31) then i need to be able to get the actual address of K15 returned also. This is used for billing purposes. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/office/comm...et.f unctions |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need ability to get cell address of max value in range
It should give you the last one ... no?<g
-- Regards, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "Biff" wrote in message ... What happens when there are duplicate Max's or Min's? <g Biff "Ragdyer" wrote in message ... Try this *array* formula: =ADDRESS(MAX((A1:Y31=MAX(A1:Y31))*ROW(A1:Y31)),MAX ((A1:Y31=MAX(A1:Y31))*COLU MN(A1:Y31))) -- Array formulas must be entered with CSE, <Ctrl <Shift <Enter, instead of the regular <Enter, which will *automatically* enclose the formula in curly brackets, which *cannot* be done manually. You *must also* use CSE when revising the formula. -- HTH, RD -------------------------------------------------------------------------- - Please keep all correspondence within the NewsGroup, so all may benefit ! -------------------------------------------------------------------------- - "Michael Turnbeaugh" <Michael wrote in message ... When looking at a range of cells, I need both the contents of the maximum value in the range and the actual cell address of that cell. For example, I have a series of readings from A1 to Y31 to represent every hour and day of a month. If the highest reading is in the 11th hour of the 15th day (obtained by the function MAX(A1:Z31) then i need to be able to get the actual address of K15 returned also. This is used for billing purposes. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/office/comm...et.f unctions |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need ability to get cell address of max value in range
http://img45.imageshack.us/img45/1046/maxaddressgd6.jpg
Harlan "schooled" me on this once. Basically, you have to decide which direction has precedence: left to right, top to bottom or top to bottom, left to right. I think I have a formula (Harlan's formula) somewhere that does this. I'll see if I can find it. Biff "Ragdyer" wrote in message ... It should give you the last one ... no?<g -- Regards, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "Biff" wrote in message ... What happens when there are duplicate Max's or Min's? <g Biff "Ragdyer" wrote in message ... Try this *array* formula: =ADDRESS(MAX((A1:Y31=MAX(A1:Y31))*ROW(A1:Y31)),MAX ((A1:Y31=MAX(A1:Y31))*COLU MN(A1:Y31))) -- Array formulas must be entered with CSE, <Ctrl <Shift <Enter, instead of the regular <Enter, which will *automatically* enclose the formula in curly brackets, which *cannot* be done manually. You *must also* use CSE when revising the formula. -- HTH, RD -------------------------------------------------------------------------- - Please keep all correspondence within the NewsGroup, so all may benefit ! -------------------------------------------------------------------------- - "Michael Turnbeaugh" <Michael wrote in message ... When looking at a range of cells, I need both the contents of the maximum value in the range and the actual cell address of that cell. For example, I have a series of readings from A1 to Y31 to represent every hour and day of a month. If the highest reading is in the 11th hour of the 15th day (obtained by the function MAX(A1:Z31) then i need to be able to get the actual address of K15 returned also. This is used for billing purposes. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/office/comm...et.f unctions |
#8
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need ability to get cell address of max value in range
Thanks a lot. This is exactly what I needed.
"Ragdyer" wrote: Try this *array* formula: =ADDRESS(MAX((A1:Y31=MAX(A1:Y31))*ROW(A1:Y31)),MAX ((A1:Y31=MAX(A1:Y31))*COLU MN(A1:Y31))) -- Array formulas must be entered with CSE, <Ctrl <Shift <Enter, instead of the regular <Enter, which will *automatically* enclose the formula in curly brackets, which *cannot* be done manually. You *must also* use CSE when revising the formula. -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "Michael Turnbeaugh" <Michael wrote in message ... When looking at a range of cells, I need both the contents of the maximum value in the range and the actual cell address of that cell. For example, I have a series of readings from A1 to Y31 to represent every hour and day of a month. If the highest reading is in the 11th hour of the 15th day (obtained by the function MAX(A1:Z31) then i need to be able to get the actual address of K15 returned also. This is used for billing purposes. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/office/comm...et.f unctions |
#9
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need ability to get cell address of max value in range
Thanks for the feed-back.
And do take note ... if it's at all important to you ... Biff's concern about duplicates. -- Regards, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "Michael Turnbeaugh" wrote in message ... Thanks a lot. This is exactly what I needed. "Ragdyer" wrote: Try this *array* formula: =ADDRESS(MAX((A1:Y31=MAX(A1:Y31))*ROW(A1:Y31)),MAX ((A1:Y31=MAX(A1:Y31))*COLU MN(A1:Y31))) -- Array formulas must be entered with CSE, <Ctrl <Shift <Enter, instead of the regular <Enter, which will *automatically* enclose the formula in curly brackets, which *cannot* be done manually. You *must also* use CSE when revising the formula. -- HTH, RD -------------------------------------------------------------------------- - Please keep all correspondence within the NewsGroup, so all may benefit ! -------------------------------------------------------------------------- - "Michael Turnbeaugh" <Michael wrote in message ... When looking at a range of cells, I need both the contents of the maximum value in the range and the actual cell address of that cell. For example, I have a series of readings from A1 to Y31 to represent every hour and day of a month. If the highest reading is in the 11th hour of the 15th day (obtained by the function MAX(A1:Z31) then i need to be able to get the actual address of K15 returned also. This is used for billing purposes. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/office/comm...et.f unctions |
#10
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need ability to get cell address of max value in range
Here's that formula.
tbl = named range A8 = lookup value (you could replace that with MAX(tbl) ) Array entered: =CELL("Address",INDEX(tbl,MATCH(TRUE,COUNTIF(OFFSE T(tbl,ROW(tbl)-CELL("Row",tbl),0,1),A8)0,0),MATCH(A8,INDEX(tbl,M ATCH(TRUE,COUNTIF(OFFSET(tbl,ROW(tbl)-CELL("Row",tbl),0,1),A8)0,0),0),0))) This works by row then column or top to bottom, left to right. This leads to another mind numbing question. What if you wanted *all* the adresses that meet the criteria? If the range was a one dimensional array it would be no problem. But for a multi dimensional array........ Biff "Biff" wrote in message ... http://img45.imageshack.us/img45/1046/maxaddressgd6.jpg Harlan "schooled" me on this once. Basically, you have to decide which direction has precedence: left to right, top to bottom or top to bottom, left to right. I think I have a formula (Harlan's formula) somewhere that does this. I'll see if I can find it. Biff "Ragdyer" wrote in message ... It should give you the last one ... no?<g -- Regards, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "Biff" wrote in message ... What happens when there are duplicate Max's or Min's? <g Biff "Ragdyer" wrote in message ... Try this *array* formula: =ADDRESS(MAX((A1:Y31=MAX(A1:Y31))*ROW(A1:Y31)),MAX ((A1:Y31=MAX(A1:Y31))*COLU MN(A1:Y31))) -- Array formulas must be entered with CSE, <Ctrl <Shift <Enter, instead of the regular <Enter, which will *automatically* enclose the formula in curly brackets, which *cannot* be done manually. You *must also* use CSE when revising the formula. -- HTH, RD -------------------------------------------------------------------------- - Please keep all correspondence within the NewsGroup, so all may benefit ! -------------------------------------------------------------------------- - "Michael Turnbeaugh" <Michael wrote in message ... When looking at a range of cells, I need both the contents of the maximum value in the range and the actual cell address of that cell. For example, I have a series of readings from A1 to Y31 to represent every hour and day of a month. If the highest reading is in the 11th hour of the 15th day (obtained by the function MAX(A1:Z31) then i need to be able to get the actual address of K15 returned also. This is used for billing purposes. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/office/comm...et.f unctions |
#11
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need ability to get cell address of max value in range
Hi Biff,
Thanks a lot for your insight and for sharing your formula ... It 's always great to keep on learning ...!!! Cheers Carim |
#12
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need ability to get cell address of max value in range
Actually Biff's first question is a concern as I would really like to return
the first occurrence of the duplicate Max or Min, if any. I'm trying to digest his method for working top-to-bottom and right-to-left which would solve the further condition that I was looking for. I definitely appreciate all the assistance on this question. "Ragdyer" wrote: Thanks for the feed-back. And do take note ... if it's at all important to you ... Biff's concern about duplicates. -- Regards, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "Michael Turnbeaugh" wrote in message ... Thanks a lot. This is exactly what I needed. "Ragdyer" wrote: Try this *array* formula: =ADDRESS(MAX((A1:Y31=MAX(A1:Y31))*ROW(A1:Y31)),MAX ((A1:Y31=MAX(A1:Y31))*COLU MN(A1:Y31))) -- Array formulas must be entered with CSE, <Ctrl <Shift <Enter, instead of the regular <Enter, which will *automatically* enclose the formula in curly brackets, which *cannot* be done manually. You *must also* use CSE when revising the formula. -- HTH, RD -------------------------------------------------------------------------- - Please keep all correspondence within the NewsGroup, so all may benefit ! -------------------------------------------------------------------------- - "Michael Turnbeaugh" <Michael wrote in message ... When looking at a range of cells, I need both the contents of the maximum value in the range and the actual cell address of that cell. For example, I have a series of readings from A1 to Y31 to represent every hour and day of a month. If the highest reading is in the 11th hour of the 15th day (obtained by the function MAX(A1:Z31) then i need to be able to get the actual address of K15 returned also. This is used for billing purposes. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/office/comm...et.f unctions |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Return to cell whose address is stored in different cell | Excel Discussion (Misc queries) | |||
Determine if Cell Address is within a Range | Excel Worksheet Functions | |||
Replace a spreadsheets named cells/ranges with exact cell address. | Excel Discussion (Misc queries) | |||
copying cell names | Excel Discussion (Misc queries) | |||
Formula to return ADDRESS of cell in range that meets criteria | Excel Worksheet Functions |