Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 594
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 833
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?

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
ADDING NUMBERS IN A COLUMN cb New Users to Excel 7 October 12th 07 03:18 AM
adding numbers from column B, while condition on column A The Fool on the Hill Excel Discussion (Misc queries) 4 February 1st 07 01:34 PM
Adding a range of numbers associated with various dates missin44 Excel Discussion (Misc queries) 3 January 18th 07 03:31 PM
Adding a % value to a column of numbers Morefeus Direct Excel Worksheet Functions 9 September 16th 06 09:41 PM
Adding Column of mixed data omitting the dates lpullen Excel Discussion (Misc queries) 2 November 17th 05 04:40 PM


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