Formula fails when Excel openned in diff locale settings (decimal point v comma)

gjgj

New Member
Joined
Jan 10, 2011
Messages
15
Hi, thanks for reading!

Using Excel 2007 and cant share file right now but it's easy to explain:

Basically, I have a formula calculating the difference between 2 cells which are custom formatted to display seconds in this way:
hh:mm:ss.000 and calculations are done with these numbers which should display in normal decimal style. When comma decimal dividers Excel versions are used when working in the file, my last formula output gives 'VALUE' error.
Here is the breakdown:

So A1 is the start time, custom formatted as hh:mm:ss.000.
A2 is finish time, also formatted as hh:mm:ss.000.
A3 is the difference A1-A2, custom formatted as 's.00'.

In A4 a number is entered (in 'General' formatting') which displays the amount of events needed to happen in the time displayed in A3:
A4 = # of events.
A5 shows the amount of events per second, but in text format so = A4/TEXT(A4, "s.000") and custom formatted to '0.00 "eps"'

So, in one example
A1 = 00:00:10.500 (10.5 seconds showing as hh:mm:ss.000)
A2 = 00:00:05.500 (5.5 seconds displaying as hh:mm:ss.000)
A3 = 5.00 (5 seconds displaying as formatted as s.00)
A4 = 5
A5 = 1 eps

However, English locales use the period point dot as the divider for the decimal place normally but several other countries use a comma.
So now, several people who work with in the same file with commas as decimal points enter in data in A4.
When these countries save Excel the formula messes up displaying 'Value', but the divider that appears in the saved file is still a dot due to custom formatting i guess.
Anyone any suggestions? Thanks!!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
bump!? :s

Hi, instead of using formatting to show the number of seconds, would it not be better to convert the difference between the two times to seconds and then perform the calculations - for example:


Excel 2013
AB
100:10.500
200:05.500
35.0< Format as general
45< Format as general
51< Format as general
Sheet1
Cell Formulas
RangeFormula
A3=(A1-A2)*24*60*60
A5=A4/A3
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,269
Members
449,075
Latest member
staticfluids

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