I use this macro to rank the 15 highest numbers in a range of values.
It works fine if the cell contain a value i.e. 18298.9 but if it’s a formula like "D4=C4*B4"
I get “Run-time error ‘91’: Object variable or With block variable not set”
I’ve tried to add “LookIn:=xlFormulas” and “LookAt:=xlPart” but I still get the same error message.
Of course I could add a helper column converting formulas to values but I was hoping to find a solution as the Large function works with formulas in a “normal” Excel environment.
Alf
Bookmarks