INDEX and MAX gets Invalid data type match
I have the reference to the MAX working correctly and pulls the newest date, but when I add it to the index to pull the information from the text field in the associate sheet I get invalid data type. Am I missing something? Can you advise?
=INDEX({Display by Tech Range 2}, MAX({Display by Tech Range 1}), 0)
Display by Tech Range 2 is text/number
Display by Tech Range 1 is create date
The display column is text/number. The goal is to do a compare and set a yes/no check box for establishing a user specified report filter.
Best Answer
-
There are a couple of issues...
You indicated the MAX function is pulling a date, but you have it in a position within the INDEX function that requires a numerical value. You also have 0 set as the column number to pull from. There is no column 0. At the very least you would need to change this to a 1.
Try this instead...
=INDEX({Display by Tech Range 2}, MATCH(MAX({Display by Tech Range 1}), {Display by Tech Range 1}, 0))
Answers
-
There are a couple of issues...
You indicated the MAX function is pulling a date, but you have it in a position within the INDEX function that requires a numerical value. You also have 0 set as the column number to pull from. There is no column 0. At the very least you would need to change this to a 1.
Try this instead...
=INDEX({Display by Tech Range 2}, MATCH(MAX({Display by Tech Range 1}), {Display by Tech Range 1}, 0))
-
Thank you!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!