VLOOKUP formula help for high/low numbers of each day

redspanna

Well-known Member
Joined
Jul 27, 2005
Messages
1,602
Office Version
  1. 365
Platform
  1. Windows
Hi all

Book1
ABCD
1Sat 06-06-20Sun 07-06-20
2KEVIN1921
3PAUL1719
4PETER2118
5ALAN1813
6JEFF1920
7TONY1515
8SIMON1413
9
10HIGH2121
11PETERKEVIN
12LOW1413
13SIMONALAN
Sheet1
Cell Formulas
RangeFormula
C10:D10C10=MAX(C2:C8)
C12:D12C12=MIN(C2:C8)


Can anybody suggest a formula that will look down the respective column for each day and provide the name of the person stored in column A with the highest number for that day and place into row 11 of that particular day. Then do same for the lowest and place in to row 13.

So for example, in my table above, for 6-6-20, the highest number is 21 and this was Peter, the lowest was 14 so this was Simon...

any help appreciated

TIA
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Can you post how you want the results presented if multiple people have equal highest/lowest for a date?
Example: Can you post data and results again changing C2 to 21 and C6 & C7 to 14? (Or advise if this is not possible with your data.)
 
Upvote 0
Hi, I had the same remark as @Peter_SSs
Suggestion to handle "ties" below.
Book1
ABCD
16/06/20207/06/2020
2KEVIN1921
3PAUL1719
4PETER2118
5ALAN1813
6JEFF1920
7TONY1515
8SIMON1413
9HIGHPETERKEVIN
10  
11LOWSIMONALAN
12 SIMON
Sheet1
Cell Formulas
RangeFormula
C9:D10C9=IF(COUNTIF(C$2:C$8,MAX(C$2:C$8))<ROW(C1),"",INDEX($A$2:$A$8,AGGREGATE(15,6,(ROW(C$2:C$8)-1)/(C$2:C$8=MAX(C$2:C$8)),ROW(C1))))
C11:D12C11=IF(COUNTIF(C$2:C$8,MIN(C$2:C$8))<ROW(C1),"",INDEX($A$2:$A$8,AGGREGATE(15,6,(ROW(C$2:C$8)-1)/(C$2:C$8=MIN(C$2:C$8)),ROW(C1))))
 
Upvote 0
I have another question that I forgot to ask: What version of Excel?

I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
I have another question that I forgot to ask: What version of Excel?

I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Appreciate your help and good idea to update my account details - thanks
 
Upvote 0
Thanks for updating your profile. (y)

I would suggest alternative formulas for two reasons:
  1. These are shorter, with less function calls.
  2. The post #3 formulas will return incorrect results if subsequently any rows are added at the top of the worksheet. These will not.

20 06 07.xlsm
ABCD
16/06/20207/06/2020
2KEVIN1921
3PAUL1719
4PETER2118
5ALAN1813
6JEFF1920
7TONY1515
8SIMON1413
9HIGHPETERKEVIN
10  
11LOWSIMONALAN
12 SIMON
redspanna (2)
Cell Formulas
RangeFormula
C9:D10C9=IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW(C$2:C$8)/(C$2:C$8=MAX(C$2:C$8)),ROWS(C$9:C9))),"")
C11:D12C11=IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW(C$2:C$8)/(C$2:C$8=MIN(C$2:C$8)),ROWS(C$11:C11))),"")
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,390
Members
448,957
Latest member
Hat4Life

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top