Show the value of the last cell with a formula in an excel report
It already happened that I needed to know the value of the last cell for a column or for a row and this formula will give me the good answer.
When I use the formula ?
To find the value of the last cell, either in a column or in a row.
How to use the formula ?
The formula in this topic is with "," so depending of the operating system of your PC, the formula should have ";" instead of ",".
How is/are the formula(s) ?
=LOOKUP()
For a column:
=LOOKUP(2,1/(A:A<>""),A:A)
Explanation:
- A:A<>"" is to look in the column A for the last filled cell
- A:A is to display the value of the last filled cell
In case if I want the value of the column B by looking into the column A, I just need to change A:A (the second one) by B:B.
For a row:
=LOOKUP(2,1/(2:2<>""),2:2)
It works as the column, here it is looking into the row 2.
Interesting Topics
-
Be successfully certified ITIL 4 Managing Professional
Study, study and study, I couldn’t be successfully certified without studying it, if you are interested...
-
Be successfully certified ITIL 4 Strategic Leader
With my ITIL 4 Managing Professional certification (ITIL MP) in the pocket, it was time to go for the...
-
Hide visual and change background color based on selection
Some small tricks to customize the background colour of a text box...
-
Stacked and clustered column chart or double stacked column chart
In excel, I use a lot the combination of clustered and stacked chart...