Retrieve value from a cell

Alex Sanchez

New Member
Joined
Jun 26, 2007
Messages
49
Hello,

What I have is a Check Register and I want to have the current balance on the side.
I want the Current Balance on H15. The current balance is on G12. So, on H15 I tried =G12, but this will change as I add more transaction. Is there a way I can have my current balance updated as I add transactions?

Thanks,
Alex
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Is the current balance simply the last entry (bottom) of column G?

Try

=LOOKUP(9.99999999999999E+307, G:G)
 
Upvote 0
If you are always trying to pull the last value from column G, use this:

=LOOKUP(9.99999999999E+307,G:G)
 
Upvote 0
Thank you jonmo1. It worked.
If it is not too much to ask, could you please explain the formula a little bit? What are all those 9s for and the +307?

Thanks again,
Alex
 
Upvote 0
9.99999999999999E+307 is just scientific notation of a very large number.
I'm no expert on scientific notation, but it's something like
9.99999etc Multiplied by (10+307 zeros)
It's listed in the help files as the largest number a cell can hold.
So it's garunteed to be equal to or larger than ANY number in your range.

Lookup does a binary type search, so since the lookup # is larger than any number in the range, it then returns the last number.

Hope that helps
 
Last edited:
Upvote 0
Hello,

What I have is a Check Register and I want to have the current balance on the side.
I want the Current Balance on H15. The current balance is on G12. So, on H15 I tried =G12, but this will change as I add more transaction. Is there a way I can have my current balance updated as I add transactions?

Thanks,
Alex
Try this "KISS" version:

=LOOKUP(1E100,G:G)

If you don't get the same result as the pedantic version:

=LOOKUP(9.99999999999999E+307, G:G)

I'll buy your beer for the rest of your life!
:beerchug:
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

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