Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 623
Default occurance in each year

Just reformatting the original data will not work. Reformatting will not change
text entries to numbers.

Try the following:

Enter 0 in an unused cell.
Copy it.
Highlight your column of dates.
Use EditPaste Special...Add

That should change your dates from text to valid Excel dates, and allow
Sumproduct to work.

--
Regards,
Fred


"Anvil22" wrote in message
...
Mike,
I created a test sheet and it worked. I went backto the original and
formtted the colume to a date. repasted the formula and still receiveda value.

I copied the data to new sheet, witht he same results. I took the first
cell k2 and tried to reformat, recived the same resluts.

can you by any cance point me to how to fis the problem. I doid not create
the work book.

All the best
Dcik

"Mike G" wrote:

I would suggest that you create a test sheet and copy 3 or so dates in there
(k column)i.e. 1/1/07, 2/3/06,4/5/07 and then cut/past the formula in
another cell. I just did that and got the correct answer = 2. If
successful, then go back to your real sheet and figure what the difference
is.

"Anvil22" wrote in message
...
=SUMPRODUCT(--(YEAR(K2:K850)=2007))
I entered the above formula, and receive a value error. I went back and
made
sure the dates wer formatted as date, and received hte same error. The
dates
are entered as 01/05/2007

did I not copy the formula correctly

All the best,
Dick

"Duke Carey" wrote:

Try

=SUMPRODUCT(--(YEAR(K2:K850)=2007))


"Anvil22" wrote:

I have a 850 dates in a column with various years. I want to count the
number
of occurances in each year. I use the following formula but continue to
reveiw 0. The formula I am using is;
=COUNTIF(k2:k850,"(date(2007/1/1)=(date(2007/12/31)")

What I am lookin for is the number of entries in 2007.
Can anyone tell me what I am doin wrong/
Thanks
Dick






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
Combination Graph with current year and prior year sales JanW Charts and Charting in Excel 2 April 5th 07 09:20 PM
Find next occurance Jambruins Excel Discussion (Misc queries) 5 August 10th 06 04:48 PM
how to calculate $1000/year at 5% for 25 years showing each year HELP! Setting up and Configuration of Excel 0 July 25th 06 12:58 AM
trying to get day/month/year froamt while user enters year only RADIOOZ New Users to Excel 3 June 7th 06 05:30 AM
How to compare current year to prior year in bar chart? substring Charts and Charting in Excel 4 May 12th 05 07:04 PM


All times are GMT +1. The time now is 07:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"