Regional options

maheshr68

Board Regular
Joined
Sep 25, 2009
Messages
68
Greetings!!

trying dateif to calculate, but getting value error as below


3/16/2011 3/15/2011 =DATEDIF(F2,E2,"d") 1 (works fine)

16/3/2011 15/3/2011 =DATEDIF(F3,E3,"d") (#VALUE!)
16/3/2011 15/3/2011 =DATEDIF(F3,E3,"md") (#VALUE!)

Best Regards,
Mahesh
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Darren Bartrup

Well-known Member
Joined
Mar 13, 2006
Messages
1,296
Office Version
  1. 365
Platform
  1. Windows
Surely that's a regional thing as your post title says.

with your settings 3/16/2011 translates to 16th March 2011 and Excel calculates it.

But 16/3/2011 translates as 3rd of which month 2011?

Edit:
I take it you're importing data that is coming in in both formats and want a solution.
The problem there is how do you decide whether 2/1/2011 is 2nd Jan, or 1st Feb? Can you get the source file to give it in the correct format?
 
Last edited:

maheshr68

Board Regular
Joined
Sep 25, 2009
Messages
68
mm/dd/yyyy dates work with excel fine

dd/mm/yyyy dates have the #VALUE! error


<quote> 16/3/2011 translates as 3rd of which month 2011?

16/3/2011 translates to 16th March 2011 in regional settings

any possible method to deal with this?

Best Regards,
Mahesh
 

Darren Bartrup

Well-known Member
Joined
Mar 13, 2006
Messages
1,296
Office Version
  1. 365
Platform
  1. Windows
All I can think of is the Control Panel in Windows and change your location, but then dd/mm/yyyy will stop working.
 

maheshr68

Board Regular
Joined
Sep 25, 2009
Messages
68
Greetings!

As Darren points - changing the mm/dd/yyyy to dd/mm/yyyy does not help and the value error persists..:oops:

Any valuable pointer to solve this - trying to build on the result obtained thro this to write IF conditions further.

Best Regards,
Mahesh
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,943
Messages
5,856,432
Members
431,813
Latest member
seconduser

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
Top