View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Neall Neall is offline
external usenet poster
 
Posts: 95
Default Count pricing associated to year

Thanks again for your time Jacob issue resolved now a new one on why excel is
reading my dates as simple 5 digit numbers.

--
Neall


"Jacob Skaria" wrote:

Neall

The earlier one returned the number of entries....Use the below to return
the sum

=SUMPRODUCT(--(YEAR(C8:C23)=2009),O8:O23)

If this post helps click Yes
---------------
Jacob Skaria


"Neall" wrote:

Thanks however, maybe I am missing something here

=SUM(IF(YEAR(C8:C23)=2009,1,0))

C8:c23 are the dates however there is no reference to the corresponding
pricing columns (O9:O28) to get the prices to add.

Basically if C9,C11,C15 = 2007 goto O9,11,15 and give me the sum.

Did I miss something?



--
Neall


"Jacob Skaria" wrote:

If you mean date in Column C use the below for number of parts purchased in
2009

=SUM(IF(YEAR(C8:C23)=2009,1,0))

Please note that this is an array formula. Within the cell in edit mode (F2)
paste this formula and press Ctrl+Shift+Enter to apply this formula. If
successful in 'Formula Bar' you can notice the curly braces at both ends like
"{=<formula}"

If this post helps click Yes
---------------
Jacob Skaria


"Neall" wrote:

I have part prices (O8 - O23) and years they were purchased (C8 - C23) I want
to create a formula that adds up only parts purchased for X year.

Any suggestions

Thanks in advance
--
Neall