#1   Report Post  
Junior Member
 
Posts: 10
Default calculating

My dear, please tell me ( with example) how to calculate values between two dates .
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,345
Default calculating

Speaking for myself, I am not sure what it is you are asking. Why don't YOU
give US an example for what you want.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"tofimoon4" wrote in message
...

My dear, please tell me ( with example) how to calculate values between
two dates .




--
tofimoon4



  #3   Report Post  
Junior Member
 
Posts: 10
Default

Quote:
Originally Posted by Sandy Mann View Post
Speaking for myself, I am not sure what it is you are asking. Why don't YOU
give US an example for what you want.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"tofimoon4" wrote in message
...

My dear, please tell me ( with example) how to calculate values between
two dates .




--
tofimoon4
my dear, i mean if i have invoices with several dates like below :
1/5/2007 700
1/12/2007 1250
1/26/2007 750
2/6/2007 2000
2/15/2007 1850
2/25/2007 3200
3/1/2007 7500
and i need to calculate these values every 15 days or monthly.
  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,345
Default calculating

Monthly Totals:

January:
=SUMPRODUCT((MONTH(A1:A7)=1)*(B1:B7))

February:
=SUMPRODUCT((MONTH(A1:A7)=2)*(B1:B7))

March:
=SUMPRODUCT((MONTH(A1:A7)=3)*(B1:B7))

You don't say where the 15 days start so assuming that they start on 1/1/07:

1st 15 days:
=SUMPRODUCT((A1:A7=--"1/1/07")*(A1:A7<=--"15/1/07")*B1:B7)

Next 15 days:
=SUMPRODUCT((A1:A7--"15/1/07")*(A1:A7<=--"30/1/07")*B1:B7)

Etc.

That is Larger than ("") equals ("=") then a double unary ("--")to change
the text into a date.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"tofimoon4" wrote in message
...

Sandy Mann;508282 Wrote:
Speaking for myself, I am not sure what it is you are asking. Why don't
YOU
give US an example for what you want.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"tofimoon4" wrote in message
...-

My dear, please tell me ( with example) how to calculate values

between
two dates .




--
tofimoon4
-


my dear, i mean if i have invoices with several dates like below :
1/5/2007 700
1/12/2007 1250
1/26/2007 750
2/6/2007 2000
2/15/2007 1850
2/25/2007 3200
3/1/2007 7500
and i need to calculate these values every 15 days or monthly.




--
tofimoon4



  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,345
Default calculating

I forgot to change the dates in the 15 day formulas from my British style
into American style.

It would be better to place the date in cells - say 1/1/07 in C1, 1/15/07 in
C2, 1/30/07 in C3 etc. then the formulas would be:

1st 15 days:

=SUMPRODUCT((A1:A7=C1)*(A1:A7<=C2)*B1:B7)

2nd 15 days:
=SUMPRODUCT((A1:A7C2)*(A1:A7<=C3)*B1:B7)

No need for the confusing double unary.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Sandy Mann" wrote in message
...
Monthly Totals:

January:
=SUMPRODUCT((MONTH(A1:A7)=1)*(B1:B7))

February:
=SUMPRODUCT((MONTH(A1:A7)=2)*(B1:B7))

March:
=SUMPRODUCT((MONTH(A1:A7)=3)*(B1:B7))

You don't say where the 15 days start so assuming that they start on
1/1/07:

1st 15 days:
=SUMPRODUCT((A1:A7=--"1/1/07")*(A1:A7<=--"15/1/07")*B1:B7)

Next 15 days:
=SUMPRODUCT((A1:A7--"15/1/07")*(A1:A7<=--"30/1/07")*B1:B7)

Etc.

That is Larger than ("") equals ("=") then a double unary ("--")to change
the text into a date.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"tofimoon4" wrote in message
...

Sandy Mann;508282 Wrote:
Speaking for myself, I am not sure what it is you are asking. Why don't
YOU
give US an example for what you want.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"tofimoon4" wrote in message
...-

My dear, please tell me ( with example) how to calculate values
between
two dates .




--
tofimoon4
-


my dear, i mean if i have invoices with several dates like below :
1/5/2007 700
1/12/2007 1250
1/26/2007 750
2/6/2007 2000
2/15/2007 1850
2/25/2007 3200
3/1/2007 7500
and i need to calculate these values every 15 days or monthly.




--
tofimoon4






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
calculating ceemo Excel Discussion (Misc queries) 0 March 20th 06 07:15 AM
Calculating age. pinehead Excel Worksheet Functions 1 February 27th 06 05:20 AM
Calculating Age malvis Excel Worksheet Functions 6 October 20th 05 01:21 PM
Calculating recurring date in following month, calculating # days in that period Walterius Excel Worksheet Functions 6 June 4th 05 11:21 PM
calculating frank Excel Discussion (Misc queries) 4 February 9th 05 03:54 AM


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