Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Gene Haines
 
Posts: n/a
Default sumif using the now() function

I am trying to sum numbers using the NOW() function as my criteria, however
no luck.

sumif($D$1:$BC$1. "=NOW()", D2:BC2) Any help would be appreciated.

Thank you


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


Try this:

Assuming you try to sum D2 to BC2 on your example.

=if($D$1:$BC$1=Now(),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

  #3   Report Post  
Posted to microsoft.public.excel.newusers
Gene Haines
 
Posts: n/a
Default sumif using the now() function

renegan: Thanks for your response, however I got #VALUE! in the cell. Any
suggestions

"renegan" wrote:


Try this:

Assuming you try to sum D2 to BC2 on your example.

=if($D$1:$BC$1=Now(),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


  #4   Report Post  
Posted to microsoft.public.excel.newusers
Pete_UK
 
Posts: n/a
Default sumif using the now() function

Here's another variation to try:

=SUM(IF($D$1:$BC$1=Now(),D2:BC2,0))

This is an array formula, so when you have typed it in (and if you
subsequently edit it) use CTRL-SHIFT-ENTER rather than just ENTER - if
you do this correctly then Excel will wrap curly braces { } around the
formula. You should not type these yourself.

You can copy the formula down if you wish.

Hope this helps.

Pete

  #5   Report Post  
Posted to microsoft.public.excel.newusers
Peo Sjoblom
 
Posts: n/a
Default sumif using the now() function

Are you comparing dates and times or just times? If dates and times

=SUMIF(D1:BC1,"="&NOW(),D2:BC2)

with times only


=SUMIF(D1:BC1,"="&MOD(NOW(),1),D2:BC2)


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Gene Haines" wrote in message
...
renegan: Thanks for your response, however I got #VALUE! in the cell. Any
suggestions

"renegan" wrote:


Try this:

Assuming you try to sum D2 to BC2 on your example.

=if($D$1:$BC$1=Now(),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






  #6   Report Post  
Posted to microsoft.public.excel.newusers
Gene Haines
 
Posts: n/a
Default sumif using the now() function

Pete, Peo. Thank you very much..... both formulas worked. U2 renegan 4 ur time

Regards
Gene Haines
"Peo Sjoblom" wrote:

Are you comparing dates and times or just times? If dates and times

=SUMIF(D1:BC1,"="&NOW(),D2:BC2)

with times only


=SUMIF(D1:BC1,"="&MOD(NOW(),1),D2:BC2)


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Gene Haines" wrote in message
...
renegan: Thanks for your response, however I got #VALUE! in the cell. Any
suggestions

"renegan" wrote:


Try this:

Assuming you try to sum D2 to BC2 on your example.

=if($D$1:$BC$1=Now(),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





  #7   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

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
Can I add and IF function to a SUMIF function? adscrim Excel Worksheet Functions 4 January 21st 06 12:32 PM
SUMIF Function Inside SUMPRODUCT Function Abdul Waheed Excel Worksheet Functions 17 September 19th 05 04:24 PM
SumIF function ACDenver Excel Discussion (Misc queries) 2 August 17th 05 09:47 PM
Sumif function with remote cell references hennis Excel Worksheet Functions 1 August 12th 05 01:54 AM
SUMIF function yak10 Excel Worksheet Functions 0 February 12th 05 05:12 PM


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