A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

adding numbers in a column with dates



 
 
Thread Tools Display Modes
  #1  
Old December 30th, 2009, 05:07 PM posted to microsoft.public.excel.worksheet.functions
piklelila
external usenet poster
 
Posts: 1
Default adding numbers in a column with dates

I have a column with dates and numbers. I want to add up the numbers at the
bottom of the column. For example:
A1 11/15
A2 33
A3 11/20
A4 45
A5 11/24
A6 66
etc...

I just want to add A2, A4, A6, etc.... Is there an easy way to do this? I
know that I can single out by =SUM(A2,A4,A6), but there are a lot more to add
in the column and I'll be doing it for each month. This way would be so
tedious and time consuming. Can anyone help?
  #2  
Old December 30th, 2009, 05:18 PM posted to microsoft.public.excel.worksheet.functions
Dave Peterson
external usenet poster
 
Posts: 19,791
Default adding numbers in a column with dates

Are the other values text ('11/15) or really numbers?

If they're really text, you could use: =sum(a1:a10)
Text values will be ignored.

If they're really numbers (maybe dates???), then this won't work for you.

I'd add another column that would be used as an indicator. Put an X in the row
if that value in column A should be summed.

=sumif(b:b,"x",a:a)

If those 11/15's are really dates, and the values aren't very big, you could use
a fromula like:

=sumif(a:a,""&date(2000,1,1))

Dates are just numbers to excel. And Jan 1, 2000 is 40177 (with 1904 as the
base year).





piklelila wrote:

I have a column with dates and numbers. I want to add up the numbers at the
bottom of the column. For example:
A1 11/15
A2 33
A3 11/20
A4 45
A5 11/24
A6 66
etc...

I just want to add A2, A4, A6, etc.... Is there an easy way to do this? I
know that I can single out by =SUM(A2,A4,A6), but there are a lot more to add
in the column and I'll be doing it for each month. This way would be so
tedious and time consuming. Can anyone help?


--

Dave Peterson
  #3  
Old December 30th, 2009, 05:29 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default adding numbers in a column with dates

Are the numbers to sum *always* in the even numbered rows?

Are the numbers to sum *always* less than a certain value? For example, the
numbers to sum *will never* be greater than 100.

In Excel dates are really numbers that are formatted to look like dates.
Today's date is 12/30/2009. It *displays* as the date 12/30/2009 but its
true value is the number 40177. Trying to differentiate numbers from dates
can be complicated so we have to try to come up with some kind of logical
rule that distinguishes the numbers to sum from the number dates.

--
Biff
Microsoft Excel MVP


"piklelila" wrote in message
...
I have a column with dates and numbers. I want to add up the numbers at
the
bottom of the column. For example:
A1 11/15
A2 33
A3 11/20
A4 45
A5 11/24
A6 66
etc...

I just want to add A2, A4, A6, etc.... Is there an easy way to do this?
I
know that I can single out by =SUM(A2,A4,A6), but there are a lot more to
add
in the column and I'll be doing it for each month. This way would be so
tedious and time consuming. Can anyone help?



  #4  
Old December 30th, 2009, 05:29 PM posted to microsoft.public.excel.worksheet.functions
CLR
external usenet poster
 
Posts: 323
Default adding numbers in a column with dates

Here's a couple ways, depending on the relativity of your dates to
numbers........
=SUMIF(A:A,""&9000)
=SUMIF(A:A,""&"12/1/2009")

Vaya con Dios,
Chuck, CABGx3




"piklelila" wrote in message
...
I have a column with dates and numbers. I want to add up the numbers at
the
bottom of the column. For example:
A1 11/15
A2 33
A3 11/20
A4 45
A5 11/24
A6 66
etc...

I just want to add A2, A4, A6, etc.... Is there an easy way to do this?
I
know that I can single out by =SUM(A2,A4,A6), but there are a lot more to
add
in the column and I'll be doing it for each month. This way would be so
tedious and time consuming. Can anyone help?



  #5  
Old December 30th, 2009, 05:31 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default adding numbers in a column with dates

Hi,

If the sample data you gave is typical then you want to sum even numbered
rows so try this

=SUMPRODUCT((1-MOD(ROW(A1:A10),2))*A1:A10)

Mike

"piklelila" wrote:

I have a column with dates and numbers. I want to add up the numbers at the
bottom of the column. For example:
A1 11/15
A2 33
A3 11/20
A4 45
A5 11/24
A6 66
etc...

I just want to add A2, A4, A6, etc.... Is there an easy way to do this? I
know that I can single out by =SUM(A2,A4,A6), but there are a lot more to add
in the column and I'll be doing it for each month. This way would be so
tedious and time consuming. Can anyone help?

  #6  
Old December 30th, 2009, 05:33 PM posted to microsoft.public.excel.worksheet.functions
trip_to_tokyo[_3_]
external usenet poster
 
Posts: 932
Default adding numbers in a column with dates

It's not good design to mix dates and numbers in the same column: break them
out into 2 separate columns.

If my comments have helped please hit Yes.

"piklelila" wrote:

I have a column with dates and numbers. I want to add up the numbers at the
bottom of the column. For example:
A1 11/15
A2 33
A3 11/20
A4 45
A5 11/24
A6 66
etc...

I just want to add A2, A4, A6, etc.... Is there an easy way to do this? I
know that I can single out by =SUM(A2,A4,A6), but there are a lot more to add
in the column and I'll be doing it for each month. This way would be so
tedious and time consuming. Can anyone help?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:38 PM.


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