Forum Discussion
Excellent
Nov 09, 2026Copper Contributor
How to change the columns a formula will get its data from
Here is a dummy example of what my spreadsheet looks like, the end date/time can be in different columns based on external factors. a b c d 1 Start date/time Other date/time End date...
LiaBrown
Nov 12, 2026Iron Contributor
If the valid end time is always the later nonblank value, use `=IF(COUNT(B2:C2)=0,"",MAX(B2:C2)-A2)`. Format the result as `[h]:mm:ss`. This handles either end-time column being blank without another nested IF.