Transfer running total to another cell

pedro-egoli

Well-known Member
Joined
Apr 25, 2004
Messages
1,217
Office Version
  1. 2016
Platform
  1. Windows
In column Z22:Z400 I have a total based on data in columns to the left of it.

They are in effect the running total of negatives and positives.

What formula can I use to transfer the last balance to cell E4 on same sheet.

Thanks

Pedro
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
In e4, try this formula:

=lookup(9.999E+307,z22:z400)

This will give you the bottom-most numerical value in the range in column Z. Is that what you are looking for?
 
Upvote 0
Thanks Taigonvinda,
Works perfectly.

I wish it were the maximum but it goes up and down so need the latest .

Can you explain the 9.999E + 307 bit I had tried Lookup but got lost on what they wanted me to input.

Pedro
 
Upvote 0
Aladin Aluryek has posted a couple of very good explanations to this that are detailed and insightful, but unfortunately I have only a minute and don't have the links handy - hopefully someone else provides, they are worth a good read.

In short, though, lookup() expects the array to be sorted ascending and returns the largest number that is equal to or less than the value you are looking for (so does match(,,1) as opposed to match(,,0); match could be used the same way). It looks through the list in column Z expecting that the lower it goes, the higher the number will be. So, when it is looking for a very huge number that it will never find, then what it does is go to the bottom of the list and, not finding the huge value you were looking for, it returns the last number in the list (it presumes that the last number is the largest one in the list, although your list is not sorted so that may not be true). Clear as mud?
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,283
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