Trying to use SUMIF or SUMIFS to return a value if it was entered after a certain time.

Owenn1986

New Member
Joined
Jan 3, 2020
Messages
3
Office Version
  1. 2010
Platform
  1. Windows
Hi,

So the problem i'm trying to solve is basically to see the value (in 1 formula) and volume (in another) of card payments our business takes after 18:00.

At the moment i have a timestamp on column S which stamps when someone puts a payment on the sheet. and a value goes in column F

I want to find both the sum of and the count of payments taken after 18:00 but i cant for the life of me get it to work.

I've Tried : =SUMIF($S$20:$S$308,"<TIME(17,59,59)",$F$20:$F$308) & a similar SUMIFS but the always return a value of 0.00

any help would be appreciated

And im basically a novice so keep it me proof LOL :)

Thanks in Advance for any help
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try
=SUMIF($S$20:$S$308,">="&TIME(18,0,0),$F$20:$F$308)
or
=SUMIF($S$20:$S$308,">=18:00",$F$20:$F$308)
 
Upvote 0
Hi

Thanks

That returns a value now, just unfortunately the wrong one, it's been twisting my noodle for about an hour and a half now :)
 
Upvote 0
Hi

I'm still struggling to get this to work, i've tried all 3 variations listed and i can get it to return a value but its completley wrong.

Could it be something to do with the stamp? or maybe the formatting of the cells?

(This is what i put for the time stamp)

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 3 Then Exit Sub
If Target.Cells.Count > 3 Then Exit Sub
With Target.Offset(0, 16)
.Value = Now
.NumberFormat = "hh:mm"
End With
End Sub


I could really use some help please :)
 
Upvote 0

Forum statistics

Threads
1,215,772
Messages
6,126,807
Members
449,339
Latest member
Cap N

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top