![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 20
|
How do I return cell references for multiple maximums within a range?
ABCDEF 125521 Would like this to return, C1 D1 |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Define "multiple maximums".
|
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Quote:
_________________ Kind Regards Ian Mac [ This Message was edited by: Ian Mac on 2002-03-11 16:02 ] |
|
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
|
|
|
|
|
|
|
#5 | ||
|
New Member
Join Date: Feb 2002
Posts: 20
|
Quote:
|
||
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
I was going to think a way of doing it with "simple" formulas, but, then, decided to do it the "easy" way. Try with this UDF
_________________ Regards, Juan Pablo G. MrExcel.com Consulting [ This Message was edited by: Juan Pablo G. on 2002-03-11 16:16 ] |
|
|
|
|
|
#7 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
If your values are on row 1:1 enter the formula...
=IF(A1=MAX($A$1:$F$1),ADDRESS(ROW(A1),COLUMN(A1),4),"") ...into cell A2 and fill right to cell F2. [ This Message was edited by: Mark W. on 2002-03-11 16:22 ] |
|
|
|
|
|
#8 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Do you need the result in the same cell (hope not), otherwise where do you need the result displayed?
__________________
"Have a good time......all the time" Ian Mac |
|
|
|
|
|
#9 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
=IF(C1=MAX($A$1:$F$1),ADDRESS(ROW(C1),COLUMN(C1),4)&" ","") ...and then include the formula... =A2&B2&C2&D2&E2&F2 ...for your final results. |
|
|
|
|
|
|
#10 |
|
Guest
Posts: n/a
|
Very nice Mark, I tried your formula and pressed the old F9 and got '={"C1 "}', bizarre but nice! I have a different solution to this problem that gives all the addresses in cells next to each other using a few formulas to return the cells ref's in a constant line, i.e. in A2 A3 A4 etc.
I can't remember it off the top of my head, it's at work??!! proving you ARE the master, BUT I am the mind reader if my IDEA!!?? is worth it, I'm back at work Wednesday. yours and......... |
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|