Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
lpullen
 
Posts: n/a
Default Adding Column of mixed data omitting the dates

Hello all,

We have an Excel sheet with a column that contains both dates and
numbers.

We need to sum the numbers, but omit the dates. The data is in random
sequence.

Any ideas?

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Adding Column of mixed data omitting the dates

One way would be to insert a column and put an indicator in that column.

Then you could use something like:
=sumif(b1:b10,"x",a1:a10)

But if you do that work, it might be just simpler to separate your dates from
the numbers to be summed.


lpullen wrote:

Hello all,

We have an Excel sheet with a column that contains both dates and
numbers.

We need to sum the numbers, but omit the dates. The data is in random
sequence.

Any ideas?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Andrew Taylor
 
Posts: n/a
Default Adding Column of mixed data omitting the dates

As you probably realise, the difficulty with this is that dates _are_
numbers: they just happen to be formatted in a special way. I think
you can achieve what you want by using the CELL() function, which
can give you information about the format of a cell. Assuming your
dates & numbers are in A1:A100, and that column B is free, enter
the formula =LEFT(CELL("format",A1),1) in B1 and copy it down to all of
B1:B100. Then the formula =SUMIF(B1:B100,"<D",A1:A100) gives
you the sum of the numbers.

You can hide column B if it spoils the layout.

hth
Andrew Taylor


lpullen wrote:
Hello all,

We have an Excel sheet with a column that contains both dates and
numbers.

We need to sum the numbers, but omit the dates. The data is in random
sequence.

Any ideas?


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
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
Running total w/2 columns - Excel Anna / Ideal Excel Worksheet Functions 14 August 10th 05 04:28 PM
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM
Adding column data stge Excel Worksheet Functions 1 November 4th 04 05:26 PM


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