Datedif Excel

vrslash

New Member
Joined
Feb 3, 2021
Messages
18
Office Version
  1. 2010
Platform
  1. Windows
Hi Dear,
I'm on a job calculating expert experience, with calculating the start date and end date of the job. But when calculated manually get different results. Please help and input.
 

Attachments

  • image_2021-02-18_131239.png
    image_2021-02-18_131239.png
    79 KB · Views: 6

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi Dear,
I'm on a job calculating expert experience, with calculating the start date and end date of the job. But when calculated manually get different results. Please help and input.
xample.xlsx
ABCDEFG
1C2-B2DATEDIF(B2;C2;"D")
2Start_dateEnd_dateResultResult
312 Januari 202122 Maret 20216969
4
5COUNTA(B6:B36)COUNTA(C7:C37)COUNTA(D7:D37)SUM(B6:D6)E6-E3
6202822701
712 Januari 202101 Februari 202101 Maret 2021
813 Januari 202102 Februari 202102 Maret 2021
914 Januari 202103 Februari 202103 Maret 2021
1015 Januari 202104 Februari 202104 Maret 2021
1116 Januari 202105 Februari 202105 Maret 2021
1217 Januari 202106 Februari 202106 Maret 2021
1318 Januari 202107 Februari 202107 Maret 2021
1419 Januari 202108 Februari 202108 Maret 2021
1520 Januari 202109 Februari 202109 Maret 2021
1621 Januari 202110 Februari 202110 Maret 2021
1722 Januari 202111 Februari 202111 Maret 2021
1823 Januari 202112 Februari 202112 Maret 2021
1924 Januari 202113 Februari 202113 Maret 2021
2025 Januari 202114 Februari 202114 Maret 2021
2126 Januari 202115 Februari 202115 Maret 2021
2227 Januari 202116 Februari 202116 Maret 2021
2328 Januari 202117 Februari 202117 Maret 2021
2429 Januari 202118 Februari 202118 Maret 2021
2530 Januari 202119 Februari 202119 Maret 2021
2631 Januari 202120 Februari 202120 Maret 2021
2721 Februari 202121 Maret 2021
2822 Februari 202122 Maret 2021
2923 Februari 2021
3024 Februari 2021
3125 Februari 2021
3226 Februari 2021
3327 Februari 2021
3428 Februari 2021
35
Sheet1
Cell Formulas
RangeFormula
D3D3=C3-B3
E3E3=DATEDIF(B3,C3,"D")
B6:D6B6=COUNTA(B7:B37)
E6E6=SUM(B6:D6)
G6G6=E6-E3
 
Upvote 0
But when calculated manually get different results. Please help and input
It depends on whether you want to include the start date and the end date in your count.
If you want to include both end dates dates then use =C3-B3+1 otherwise use =C3-B3
 
Upvote 0

Forum statistics

Threads
1,215,035
Messages
6,122,791
Members
449,095
Latest member
m_smith_solihull

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