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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,043
Messages
6,122,816
Members
449,095
Latest member
m_smith_solihull

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