Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Sum above columns until non-numeric encountered

How to write such a formula?

In other words it stops summing the #s when the column header is encountered. There may be multiple column headers. Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default Sum above columns until non-numeric encountered

On Mon, 29 Jul 2013 15:10:03 +0100, stevenswj wrote:


How to write such a formula?

In other words it stops summing the #s when the column header is
encountered. There may be multiple column headers. Thanks!

Your question is not clear.

For example, if this is what you are looking for:

$A$1: Label1 0
$A$2: 1 10
$A$3: 2 9
$A$4: 3 7
$A$5: 4 4
$A$6: 0
$A$7: 0
$A$8: Label 2 0
$A$9: 5 35
$A$10: 6 30
$A$11: 7 24
$A$12: 8 17
$A$13: 9 9
$A$14: Label 3 0
$A$15: 16
$A$16: 14 16
$A$17: 2 2

Try this formula:

This formula must be **array-entered**:

C1: =SUM(OFFSET($A1,0,0,IFERROR(MATCH(TRUE,ISTEXT(A1:$ A$1000),0),1000)))

and fill down as far as required. "1000" should be some number representative of the maximum number of rows this data table might possibly contain

----------------------------------------

To **array-enter** a formula, after entering
the formula into the cell or formula bar, hold down
<ctrl<shift while hitting <enter. If you did this
correctly, Excel will place braces {...} around the formula.
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
Why are my spreadsheet columns numeric instead of alpha? gretchen Excel Discussion (Misc queries) 4 June 1st 07 06:02 PM
both columns and rows are numeric.want the columns to be alpha Amy Setting up and Configuration of Excel 2 September 26th 06 09:16 PM
Conditional Formulae with non-numeric values across two columns kbear Excel Discussion (Misc queries) 2 January 29th 06 08:40 PM
Sorting more than 3 columns of Numeric data. JMax Excel Discussion (Misc queries) 3 December 16th 05 06:54 PM
HOW DO I CHANGE COLUMNS FROM NUMERIC TO ALPHA HEADINGS? Barry Excel Discussion (Misc queries) 1 August 17th 05 05:09 PM


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