( by Will Zelver )
Now instead of formula:
=IF(B2-A2<1, "Same Day", networkdays(A2,B2))
=IF(datevalue(B2)-datevalue(A2)<1, "Same Day", networkdays(A2,B2))
As B2-A2 is giving the time difference between two dates, and datevalue(B2) is fetching only the date of B2 excluding time.
And instead of having formula in each row, you can use =Arrayformula to auto calculate for each row. Let me know if you need further help on this.
I hope the above solution will help you, and if you need more help then please do comment below on this blog itself, I will try to help you out.