Getting #VALUE! error while calculating time difference

Gautham A

Board Regular
Joined
May 25, 2020
Messages
107
Office Version
  1. 2016
Platform
  1. Windows
Hi Team,

In cell B3, the time is 06:32:09 and in A3 I have 03:34:46. In cell C3,I apply the formula =B3-A3. I should get 02:57:23. But I'm getting #VALUE! error.
 
Hi Fluff,
I executed this code and it is working fine. You are a genius.
Thank you to Joe and leandroarb also for your efforts
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Glad we could help & thanks for the feedback.
 
Upvote 0
I am guessing that the data you were running this against comes from another source, like the Web or was imported or exported to Excel from another data source?
The reason I say that is because Fluff's code replaces a special space, that is often found in those kind of files. The other suggestions we made only work on normal, regular spaces.

For future reference, mentioning those kind of details (where the data is initially coming from) may help you to get an answer sooner, as we then have a better idea of what we are dealing with.
 
Upvote 0
Hi Joe
Yes you are correct. These are extracted from web. Sorry for not mentioning these details. I will try to include these details as well if I face any other difficulties in this. Thanks
 
Upvote 0

Forum statistics

Threads
1,216,165
Messages
6,129,242
Members
449,496
Latest member
Patupaiarehe

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top