TestableEmu263
New Member
- Joined
- May 19, 2022
- Messages
- 9
- Office Version
- 2016
- Platform
- Windows
Hey everyone, New to VBA and I want to figure out how to create a function that will take the maximum of a range that the user can define via a single cell reference. For example, If I have a list of 10 items and I want the maximum of the first 5 items, I can simply pick that range with the built in max function in excel. But if that list of items is variable and it changes to say 24 items and I instead want to take a max of the first 12 items, how can I go about doing that so that I don't have to manually change the range each time? Thanks for the help