I have the following formula:
=COUNTIFS(Transactions2023[Result], "Win", Transactions2023[League], "NBA", Transactions2023[Date], "<=" & "4/11/2023")
I actually need for all the values before or on 4/11/2023 at 5 PM to be counted, however I have the time listed in a separate column (Transactions2023[Time]
). Is there a way for me to accomplish this in the formula? So I can AND the value from the date and time column together?
UPDATE: Per the kind folks below, have come up with:
=COUNTIFS(Transactions2023[Result], "Win", Transactions2023[League], "NBA", Transactions2023[Date] + Transactions2023[Time], DATEVALUE(Transactions2023[Date]) + TIMEVALUE(Transactions2023[Time]) <= 45027 + (17/24))
But I get the standard formula error. I've checked my ps and qs and everything seems to be fine, so wondering if I screwed up the syntax somewhere.
Transactions2023[Time],"<=" & TIME(17,0,0)
to the countifs.