Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am using an IF logical. If the result is true, I would like to return the
SUM of a range or cells. Or at the very least return cell reference. eg =IF(K3<=DATE(2010,1,31),AND(K3=DATE(2010,1,1))) Since this is a true statement, I would like it to return the SUM of A1:A10 Thank you. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=if(and(date(2010,1,1)<=k3,k3<=date(2010,1,31)),su m(a1:a10),"whateveryouwant")
Because you're using the complete month, you have other choices, too: =if(text(k3,"yyyymm")="201001",sum(a1:a10),"not in Jan 2010") =if(and(month(k3)=1,year(k3)=2010),sum(a1:a10"),"a nything else?") Larry G wrote: I am using an IF logical. If the result is true, I would like to return the SUM of a range or cells. Or at the very least return cell reference. eg =IF(K3<=DATE(2010,1,31),AND(K3=DATE(2010,1,1))) Since this is a true statement, I would like it to return the SUM of A1:A10 Thank you. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to return a cell reference as result of a formula | Excel Worksheet Functions | |||
My formulas return the formula not a result in the cell | Excel Worksheet Functions | |||
Advanced formula - Return result & Show Cell Reference of result | Excel Worksheet Functions | |||
Enter a formula to return a result from a cell | New Users to Excel | |||
reference the result of a formula in a text formatted cell | Excel Discussion (Misc queries) |