View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.newusers
renegan
 
Posts: n/a
Default sumif using the now() function


Ok:

$D$1:$BC$1=Now() doesn't work. 2 things you can do:

1- You can use AND($D$1=Now,$E$1=Now,..........,$BC$1=Now) which
won't be pretty
2- Create another row under the row you check the data, check each cell
condition one by one with an if statement and get 1 if true like:
D2=If($D$1=Now,1,0)
Add all the cells with 1 and 0s. If total is less than the number of
columns between D and BC, then you don't add, if it does you do the
sum. Like:
if(Sum(D2:BC2)=52,sum(D2:BC2),"")


--
renegan
------------------------------------------------------------------------
renegan's Profile: http://www.excelforum.com/member.php...o&userid=10450
View this thread: http://www.excelforum.com/showthread...hreadid=528713