Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have an excel spreadsheet with employees time off. I need a formula that
will add column b if column a is betwee two dates. For example: if column a is between 9/22/04 and 9/21/05 then add column b. I have tried all different formluas but can't get this to work. |
#2
![]() |
|||
|
|||
![]()
=SUMPRODUCT(--(A2:A100DATEVALUE("9/22/04")),--(A2:A100<DATEVALUE("9/21/05")),B2:B100)
check out http://www.xldynamic.com/source/xld.SUMPRODUCT.html for details on the sumproduct function "Pam" wrote: I have an excel spreadsheet with employees time off. I need a formula that will add column b if column a is betwee two dates. For example: if column a is between 9/22/04 and 9/21/05 then add column b. I have tried all different formluas but can't get this to work. |
#3
![]() |
|||
|
|||
![]()
On Mon, 18 Apr 2005 09:34:03 -0700, Pam wrote:
I have an excel spreadsheet with employees time off. I need a formula that will add column b if column a is betwee two dates. For example: if column a is between 9/22/04 and 9/21/05 then add column b. I have tried all different formluas but can't get this to work. =SUMIF(A:A,"="&DATE(2004,9,22),B:B) - SUMIF(A:A,""&DATE(2004,9,21),B:B) You may find it more convenient to but the Dates into cells, in which case merely substitute the cell reference for the DATE function in the above. --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Return Count for LAST NonBlank Cell in each Row | Excel Worksheet Functions | |||
formula - sum "x" column L only when same row contains "y" columns | Excel Worksheet Functions | |||
Need a 1 Column multiplication formula for 2600 cells. How? | Excel Worksheet Functions | |||
How do I reference every "n" cell in a column in Excel? | Excel Worksheet Functions | |||
how to enter a formula using column() function for a range | Excel Worksheet Functions |