#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default date sumfi

How do I add to this formula to look only for year 2005


=SUMIF(S!$M$5:$M$181,C20,S!$D$5:$D$181)

=COUNTIF(S!$M$4:$M$1003,C20)


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default date sumfi

=SUMPRODUCT(--(YEAR(S!$M$5:$M$181)=2005),S!$D$5:$D$181)

and

=SUMPRODUCT(--(YEAR(S!$M$4:$M$103)=2005))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Antonio Atala" wrote in message
...
How do I add to this formula to look only for year 2005


=SUMIF(S!$M$5:$M$181,C20,S!$D$5:$D$181)

=COUNTIF(S!$M$4:$M$1003,C20)




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default date sumfi

=SUMIF(S!$M$5:$M$181,"Dec 31,
2004",S!$D$5:$D$181)-SUMIF(S!$M$5:$M$181,"Dec 31, 2005",S!$D$5:$D$181)

Similar for CountIf

or

=sumproduct(--(Year(S!$M$5:$M$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$M$5:$M$181)=2005)) for countif
--
Regards,
Tom Ogilvy

"Antonio Atala" wrote in message
...
How do I add to this formula to look only for year 2005


=SUMIF(S!$M$5:$M$181,C20,S!$D$5:$D$181)

=COUNTIF(S!$M$4:$M$1003,C20)




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default date sumfi

Bob, Tom,
Thank You For your answer
the code needs to have ,C20,
C20 is the item wich will be look for in S!$M$5:$M$181

ThankYou



"Bob Phillips" escribió en el mensaje
...
=SUMPRODUCT(--(YEAR(S!$M$5:$M$181)=2005),S!$D$5:$D$181)

and

=SUMPRODUCT(--(YEAR(S!$M$4:$M$103)=2005))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Antonio Atala" wrote in message
...
How do I add to this formula to look only for year 2005


=SUMIF(S!$M$5:$M$181,C20,S!$D$5:$D$181)

=COUNTIF(S!$M$4:$M$1003,C20)






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default date sumfi

OK, just change 2005 to C20.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Antonyo" wrote in message
...
Bob, Tom,
Thank You For your answer
the code needs to have ,C20,
C20 is the item wich will be look for in S!$M$5:$M$181

ThankYou



"Bob Phillips" escribió en el mensaje
...
=SUMPRODUCT(--(YEAR(S!$M$5:$M$181)=2005),S!$D$5:$D$181)

and

=SUMPRODUCT(--(YEAR(S!$M$4:$M$103)=2005))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Antonio Atala" wrote in message
...
How do I add to this formula to look only for year 2005


=SUMIF(S!$M$5:$M$181,C20,S!$D$5:$D$181)

=COUNTIF(S!$M$4:$M$1003,C20)










  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default date sumfi

This is a copy of what I need this to do

I Tank You Again

http://www.geocities.com/antonioata/Logo1.xls


"Tom Ogilvy" escribió en el mensaje
...
=SUMIF(S!$M$5:$M$181,"Dec 31,
2004",S!$D$5:$D$181)-SUMIF(S!$M$5:$M$181,"Dec 31, 2005",S!$D$5:$D$181)

Similar for CountIf

or

=sumproduct(--(Year(S!$M$5:$M$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$M$5:$M$181)=2005)) for countif
--
Regards,
Tom Ogilvy

"Antonio Atala" wrote in message
...
How do I add to this formula to look only for year 2005


=SUMIF(S!$M$5:$M$181,C20,S!$D$5:$D$181)

=COUNTIF(S!$M$4:$M$1003,C20)






  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default date sumfi

So you want

=sumproduct(--(Year(S!$C$5:$C$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$C$5:$C$181)=2005)) for countif


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Antonyo" wrote in message
...
This is a copy of what I need this to do

I Tank You Again

http://www.geocities.com/antonioata/Logo1.xls


"Tom Ogilvy" escribió en el mensaje
...
=SUMIF(S!$M$5:$M$181,"Dec 31,
2004",S!$D$5:$D$181)-SUMIF(S!$M$5:$M$181,"Dec 31, 2005",S!$D$5:$D$181)

Similar for CountIf

or

=sumproduct(--(Year(S!$M$5:$M$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$M$5:$M$181)=2005)) for countif
--
Regards,
Tom Ogilvy

"Antonio Atala" wrote in message
...
How do I add to this formula to look only for year 2005


=SUMIF(S!$M$5:$M$181,C20,S!$D$5:$D$181)

=COUNTIF(S!$M$4:$M$1003,C20)








  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default date sumfi

If I use
=sumproduct(--(Year(S!$C$5:$C$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$C$5:$C$181)=2005)) for countif
The specific item which is in the firth line will not be read,
instead all the items in the year will be read

=COUNTIF(S!$M$4:$M$874,C13) This will read the specific item but
for every year in the data base S,
C13 is the item alacena
C14 is the item box individual and so on
I have been breaking my head for almost 3 months
I do not know if some one has a solution to this puzzle

"Bob Phillips" escribió en el mensaje
...
So you want

=sumproduct(--(Year(S!$C$5:$C$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$C$5:$C$181)=2005)) for countif


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Antonyo" wrote in message
...
This is a copy of what I need this to do

I Tank You Again

http://www.geocities.com/antonioata/Logo1.xls


"Tom Ogilvy" escribió en el mensaje
...
=SUMIF(S!$M$5:$M$181,"Dec 31,
2004",S!$D$5:$D$181)-SUMIF(S!$M$5:$M$181,"Dec 31,

2005",S!$D$5:$D$181)

Similar for CountIf

or

=sumproduct(--(Year(S!$M$5:$M$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$M$5:$M$181)=2005)) for countif
--
Regards,
Tom Ogilvy

"Antonio Atala" wrote in message
...
How do I add to this formula to look only for year 2005


=SUMIF(S!$M$5:$M$181,C20,S!$D$5:$D$181)

=COUNTIF(S!$M$4:$M$1003,C20)










  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default date sumfi

I'm Sorry what I was trying to say is

instead all the items for all years will be read


If I use
=sumproduct(--(Year(S!$C$5:$C$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$C$5:$C$181)=2005)) for countif
The specific item which is in the firth line will not be read,

instead all the items for all years will be read






=COUNTIF(S!$M$4:$M$874,C13) This will read the specific item but
for every year in the data base S,
C13 is the item alacena
C14 is the item box individual and so on
I have been breaking my head for almost 3 months
I do not know if some one has a solution to this puzzle

"Bob Phillips" escribió en el mensaje
...
So you want

=sumproduct(--(Year(S!$C$5:$C$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$C$5:$C$181)=2005)) for countif


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Antonyo" wrote in message
...
This is a copy of what I need this to do

I Tank You Again

http://www.geocities.com/antonioata/Logo1.xls


"Tom Ogilvy" escribió en el mensaje
...
=SUMIF(S!$M$5:$M$181,"Dec 31,
2004",S!$D$5:$D$181)-SUMIF(S!$M$5:$M$181,"Dec 31,

2005",S!$D$5:$D$181)

Similar for CountIf

or

=sumproduct(--(Year(S!$M$5:$M$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$M$5:$M$181)=2005)) for countif
--
Regards,
Tom Ogilvy

"Antonio Atala" wrote in message
...
How do I add to this formula to look only for year 2005


=SUMIF(S!$M$5:$M$181,C20,S!$D$5:$D$181)

=COUNTIF(S!$M$4:$M$1003,C20)












  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default date sumfi

The biggest puzzle here is trying to understand what you mean and what you
want. The formula obviously won't count an item for Nov-2003 as it is
testing for 2005. The formulas you have been supplied test against 2005
because that is what you asked for earlier. And I have no idea what alacena
means.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Antonyo" wrote in message
...
If I use
=sumproduct(--(Year(S!$C$5:$C$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$C$5:$C$181)=2005)) for countif
The specific item which is in the firth line will not be read,
instead all the items in the year will be read

=COUNTIF(S!$M$4:$M$874,C13) This will read the specific item but
for every year in the data base S,
C13 is the item alacena
C14 is the item box individual and so on
I have been breaking my head for almost 3 months
I do not know if some one has a solution to this puzzle

"Bob Phillips" escribió en el mensaje
...
So you want

=sumproduct(--(Year(S!$C$5:$C$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$C$5:$C$181)=2005)) for countif


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Antonyo" wrote in message
...
This is a copy of what I need this to do

I Tank You Again

http://www.geocities.com/antonioata/Logo1.xls


"Tom Ogilvy" escribió en el mensaje
...
=SUMIF(S!$M$5:$M$181,"Dec 31,
2004",S!$D$5:$D$181)-SUMIF(S!$M$5:$M$181,"Dec 31,

2005",S!$D$5:$D$181)

Similar for CountIf

or

=sumproduct(--(Year(S!$M$5:$M$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$M$5:$M$181)=2005)) for countif
--
Regards,
Tom Ogilvy

"Antonio Atala" wrote in message
...
How do I add to this formula to look only for year 2005


=SUMIF(S!$M$5:$M$181,C20,S!$D$5:$D$181)

=COUNTIF(S!$M$4:$M$1003,C20)














  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default date sumfi

This is part of the inventory if you like to take a look
http://www.geocities.com/antonioata/Logo1.xls

Thank You.

"Bob Phillips" escribió en el mensaje
...
The biggest puzzle here is trying to understand what you mean and what you
want. The formula obviously won't count an item for Nov-2003 as it is
testing for 2005. The formulas you have been supplied test against 2005
because that is what you asked for earlier. And I have no idea what

alacena
means.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Antonyo" wrote in message
...
If I use
=sumproduct(--(Year(S!$C$5:$C$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$C$5:$C$181)=2005)) for countif
The specific item which is in the firth line will not be read,
instead all the items in the year will be read

=COUNTIF(S!$M$4:$M$874,C13) This will read the specific item but
for every year in the data base S,
C13 is the item alacena
C14 is the item box individual and so on
I have been breaking my head for almost 3 months
I do not know if some one has a solution to this puzzle

"Bob Phillips" escribió en el

mensaje
...
So you want

=sumproduct(--(Year(S!$C$5:$C$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$C$5:$C$181)=2005)) for countif


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Antonyo" wrote in message
...
This is a copy of what I need this to do

I Tank You Again

http://www.geocities.com/antonioata/Logo1.xls


"Tom Ogilvy" escribió en el mensaje
...
=SUMIF(S!$M$5:$M$181,"Dec 31,
2004",S!$D$5:$D$181)-SUMIF(S!$M$5:$M$181,"Dec 31,

2005",S!$D$5:$D$181)

Similar for CountIf

or

=sumproduct(--(Year(S!$M$5:$M$181)=2005),S!$D$5:$D$181) for

sumif
=sumproduct(--(Year(S!$M$5:$M$181)=2005)) for countif
--
Regards,
Tom Ogilvy

"Antonio Atala" wrote in message
...
How do I add to this formula to look only for year 2005


=SUMIF(S!$M$5:$M$181,C20,S!$D$5:$D$181)

=COUNTIF(S!$M$4:$M$1003,C20)














  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default date sumfi

I did previously

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Antonyo" wrote in message
...
This is part of the inventory if you like to take a look
http://www.geocities.com/antonioata/Logo1.xls

Thank You.

"Bob Phillips" escribió en el mensaje
...
The biggest puzzle here is trying to understand what you mean and what

you
want. The formula obviously won't count an item for Nov-2003 as it is
testing for 2005. The formulas you have been supplied test against 2005
because that is what you asked for earlier. And I have no idea what

alacena
means.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Antonyo" wrote in message
...
If I use
=sumproduct(--(Year(S!$C$5:$C$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$C$5:$C$181)=2005)) for countif
The specific item which is in the firth line will not be read,
instead all the items in the year will be read

=COUNTIF(S!$M$4:$M$874,C13) This will read the specific item but
for every year in the data base S,
C13 is the item alacena
C14 is the item box individual and so on
I have been breaking my head for almost 3 months
I do not know if some one has a solution to this puzzle

"Bob Phillips" escribió en el

mensaje
...
So you want

=sumproduct(--(Year(S!$C$5:$C$181)=2005),S!$D$5:$D$181) for sumif
=sumproduct(--(Year(S!$C$5:$C$181)=2005)) for countif


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Antonyo" wrote in message
...
This is a copy of what I need this to do

I Tank You Again

http://www.geocities.com/antonioata/Logo1.xls


"Tom Ogilvy" escribió en el mensaje
...
=SUMIF(S!$M$5:$M$181,"Dec 31,
2004",S!$D$5:$D$181)-SUMIF(S!$M$5:$M$181,"Dec 31,
2005",S!$D$5:$D$181)

Similar for CountIf

or

=sumproduct(--(Year(S!$M$5:$M$181)=2005),S!$D$5:$D$181) for

sumif
=sumproduct(--(Year(S!$M$5:$M$181)=2005)) for countif
--
Regards,
Tom Ogilvy

"Antonio Atala" wrote in message
...
How do I add to this formula to look only for year 2005


=SUMIF(S!$M$5:$M$181,C20,S!$D$5:$D$181)

=COUNTIF(S!$M$4:$M$1003,C20)
















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
Concatenate including a date so that the date appears as a date Zembu Excel Worksheet Functions 2 January 6th 10 06:09 PM
date in Cell to change colors if the date is beyond today's date Pete Elbert Excel Discussion (Misc queries) 2 June 6th 09 06:31 AM
Making a date go red, if date passes todays date. Jamie Excel Worksheet Functions 2 September 9th 08 02:14 PM
Report Date - Date Recv = Days Late, but how to rid completed date MS Questionnairess Excel Worksheet Functions 1 January 24th 07 11:05 PM
Date updates from worksheet to chart & changes date to a date series! Help!! Jayjg Charts and Charting in Excel 2 January 22nd 05 03:00 PM


All times are GMT +1. The time now is 11:33 AM.

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"