Ready, steady… save!
You don’t need a chart to join in. Here are 2 ways to record your savings:
1. Cross it off
Pop a chart into your first post. Saved an amount? Cross it out! Read more »
£0.01 £0.02 £0.03
2. Write it down
Skip the chart and add updates to your first post. Read more »
“Another +£3 saved today. Go me!”
Use +£ before each new saving so it counts towards your total.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Excel Help Please - Time Difference Calculation
Delboy24
Posts: 132 Forumite
in Techie Stuff
Hi,
I have a works spreadsheet given to me which for example has time worked in cell A1 - 06:00-15:00
In cell B2 I have to put in manually the difference in hours to show actual time worked.
I have said having a start/finish/worked format would work to enable automatic calculation of the time difference but I have been told I cannot alter in any way the layout but am welcome to put formulas into cells if it helps!!!.....go figure!
Is there anyway in excel to show the difference in a work pattern shift when all the data is only in one cell in a time format as above?
Thanks
I have a works spreadsheet given to me which for example has time worked in cell A1 - 06:00-15:00
In cell B2 I have to put in manually the difference in hours to show actual time worked.
I have said having a start/finish/worked format would work to enable automatic calculation of the time difference but I have been told I cannot alter in any way the layout but am welcome to put formulas into cells if it helps!!!.....go figure!
Is there anyway in excel to show the difference in a work pattern shift when all the data is only in one cell in a time format as above?
Thanks
0
Comments
-
You could use something like:
=TIMEVALUE(RIGHT(A1,5))-TIMEVALUE(LEFT(A1,5))
though it'll only work as it stands if they've stuck rigidly to the format 'hh:mm-hh:mm' (i.e. no spurious spaces or whatever). It'll also fail if the second time is less than the first (e.g. 20:00-02:00). It could of course be tweaked to cover those possibilities if need be.Stompa0 -
I really don't think there is a way to do what your wanting. I stand corrected.
Why not just copy the spreadsheet (saving it with a different name), make it the way you want it, then copy the row/column onto the original spreadsheet.Sometimes i surprise myself by being right.0 -
Thinking about it, the spurious spaces issue would be easily solved by using:
=TIMEVALUE(RIGHT(TRIM(A1),5))-TIMEVALUE(LEFT(TRIM(A1),5))
and the start and end times being on different days by using:
=MOD(TIMEVALUE(RIGHT(TRIM(A1),5))-TIMEVALUE(LEFT(TRIM(A1),5))+1,1)Stompa0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 355.9K Banking & Borrowing
- 255K Reduce Debt & Boost Income
- 456.2K Spending & Discounts
- 248.4K Work, Benefits & Business
- 606.1K Mortgages, Homes & Bills
- 179K Life & Family
- 263.9K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.2K Discuss & Feedback
- 37.7K Read-Only Boards