#1   Report Post  
Posted to microsoft.public.excel.misc
exsam21
 
Posts: n/a
Default Between Dates


cell b2=02/11/2006
cell c2=100
cell d2=200

I want my result to be if b2 is between a certain date range, then add
c2 and d2, else 0. How do I perform the date range part of the
formula?


--
exsam21
------------------------------------------------------------------------
exsam21's Profile: http://www.excelforum.com/member.php...o&userid=22666
View this thread: http://www.excelforum.com/showthread...hreadid=521172

  #2   Report Post  
Posted to microsoft.public.excel.misc
ChelseaWarren
 
Posts: n/a
Default Between Dates

Try this formuila:

=IF(AND(B2<=DATE(2006,3,1),B2=DATE(2006,2,1)),C2+ D2,0)

this will check whether your date is between the range 2/1/06 and 3/1/06



"exsam21" wrote:


cell b2=02/11/2006
cell c2=100
cell d2=200

I want my result to be if b2 is between a certain date range, then add
c2 and d2, else 0. How do I perform the date range part of the
formula?


--
exsam21
------------------------------------------------------------------------
exsam21's Profile: http://www.excelforum.com/member.php...o&userid=22666
View this thread: http://www.excelforum.com/showthread...hreadid=521172


  #3   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Between Dates


With:
Start Date in G1
End Date in H1

E2: =(B2=$G$1)*(B2<=$H$1)*SUM(C2:D2)

Does that help?

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=521172

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
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
PivotTables - Group Dates, excluding dates Todd1 Excel Discussion (Misc queries) 4 December 10th 05 05:06 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM
2 digit year in dates return 19xx not 20xx moranbo Excel Discussion (Misc queries) 1 September 7th 05 01:44 AM
Formating Dates for production schedule dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 08:43 PM


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