Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default Sum with Date Span

In your reply, you stated the following: (for adding numbers within the last
6 months in columns C and D:

=SUMIF(C:C,""&DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY())),D:D)

IT WORKS PERFECTLY.

There are 2 items I do NOT understand.

1) the C:C and D:D references (although I can figure it out) and

2) The use of "&" -- the ambersand.

PLEASE EXPLAIN??

Thank you,

FLKulchar

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Sum with Date Span

C:C means that the whole of column C is being checked for a matching date,
and where matching the values in column D are being summed.

The & is used to concatenate the operator with the calculated date so that
SUMIF will check for values greater than that.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"F. Lawrence Kulchar" wrote in
message ...
In your reply, you stated the following: (for adding numbers within the

last
6 months in columns C and D:

=SUMIF(C:C,""&DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY())),D:D)

IT WORKS PERFECTLY.

There are 2 items I do NOT understand.

1) the C:C and D:D references (although I can figure it out) and

2) The use of "&" -- the ambersand.

PLEASE EXPLAIN??

Thank you,

FLKulchar



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
Time Span calculations Jafferi[_2_] Excel Worksheet Functions 4 June 8th 09 05:43 AM
Count and/or sum data within a date span. JM Excel Worksheet Functions 5 May 5th 08 07:29 PM
claculating time span Julie Excel Worksheet Functions 1 March 1st 08 01:17 AM
Sum within date span [email protected] Excel Programming 3 September 17th 06 01:14 PM
Time Span mrbalaje Excel Discussion (Misc queries) 6 June 16th 05 11:34 PM


All times are GMT +1. The time now is 11:14 PM.

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"