1

This may seem like a duplicate but my issue is different from others in the past. I've even tried the solution posted in a similar question from 9 years ago, and it still isn't working.

I am fixing my bosses time sheets she makes to post on the wall, and I can't separate the start and end times into their own cells. I know that would be easier and simple but this is not how she wants it, so I must leave the design the way she has it.

I'm wanting the little numbers in the screenshot that are above the times to display the time difference. The total time on the far right already does the math of those little numbers. I'm just wanting to give her the new Excel document and all she has to change is the hours and let the math do all the other work for her.

So when the hours are typed in the single cell as "7:00-3:30" the cell above it will calculate it and display "8" and I'm hoping that will work so if the person's start and end time were both a pm time then it will still work.

I know that's bad math, I'm taking out the 30-min lunch break that everyone gets if the total work daytime difference is longer than a 6-hour work shift.

screenshot

File --> https://easyupload.io/m3xbos

Here is the example I'm working with just to give you the idea of what it looks like, but the file I have provided above isn't the actual schedule. It's just a test sample file without all the clutter. I've even added my conversation I had with ChatGPT that was kind of helping me with my issue.

  • @DrMoishePippik haha sorry I explained that math only in my head, :P it's with the 30-min lunch taken out. But the image isn't really relevant. The point was the math to the time in the cell and have it output a time difference from the numbers provided in the single cell. Did you look at the file, I think it will make more sense if you look at the file than the image? – AlexWillis21 Feb 26 '23 at 17:33
  • Clicking the file link results The transfer you requested has been deleted. – Peregrino69 Feb 26 '23 at 22:46
  • @Peregrino69 I'm sorry I tried another file sharing site and this time I tested it. I hope you are able to get it and help me with my issue. Thanks. – AlexWillis21 Feb 27 '23 at 02:53
  • Excel's not my strong suit. Personally I'd just explain my manager why it's easier to use 2 cells... I think you'd find the answer here: https://superuser.com/questions/253353/excel-function-that-evaluates-a-string-as-if-it-were-a-formula – Peregrino69 Feb 27 '23 at 07:34
  • Use a function to split the string, convert the string. Do the usual math (right part minus left part minus 30 minutes). – Seth Feb 27 '23 at 08:20
  • Please edit your question: When you say this, “I've even tried the solution posted in a similar question from 9 years ago.” What is the exact URL of the similar question you are mentioning? None of us keep deep track of each question here. Better to see what you tried and might have not worked than just second-guessing what you did. – Giacomo1968 Mar 02 '23 at 02:18