ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Need formula for a fixed cell minus last entry on ongoing log (https://www.excelbanter.com/excel-worksheet-functions/35673-need-formula-fixed-cell-minus-last-entry-ongoing-log.html)

Mari C

Need formula for a fixed cell minus last entry on ongoing log
 
Hi all - I need a formula so that I get the difference between the first
entry and the last entry - an ongoing log. How do I do that

thanks

Mari

Kassie

Hi Mari

Say your first entry is in C2, then in D3 enter =IF(C3="","",$C$2-C3) and
copy down as far as you want to go. You will then always subtract the last
entry from the first one, so that in D20, the formula will subtract C20 from
C2.

However, if you want the difference between the last 2 entries every time,
then enter in D3 =IF(C3="","",C2-C3) and copy down. In this case in row 20
the formula will subtract C20 from C19.

"Mari C" wrote:

Hi all - I need a formula so that I get the difference between the first
entry and the last entry - an ongoing log. How do I do that

thanks

Mari


Biff

Hi!

First entry in A1.

Last entry in An

=A1-LOOKUP(9.99999999E+307,A:A)

Biff

"Mari C" <Mari wrote in message
...
Hi all - I need a formula so that I get the difference between the first
entry and the last entry - an ongoing log. How do I do that

thanks

Mari




Mari C

Thanks biff - after I limited the size of the column I was able to enter it
in the bottom of the column
Mari

"Biff" wrote:

Hi!

First entry in A1.

Last entry in An

=A1-LOOKUP(9.99999999E+307,A:A)

Biff

"Mari C" <Mari wrote in message
...
Hi all - I need a formula so that I get the difference between the first
entry and the last entry - an ongoing log. How do I do that

thanks

Mari





Mari C

Hi Kassie

I needed to enter 20 columns so I wanted the sum at the bottom of the column
- biffs formula worked better for the layout of the page but yours was great
too. thanks a bunch

"Kassie" wrote:

Hi Mari

Say your first entry is in C2, then in D3 enter =IF(C3="","",$C$2-C3) and
copy down as far as you want to go. You will then always subtract the last
entry from the first one, so that in D20, the formula will subtract C20 from
C2.

However, if you want the difference between the last 2 entries every time,
then enter in D3 =IF(C3="","",C2-C3) and copy down. In this case in row 20
the formula will subtract C20 from C19.

"Mari C" wrote:

Hi all - I need a formula so that I get the difference between the first
entry and the last entry - an ongoing log. How do I do that

thanks

Mari


Biff

You're welcome. Thanks for the feedback!

Biff

"Mari C" wrote in message
...
Thanks biff - after I limited the size of the column I was able to enter
it
in the bottom of the column
Mari

"Biff" wrote:

Hi!

First entry in A1.

Last entry in An

=A1-LOOKUP(9.99999999E+307,A:A)

Biff

"Mari C" <Mari wrote in message
...
Hi all - I need a formula so that I get the difference between the
first
entry and the last entry - an ongoing log. How do I do that

thanks

Mari








All times are GMT +1. The time now is 06:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com