Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Lisa
 
Posts: n/a
Default Sum last 3 values

Good morning

I need to sum the last 3 values in a range that can
contain empty cells.

A1 2.2
A2
A3 4.3
A4 1.7
A5 2.2
A6
A7 3.4
A8
A9 1.0
A10

So I need to sum 1.0, 3.4 and 2.2. The closest I've come
is a formula that sums the row numbers themselves: 9, 7, 5
and not the values in the cells.

TIA
Lisa

  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

=SUM(A1000:INDEX(A:A,LARGE(IF(A2:A1000<"",ROW(A2: A1000)),3)))

entered nwith ctrl + shift & enter

--

Regards,

Peo Sjoblom


"Lisa" wrote in message
...
Good morning

I need to sum the last 3 values in a range that can
contain empty cells.

A1 2.2
A2
A3 4.3
A4 1.7
A5 2.2
A6
A7 3.4
A8
A9 1.0
A10

So I need to sum 1.0, 3.4 and 2.2. The closest I've come
is a formula that sums the row numbers themselves: 9, 7, 5
and not the values in the cells.

TIA
Lisa



  #3   Report Post  
Lisa
 
Posts: n/a
Default

Thank you! I was very close.

-----Original Message-----
One way

=SUM(A1000:INDEX(A:A,LARGE(IF(A2:A1000<"",ROW

(A2:A1000)),3)))

entered nwith ctrl + shift & enter

--

Regards,

Peo Sjoblom


"Lisa" wrote in

message
...
Good morning

I need to sum the last 3 values in a range that can
contain empty cells.

A1 2.2
A2
A3 4.3
A4 1.7
A5 2.2
A6
A7 3.4
A8
A9 1.0
A10

So I need to sum 1.0, 3.4 and 2.2. The closest I've come
is a formula that sums the row numbers themselves: 9,

7, 5
and not the values in the cells.

TIA
Lisa



.

  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Tue, 1 Mar 2005 10:34:24 -0800, "Lisa"
wrote:

Good morning

I need to sum the last 3 values in a range that can
contain empty cells.

A1 2.2
A2
A3 4.3
A4 1.7
A5 2.2
A6
A7 3.4
A8
A9 1.0
A10

So I need to sum 1.0, 3.4 and 2.2. The closest I've come
is a formula that sums the row numbers themselves: 9, 7, 5
and not the values in the cells.

TIA
Lisa


If your range of numbers is in, let us say A1:A100, then the following *array*
formula will do what you describe:

=SUM(TRANSPOSE(INDIRECT(ADDRESS(
LARGE(ISNUMBER(A1:A100)*ROW(
INDIRECT("1:100")),{1,2,3}),1))))

To enter an *array* formula, after typing or pasting it into the cell, hold
down <ctrl<shift while hitting <enter. XL will place braces {...} around
the formula.


--ron
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
Zero values in a log chart Joelle_Smith Charts and Charting in Excel 2 May 8th 23 03:42 AM
Hiding Values Below Z Axis Minimum Value on Axis Charts TryingToExcel Charts and Charting in Excel 1 February 18th 05 03:55 AM
How sum values in column B using values in column A as the conditi oldgrayelf Excel Worksheet Functions 5 February 4th 05 09:03 PM
Second serie doesn't use X-as values JackRnl Charts and Charting in Excel 1 January 20th 05 01:04 AM
Leading Zeros in Numeric Values DBavirsha Excel Worksheet Functions 6 January 4th 05 05:21 PM


All times are GMT +1. The time now is 11:03 PM.

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

About Us

"It's about Microsoft Excel"