When you use a formula like LOOKUP, VLOOKUP with last condition TRUE or MATCH with last condition 1 or omitted, i.e. funktions that looks for the largest value less than or equat to lookup value in a sorted list, you will, if you use a lookup value larger than any value in the range, get the last numerical value as return.
Sorry Fairwinds I'm still lost, I get the concept of the lookup finding the last value by using the higest number, but I'm stuck on why it returns =SUM($A$1:$A$27)
This is the outcome if I evaluate the formula:
E1: =SUM(A1:INDEX(A:A,MATCH(9.99999999999999E+307,A:A)))
E2: =SUM($A$1:INDEX($A:$A,27))
(q) why do the references become fixed ($)?
E3: =SUM($A$1:$A$27)
(q) INDEX($A:$A,27) returns a value of 1, why does it create cell reference $A$27?
I would love to understand the logic behind this, far more useful than using the COUNTA() since COUNTA() is constrained by empty cells within the range.
does actually not return a value when used in a formula like this. It returns a range, in this case A27. (If you put the formula in the sheet it will return the contents of that range i.e. 1).
So in this case the formula should be evaluated as:
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.