Difference date calc NAV <> Excel?
lyot
Member Posts: 202
I need to recreate some calculations from an Excelfile into NAV.
Excel:
Cell =29/10/10 but represented as a number so it shows 40480
NAV:
I found out that Excel internally works with date 01/01/1900 for all it's date calculations.
What is even more strange is that when I do a Count on the Date table in NAV with filter: 01011900..291010
the result is... 40479 ](*,)
Any advice?
Excel:
Cell =29/10/10 but represented as a number so it shows 40480
NAV:
I found out that Excel internally works with date 01/01/1900 for all it's date calculations.
EVALUATE(dat,'01011900');
MESSAGE('%1',291010D - dat);
However.. the result from this calculation is 40478. ](*,)What is even more strange is that when I do a Count on the Date table in NAV with filter: 01011900..291010
the result is... 40479 ](*,)
Any advice?
0
Comments
-
lyot wrote:I need to recreate some calculations from an Excelfile into NAV.
Excel:
Cell =29/10/10 but represented as a number so it shows 40480
NAV:
I found out that Excel internally works with date 01/01/1900 for all it's date calculations.EVALUATE(dat,'01011900'); MESSAGE('%1',291010D - dat);However.. the result from this calculation is 40478. ](*,)
What is even more strange is that when I do a Count on the Date table in NAV with filter: 01011900..291010
the result is... 40479 ](*,)
Any advice?
There is definitely something fishy with the date calculation. I tried with closer days and got proper result on Nav and Excel
Same result on Nav and Excel
MESSAGE('%1',100611D - 010611D);
Resulted 9
and also with Excel
0 | A | B | C
1 | 10.6.2011 | 1.6.2011 | 9
C1 = A1-B1K.S.0 -
The problem might be in Excel, I did few day tests on both platforms, Navision can calculate even beyond 1890 as Excel stops 1900
I hope this helps.K.S.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions