Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Date Value

Suppose you have a list of dates in column A, A1:A10. In column B, B1:B10
are some sales figures:

4/1/2006...............300
4/2/2006...............744
4/3/2006...............818
4/4/2006...............522
4/5/2006...............900
4/6/2006...............312
4/7/2006...............444
4/8/2006...............777
4/9/2006...............602
4/10/2006.............788

You want to sum up the amounts between 2 dates, say, 4/1 to 4/5. Try any one
of these:

=SUMIF(A1:A10,"=4/1/2006",B1:B10)-SUMIF(A1:A10,"4/5/2006",B1:B10)

=SUMPRODUCT(--(A1:A10=--"4/1/2006"),--(A1:A10<=--"4/5/2006"),B1:B10)

=SUMPRODUCT(--(A1:A10=DATE(2006,4,1)),--(A1:A10<=DATE(2006,4,5)),B1:B10)

Better to use cells to hold the date criteria:

D1 = 4/1/2206
E1 = 4/5/2006

=SUMIF(A1:A10,"="&D1,B1:B10)-SUMIF(A1:A10,""&E1,B1:B10)

=SUMPRODUCT(--(A1:A10=D1),--(A1:A10<=E1),B1:B10)

Biff

"lmullenjr" wrote
in message ...

I am using it in a SumIf equation to sum up data within a range of
dates. I thought I could use the Date Value function, but the actual
dates are numeric, not text. Any suggestions?


--
lmullenjr
------------------------------------------------------------------------
lmullenjr's Profile:
http://www.excelforum.com/member.php...o&userid=33132
View this thread: http://www.excelforum.com/showthread...hreadid=529429



 
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
Insert Automatic, Non-Updating Date Stamp Ken Zenachon Excel Discussion (Misc queries) 8 January 18th 06 06:52 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Adding XY days to date in cells satucha Excel Discussion (Misc queries) 1 November 25th 05 08:02 AM
Another Date issue. TimM Excel Worksheet Functions 1 November 17th 05 01:58 AM
Date Math Problem Dkline Excel Worksheet Functions 4 March 4th 05 04:11 PM


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