Sep 06 2022 11:11 AM
Is there a way to find the cell that a MIN formula is referencing? Tried using the CELL function's "address" info type, but it results in an error. The MIN formula I'm using is huge, and I'm trying to find which cell it's referencing so I can use that cell to index other info. Any help on the subject would be greatly appreciated.
Sep 06 2022 11:23 AM
=INDEX($C$2:$C$21,MATCH(MIN($B$2:$B$21),$B$2:$B$21,0))
If you want the cell with the smallest value index other info you can try INDEX and MATCH.
Sep 06 2022 11:25 AM
Sep 06 2022 11:28 AM
From what I read about CELL, it won't do what you want to do. However, assuming your MIN is referring to a range of cells (either a column or a row), something like this can work to find--in this case--the row within the designated array.
=MATCH(MIN(F7:F11),F7:F11,0)
And with that you could index other things from the same row in a two-dimensional array. (Assumption: only one cell in the full array contains that MIN value....
Sep 06 2022 11:31 AM
Sep 06 2022 11:36 AM
Yes...my first reply was clearly crossing the exchange you had with another similar reply. Reading your MIN formula--you said it was "huge" but that was an understatement!!!!!!!!--makes me wonder how the data are arrayed in the first place, and whether or not there's a way to reorganize it.
That aside, are you familiar with the relatively new FILTER function? Without knowing how your data are arrayed, this may totally miss the mark, but perhaps FILTER, in conjunction with the MIN function could at least find the row(s) that contain that MIN value.
Here's a link to a good resource of FILTER.
Sep 06 2022 11:44 AM
Your model needs a rework.
It is probably some kind of crosstabular table.
But you need a record list.
Sep 06 2022 11:46 AM
Sep 06 2022 11:54 AM
There is a pattern in your formula and it should be possible to simplify the formula and return the cell reference with a formula. However i'm unsure if this can be done without seeing the sheet.
Without a formula or as a makeshift solution you can use evaluate formula which shows the cell reference. This would be a manual solution which can be done in little time.
Sep 06 2022 11:55 AM
A record list = a single set of records, one per entity per product (or whatever makes sense). A well defined table. Consistent use of data types within each column, no blanks between rows....that kind of stuff.
Sep 06 2022 12:01 PM
Sep 06 2022 12:07 PM
Paste your 30 vendor lists in continuous columns and add an extra column for the vendor name.
Now it will be easy to determine the min value and the corresponding vendor.