Hi all, I have a two fold challenge I'm trying to solve, and I would greatly prefer not to have to use VBA script/macro...
Challenge #1) I get time data sent daily (example: 1h 8m 3s). Yes, the time data has text with the "h" "m" and "s", but only if applicable. The goal is to try to get this data down to minutes ONLY. The problem is, if the time is less that an hour it will not have the "h".(Example 8m 3s), and again, if the time data is less than a minute the time data will only have the time in seconds only. So for example it would NOT be sent like "0h 0m 8s", it would just be "8s". I originally attempted to use the following formula "=ROUNDDOWN(TIMEVALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"h",":"),"m",":"),"s",""))*1440,0)" But like I mentioned, this only works if all elements of "h" "m" and "s" are there. Just to make it even more weird, if the time data is like 1 hour flat, it WILL have the "m" and the "s" appearing. (example 1h 0m 0s)
Challenge #2) The time data I get is every half-hour, but I would like to have excel (if possible) find the highest time reported within that hour period (or pair).
So for example if:
1pm-1:30pm = 1h 10m 55s
1:30pm-2pm = 35m 0s
Then excel would compare these and report in another cell in rounded down minutes:
1pm-2pm = 70
PLEASE see image as it provides a better example of what I'm trying to build/how I'd like it to look.
Challenge #1) I get time data sent daily (example: 1h 8m 3s). Yes, the time data has text with the "h" "m" and "s", but only if applicable. The goal is to try to get this data down to minutes ONLY. The problem is, if the time is less that an hour it will not have the "h".(Example 8m 3s), and again, if the time data is less than a minute the time data will only have the time in seconds only. So for example it would NOT be sent like "0h 0m 8s", it would just be "8s". I originally attempted to use the following formula "=ROUNDDOWN(TIMEVALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"h",":"),"m",":"),"s",""))*1440,0)" But like I mentioned, this only works if all elements of "h" "m" and "s" are there. Just to make it even more weird, if the time data is like 1 hour flat, it WILL have the "m" and the "s" appearing. (example 1h 0m 0s)
Challenge #2) The time data I get is every half-hour, but I would like to have excel (if possible) find the highest time reported within that hour period (or pair).
So for example if:
1pm-1:30pm = 1h 10m 55s
1:30pm-2pm = 35m 0s
Then excel would compare these and report in another cell in rounded down minutes:
1pm-2pm = 70
PLEASE see image as it provides a better example of what I'm trying to build/how I'd like it to look.