How to return the formula and/or cell reference for the last cell in a column?

BillPeterson

New Member
Joined
Jan 16, 2022
Messages
22
Office Version
  1. 365
Platform
  1. Windows
I'm using the following to give me the last value in a column from the "Checking" tab.

Excel Formula:
=LOOKUP(2,1/(Checking!D:D<>""),Checking!D:D)

How can I get info on whatever cell that data comes from? In this particular case the formula for that cell is as follows:

Excel Formula:
=Checking!D2587

If I could just get the cell reference, I could rebuild the formula using INDIRECT. Alternatively, maybe there's a way to just display the formula itself? Thanks in advance for your help! You guys rock!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
This is what you need?

Excel Formula:
=INDIRECT("Checking!D" & LOOKUP(2,1/(Checking!D:D<>""),ROW(Checking!D:D)))
 
Upvote 0
How about
Excel Formula:
=LOOKUP(2,1/(Checking!D:D<>""),formulatext(Checking!D:D))
 
Upvote 0
This is what you need?

Excel Formula:
=INDIRECT("Checking!D" & LOOKUP(2,1/(Checking!D:D<>""),ROW(Checking!D:D)))

This returns the value itself, essentially producing the same result as: =LOOKUP(2,1/(Checking!D:D<>""),Checking!D:D)

What I would like to know is which row the last value is on. Thank you for the help regardless!!!
 
Upvote 0
This is what you need?

Excel Formula:
=INDIRECT("Checking!D" & LOOKUP(2,1/(Checking!D:D<>""),ROW(Checking!D:D)))

Yes!! It contains what I was looking for and helped me achieve the objective, which is below. Thank you!!

Excel Formula:
=CONCATENATE("'=Checking!D"&LOOKUP(2,1/(Checking!D:D<>""),ROW(Checking!D:D)))
 
Last edited:
Upvote 0
Solution
Yes!! It contains what I was looking for and helped me achieve the objective, which is below. Thank you!!


in that case
VBA Code:
="Checking!D" & LOOKUP(2,1/(Checking!D:D<>""),ROW(Checking!D:D))
 
Upvote 0

Forum statistics

Threads
1,215,301
Messages
6,124,142
Members
449,144
Latest member
Rayudo125

We've detected that you are using an adblocker.

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.
Go back
Back
Top