This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I have to pull date and time data that is given in the following format.
2023-04-01 04:18:32
If the time is before 6:00:00 AM, the data and date need to be converted to the day before. Currently this formula works, except when the day is the first of the month.
=IF(HOUR(D2)<6,MONTH(D2)&"/"&DAY(D2)-1,MONTH(D2)&"/"&DAY(D2))
When the day is the first of the month before 6am, it returns month/0 instead of last month/last day. This is a problem for future functions because I need a matching day to run reports and record the data based on the day.
I currently have to manually change those dates between 12am and 6am, to the previous day. This seems inefficient and like something that I might be able to work around with a different function(s)
Subreddit
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/excel/comme...