How To Reference Last Value in Column (To Show In Another Cell?)

Dhira

Board Regular
Joined
Feb 23, 2006
Messages
67
Office Version
  1. 2021
Platform
  1. Windows
For info purposes, I have a column O with formulas, but it only shows a value if there are other valuse in the row. Otherwise, it shows a blank cell (but there's a formula in the cell).

The attempt I made with a VLOOKUP was:

=LOOKUP(2,1/(O:O<>""),O:O)
and
=LOOKUP(2,1/(NOT(ISBLANK(O:O))),O:O)

Neither one works, as I get a "#N/A" error ("Did not find value '2' in LOOKUP evaluation.")
What formula can I use to reference & show the value in the last cell?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

For the values that are in column O, are they
- numerical?
- text?
- could be some of each?
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

For the values that are in column O, are they
- numerical?
- text?
- could be some of each?
I have Microsoft Office 2021, but I'm also using the formula in google sheets.

The values are numerical (in dollars), but like I said the column has formulas that only show a value if there's a calculation in the row.
 
Upvote 0
Plot twist - the formula does work in Excel, but not in Google Sheets 🤔

Turns out in Google sheets, the formula is different:

=INDEX(O:O,MATCH(100^100,O:O))

Weird, but this works.

Thanks for listening.
 
Upvote 0
Solution
Since this really seems to be a Google Sheets question, I have moved it to the appropriate forum.
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,795
Members
449,468
Latest member
AGreen17

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