VLOOKUP and Max Function to return multiple values

beaverx37

New Member
Joined
Feb 13, 2023
Messages
2
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. Web
1676313409595.png


I'm trying to see which day of the week had the most sales each month. Column A is # of Sales. I'm currently using this formula =VLOOKUP(MAX(A$44:A$50),A$44:B$50,2,FALSE)

Because this formula can only return one value, it will return "Sunday" since it is the first in column B with highest value, even though it is equal to "Tuesday"

How can I have it tell me Sunday and Tuesday both were the highest for that month?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi & welcome to MrExcel.
Is this for Google Sheets or for Excel?
 
Upvote 1
For Excel 365 see formula in cell E46 and for Excel 2016 see formula in G46.
Can't help with Google sheet.

Book2
ABCDEFG
44
45SalesJanuaryExcel 365Excel 2016
469SundaySundaySunday
473MondayTuesdayTuesday
489TuesdayFridayFriday
493Wednesday 
504Thursday 
519Friday
524Saturday
Sheet1
Cell Formulas
RangeFormula
E46:E48E46=FILTER(B46:B52,A46:A52=MAX($A$46:$A$52))
G46:G50G46=IFERROR(INDEX($B$46:$B$52,AGGREGATE(15,6,(ROW($B$46:$B$52)-ROW($B$46)+1)/(MAX($A$46:$A$52)=$A$46:$A$52),ROWS($G$46:G46))),"")
Dynamic array formulas.
 
Upvote 0
It's currently in a google sheet. But I use it in Excel too.
Ok, how about, I think this should work in Sheets as well as Excel.
Excel Formula:
=TEXTJOIN(", ",,FILTER(B$44:B$50,A$44,A$50=MAX(A$44:A$50)))
 
Upvote 0

Forum statistics

Threads
1,223,943
Messages
6,175,546
Members
452,652
Latest member
eduedu

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