Forum Discussion
Bryantotalis
May 12, 2022Copper Contributor
Day count funtion
Hi, Just wondering how i write a command that will calculate the number of days from a given date and time. Example - I have a cell containing 02/04/2022 14:13:47 . I wish to calculate the number o...
Bryantotalis
May 12, 2022Copper Contributor
I tried that with 02/05/2022 14:13:47 and it gave me an answer of 44693. My existing cell is set as general.
Riny_van_Eekelen
May 12, 2022Platinum Contributor
Bryantotalis That number represents todays date, which would be the result of =NOW()-0
What exactly did you enter?
- BryantotalisMay 12, 2022Copper ContributorI have a cell with 02/05/2022 14:13:47 in it. I then entered =INT(NOW()-G1) which gave me 44693
I then tried =(NOW()-G1) which gave me 44693.40- Riny_van_EekelenMay 12, 2022Platinum Contributor
Bryantotalis Whatever you have in G1, it represents zero. Can you upload a screenshot or share the file via OneDerive, Dropbox etc.
- BryantotalisMay 12, 2022Copper ContributorGot it. Thanks