#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Sum of data

Dear All,

I have column with numeric data, I want the sum when value 0 come in column
then next sum until the value is 0.

Thnx & Regards
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Sum of data

Hi,

It would be nice to see a sample of the data with what you want as the result.

Possible if your data is in column A and the 0's are in column B

=SUMIF(B1:B100,0,A1:A100)

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire

"TFMR" wrote:

Dear All,

I have column with numeric data, I want the sum when value 0 come in column
then next sum until the value is 0.

Thnx & Regards

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Sum of data

Hi Shane,

Here is an example:

A B C
AS 1
AD 6
AD 8
AE 0 15
AE 2
AG 5
AG 1
AG 0 8
AE 9
AR 4
AA 0 13

Hope it will clear the concept.

"Shane Devenshire" wrote:

Hi,

It would be nice to see a sample of the data with what you want as the result.

Possible if your data is in column A and the 0's are in column B

=SUMIF(B1:B100,0,A1:A100)

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire

"TFMR" wrote:

Dear All,

I have column with numeric data, I want the sum when value 0 come in column
then next sum until the value is 0.

Thnx & Regards

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sum of data

Assume the numbers start in cell B1.

Enter this formula in C2 and copy down as needed:

=IF(B2<0,"",SUM(B$1:B2)-SUM(C$1:C1))

--
Biff
Microsoft Excel MVP


"TFMR" wrote in message
...
Hi Shane,

Here is an example:

A B C
AS 1
AD 6
AD 8
AE 0 15
AE 2
AG 5
AG 1
AG 0 8
AE 9
AR 4
AA 0 13

Hope it will clear the concept.

"Shane Devenshire" wrote:

Hi,

It would be nice to see a sample of the data with what you want as the
result.

Possible if your data is in column A and the 0's are in column B

=SUMIF(B1:B100,0,A1:A100)

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire

"TFMR" wrote:

Dear All,

I have column with numeric data, I want the sum when value 0 come in
column
then next sum until the value is 0.

Thnx & Regards



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Sum of data

Here, I offer you a solution with macro
1.Right click toolbarselect control box
2.From the control box that appears on the screen select a command button and
draw it on your sheet
3.Double click the command button to open the code window and paste following
codes
#
Private Sub Command1_Click()
Dim row As Integer, col As Integer
row = 1
col = 1

Dim sum As Double
Dim x As Double
sum = 0
While Sheet1.Cells(row, col).Value < ""
x = Val(Sheet1.Cells(row, col).Value)
sum = sum + x

If (Val(Sheet1.Cells(row, col).Value) = 0) Then
Sheet1.Rows(row).Insert
row = row + 1

Sheet1.Cells(row - 1, col).Value = sum
sum = 0

End If

row = row + 1
Wend
End Sub
#

Have a nice time

Chris
------
Convert your Excel spreadsheet into an online calculator.
http://www.spreadsheetconverter.com

--
Message posted via http://www.officekb.com



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
Increase Your Business By Data Conversion, Data Format and Data EntryServices in India Data Entry India Excel Worksheet Functions 1 March 31st 08 12:51 PM
Save 20% On Data Conversion and Data Formats Services by Data EntryIndia Data Entry India Excel Discussion (Misc queries) 0 March 31st 08 12:00 PM
Data Entry Online, Data Format, Data Conversion and Data EntryServices through Data Entry Outsourcing [email protected] Excel Discussion (Misc queries) 0 March 20th 08 12:45 PM
MULTIPLE DATA - How to insert new data into existing data.... Rodorodo Excel Discussion (Misc queries) 0 December 15th 06 11:50 PM


All times are GMT +1. The time now is 02:13 AM.

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"