#1   Report Post  
Mike
 
Posts: n/a
Default Calculation II

A few days ago I asked for a formula to auto-calculate a column for ATTRITION
as follows:
col A
row 1 10,000
row 2 8,000
row 3 6,000
row 4
row 5 __________
Attrition 4,000

The formula in cell [A6] is =A1-OFFSET(A1,COUNT(A1:A5)-1,0) confirmed with
Ctrl+Shift+Enter instead of just with Enter.

Now I need to put a simple SUM formula in cells [A1,A2,A3,A4,A5] that sum
columns B,C,D,E across, for example: cell [A1] would contain the formula
SUM(B1:E1), yet still have cell [A6] auto-calculate the same as before. When
I put formulas in cells [A1,A2,A3,A4,A5] the formula in cell [A6] doesn't
function anymore. Does anyone know how to make this work? Thanks
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Your formula doesn't (never) worked for me, but this does

=SUM(OFFSET(A1,1,,COUNT(A1:A5)-1,1))-A1

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Mike" wrote in message
...
A few days ago I asked for a formula to auto-calculate a column for

ATTRITION
as follows:
col A
row 1 10,000
row 2 8,000
row 3 6,000
row 4
row 5 __________
Attrition 4,000

The formula in cell [A6] is =A1-OFFSET(A1,COUNT(A1:A5)-1,0) confirmed with
Ctrl+Shift+Enter instead of just with Enter.

Now I need to put a simple SUM formula in cells [A1,A2,A3,A4,A5] that sum
columns B,C,D,E across, for example: cell [A1] would contain the formula
SUM(B1:E1), yet still have cell [A6] auto-calculate the same as before.

When
I put formulas in cells [A1,A2,A3,A4,A5] the formula in cell [A6] doesn't
function anymore. Does anyone know how to make this work? Thanks



  #3   Report Post  
Mike
 
Posts: n/a
Default

This is still not working how I need it to. I need the attrition to
auto-calculate by subtracting the last cell (row) entered from cell [A1]. As
in my example below, Attrition would be calculated by subtract cell [A3] from
[A1], since cell [A3] was the last row with a figure entered into it.
However, to make this even more complicated I now want to put a SUM formula
in cells [A1 thru A5], for example, the formula would be =SUM(B1:E1) for cell
[A1] and so forth. Is there a formula that will auto-calculate the Attrition
in a column of data,if that data is results of a formula?

"Mike" wrote:

A few days ago I asked for a formula to auto-calculate a column for ATTRITION
as follows:
col A
row 1 10,000
row 2 8,000
row 3 6,000
row 4
row 5 __________
Attrition 4,000

The formula in cell [A6] is =A1-OFFSET(A1,COUNT(A1:A5)-1,0) confirmed with
Ctrl+Shift+Enter instead of just with Enter.

Now I need to put a simple SUM formula in cells [A1,A2,A3,A4,A5] that sum
columns B,C,D,E across, for example: cell [A1] would contain the formula
SUM(B1:E1), yet still have cell [A6] auto-calculate the same as before. When
I put formulas in cells [A1,A2,A3,A4,A5] the formula in cell [A6] doesn't
function anymore. Does anyone know how to make this work? Thanks

  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

Mike,

How about this then?

=A1-INDIRECT(ADDRESS(MAX((A1:A5<0)*ROW(A1:A5)),1))

It is an array formula, so commit with Ctrl-Shift-Enter.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Mike" wrote in message
...
This is still not working how I need it to. I need the attrition to
auto-calculate by subtracting the last cell (row) entered from cell [A1].

As
in my example below, Attrition would be calculated by subtract cell [A3]

from
[A1], since cell [A3] was the last row with a figure entered into it.
However, to make this even more complicated I now want to put a SUM

formula
in cells [A1 thru A5], for example, the formula would be =SUM(B1:E1) for

cell
[A1] and so forth. Is there a formula that will auto-calculate the

Attrition
in a column of data,if that data is results of a formula?

"Mike" wrote:

A few days ago I asked for a formula to auto-calculate a column for

ATTRITION
as follows:
col A
row 1 10,000
row 2 8,000
row 3 6,000
row 4
row 5 __________
Attrition 4,000

The formula in cell [A6] is =A1-OFFSET(A1,COUNT(A1:A5)-1,0) confirmed

with
Ctrl+Shift+Enter instead of just with Enter.

Now I need to put a simple SUM formula in cells [A1,A2,A3,A4,A5] that

sum
columns B,C,D,E across, for example: cell [A1] would contain the formula
SUM(B1:E1), yet still have cell [A6] auto-calculate the same as before.

When
I put formulas in cells [A1,A2,A3,A4,A5] the formula in cell [A6]

doesn't
function anymore. Does anyone know how to make this work? Thanks



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 with calculation Jim Excel Worksheet Functions 0 November 17th 04 10:52 PM
time-clock calculation dokliver Excel Worksheet Functions 3 October 28th 04 09:07 PM


All times are GMT +1. The time now is 05:05 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"