Darkshine31
New Member
- Joined
- Oct 10, 2024
- Messages
- 8
- Office Version
- 365
- Platform
- Windows
INDEX(E504:H504,1,MATCH(MIN(E520:H520),E520:H520,0))
I think you have your ROW and COLUMN references mixed up in the INDEX function.
Try this for that part:
You want to pull from the first row since you only have one row in your INDEX range (hence the 1 in the second argument, and whatever column the match is found in.Excel Formula:INDEX(E504:H504,1,MATCH(MIN(E520:H520),E520:H520,0))
Snap1 - Working (attachment) is the original working formulaI would have to see your other data and example. Maybe there you were dealing with a single-column, multi-row range, where here you have a single-row, multi-column range.
In your original formula, since you had the calculation in the row argument, you were literally telling it to return the second row of a one row range, which is not possible, and hence the REF error!
I think I may have missed that your first image in your first post is the one that works. I didn't realize that was the one you were talking about, as it did not look like the same formula.The first one working was pure luck. The match was in the first column, so INDEX(range, column, 1) was equivalent to INDEX(range, 1, 1) which works with a 1 row range. As soon as the match is in a different column, you're passing a number greater than 1 as the row argument.
Right! Now I completely understand. Thank you RoryA.The first one working was pure luck. The match was in the first column, so INDEX(range, column, 1) was equivalent to INDEX(range, 1, 1) which works with a 1 row range. As soon as the match is in a different column, you're passing a number greater than 1 as the row argument.
That's perfectly fine Joe4, I have appreciated your continued assistance.I think I may have missed that your first image in your first post is the one that works. I didn't realize that was the one you were talking about, as it did not look like the same formula.
When I originally opened the PDF, the menu options covered up the portion of your formula with the INDEX/MATCH formula.
Thanks for clearing it up, Rory!