#1   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

If A6 is the attrition cell and

[1] if A1 has always a figure (never empty)...

=A1-LOOKUP(9.99999999999999E+307,A1:OFFSET(A6,-1,0,1,1))

[2] otherwise...

=INDEX(A:A,MATCH(TRUE,ISNUMBER(A1:OFFSET(A6,-1,0,1,1)),0))-LOOKUP(9.99999999999999E+307,A1:OFFSET(A6,-1,0,1,1))

which you need to confirm with control+shift+enter instead of just with
enter.

If a non-A cell, say C1, is the attrition cell:

=OFFSET(A1,MATCH(TRUE,ISNUMBER(A1:INDEX(A:A,MATCH( 9.99999999999999E+307,A:A))),0)-1,0,1,1)-LOOKUP(9.99999999999999E+307,A:A)

which must be confirmed with control+shift+enter instead of just with enter.


Mike wrote:
I have the following:
col A
row 1 15,000
row 2 12,500
row 3 10,000
row 4
row 5 _______
Attrition= 5,000 - The formula in this cell would be the last row with
a figure (in this example row 3) subtracted from the figure in row 1. If row
5 had a figure then the formula would subtracted row 5 from row 1. Does
anyone know a formula for this? Thanks in advance.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I use a check box to accept a calculation Joejoethecrackman Excel Discussion (Misc queries) 5 March 22nd 05 08:47 PM
spreadsheets, calculation cooch Excel Worksheet Functions 1 December 26th 04 09:20 PM
Auto Calculation Automatically Turns Off???? Jeff K. Excel Discussion (Misc queries) 2 December 15th 04 01:39 AM
Help on automatically ending a calculation Jim Excel Worksheet Functions 0 November 11th 04 09:42 PM
time-clock calculation dokliver Excel Worksheet Functions 3 October 28th 04 09:07 PM


All times are GMT +1. The time now is 06:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"