Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default ME, STRANGE SUMMATION

Hi,

I can have the number 1 in several cells in a range of cells A1 to Z1, but
it is always filled starting from cell A1 and gradually to the right. May
also skip some cells.
Ex.
A1 to C1 may be blank, D1 is 1, then E1 to J1 is blank, then K1 is 1, and so
on.
I need a formula which adds up these 1s to the last position where a 1 is
found.

Summing up the cells till Z1 is not an option, since later, in another
formula I will find the sum of all the 1s AFTER the last 1 which was summed
up in the first formula.
This second formula will be relatively easy after I get the first formula.

I hope this was well understood.

Thanks in advance guys.
Berj

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default ME, STRANGE SUMMATION

I am not sure I get why, but try this array formula

=SUM(A1:INDEX(A1:Z1,,MIN(IF((A1:Z1<"")*(A1:Z1<1) ,COLUMN(A1:Z1)))-1))

--
__________________________________
HTH

Bob

"Berj" wrote in message
...
Hi,

I can have the number 1 in several cells in a range of cells A1 to Z1, but
it is always filled starting from cell A1 and gradually to the right. May
also skip some cells.
Ex.
A1 to C1 may be blank, D1 is 1, then E1 to J1 is blank, then K1 is 1, and
so
on.
I need a formula which adds up these 1s to the last position where a 1 is
found.

Summing up the cells till Z1 is not an option, since later, in another
formula I will find the sum of all the 1s AFTER the last 1 which was
summed
up in the first formula.
This second formula will be relatively easy after I get the first formula.

I hope this was well understood.

Thanks in advance guys.
Berj



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default ME, STRANGE SUMMATION

Try this:

=SUM(A1:INDEX(A1:Z1,MATCH(99^99,A1:Z1)))

This totals to the last numeric cell.

Same result as
=Sum(A1:Z1)

Care to share your reason why the simple Sum formula does not work for you?
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Berj" wrote in message
...
Hi,

I can have the number 1 in several cells in a range of cells A1 to Z1, but
it is always filled starting from cell A1 and gradually to the right. May
also skip some cells.
Ex.
A1 to C1 may be blank, D1 is 1, then E1 to J1 is blank, then K1 is 1, and

so
on.
I need a formula which adds up these 1s to the last position where a 1 is
found.

Summing up the cells till Z1 is not an option, since later, in another
formula I will find the sum of all the 1s AFTER the last 1 which was

summed
up in the first formula.
This second formula will be relatively easy after I get the first formula.

I hope this was well understood.

Thanks in advance guys.
Berj


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default ME, STRANGE SUMMATION

=SUM(1:1)


"Berj" wrote:

Hi,

I can have the number 1 in several cells in a range of cells A1 to Z1, but
it is always filled starting from cell A1 and gradually to the right. May
also skip some cells.
Ex.
A1 to C1 may be blank, D1 is 1, then E1 to J1 is blank, then K1 is 1, and so
on.
I need a formula which adds up these 1s to the last position where a 1 is
found.

Summing up the cells till Z1 is not an option, since later, in another
formula I will find the sum of all the 1s AFTER the last 1 which was summed
up in the first formula.
This second formula will be relatively easy after I get the first formula.

I hope this was well understood.

Thanks in advance guys.
Berj

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
Summation Operator Sapphy Excel Worksheet Functions 3 August 8th 08 05:08 PM
Summation [email protected] Excel Discussion (Misc queries) 2 November 28th 07 05:12 PM
Summation over a range P25_Sys_Arch Excel Worksheet Functions 2 September 21st 07 08:15 AM
summation ExcelQuestion Excel Worksheet Functions 11 June 27th 07 02:28 AM
Summation from a to b jeblunk Excel Worksheet Functions 3 December 4th 05 02:14 PM


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