Perhaps you could try using functions like INDEX()
instead of using volatile functions.
A friendly suggestion
OFFSET()
is a flexible function and it can point to a
different-sized range that is calculated on-the-fly. It is a
volatile function. If you go to a completely unrelated cell and enter a number, all of the OFFSET()
functions will calculate—even if
that cell has nothing to do with.
It has been found, Excel is very careful to spend time calculating
the cells that needs to be calculated. But once you use the
OFFSET()
, all of the OFFSET()
cells, plus everything downline from
the OFFSET()
, starts calculating after every change in the
worksheet.
Why it matters ? INDEX()
is not volatile. You enjoy all of the
flexible goodness of OFFSET()
without the time-sucking recalculations over and over.
Here is shown below, what you can try:
Getting the MIN values.
• Formula used in cell AB7
=AGGREGATE(15,6,(Q7:Z7)/ISNUMBER(Q7:Z7),1)
Note: I have used 15
which refers to SMALL
instead of 5
with an ISNUMBER()
Function which ignores all the text values as well as #N/A()
as well. Thus, giving the Minimum values of each office location.
Getting the Merchant Name,
• Formula used in cell AC7
=INDEX(Q7:Z7,,MATCH(AB7,Q7:Z7,0)+1)
Note: The MATCH()
returns the relative position of the MIN value column wise, and to get the Merchant we are simply adding 1 to it, and wrapping the whole within INDEX()
.
Getting the Depot Name
• Formula used in cell AD7
=INDEX($Q$5:$Z$5,,MATCH(AB7,Q7:Z7,0))
Note: Same as above the MATCH()
returns the min value position, and then we are wrapping it within INDEX()
to get DEPOT for the respective MIN
values.
Also, here for the Depot cells I have not used Merge & Center instead have used the Alignment as Center Across Selection, that way it much easier to use a formula and not resorting to complicated ones. Avoid using Merge & Center .
Note: All the above formulas used, you need to fill down, and it has been assumed you may not have duplicate Min values. If you get duplicate values for Rates then the formulas for Merchant & Depot will change.