How to get MAX number from a dynamic list

saroo970

New Member
Joined
Oct 4, 2021
Messages
17
Office Version
  1. 2019
Platform
  1. Windows
Dear Excel Masters,
Data is from column A2 to O2 (green fill), on the other side is the calculations, T2 and U2 is a drop-down list menu which has months value from Jan to Dec which return the value from the data on the right side, how to get the MAX number for the selected months (in my example I selected May and July from the drop-down list so how to get the MAX of May, June, and July. This should be a dynamic change means the MAX change if the month change in the drop-down list.
 

Attachments

  • Capture01.jpg
    Capture01.jpg
    153.7 KB · Views: 14

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
As long as all of the months are text, this will work. If they are proper dates formatted as months then it may fail.
Excel Formula:
=MAX(INDEX(D2:O2,MATCH($T$1,$D$1:$O$1,0)):INDEX(D2:O2,MATCH($U$1,$D$1:$O$1,0)))
 
Upvote 0
Solution
I am soooooo grateful, you guys are stars. Works like charm. Millions of thanks.
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,619
Members
449,240
Latest member
lynnfromHGT

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