DATEDIF Summary column with blanks

Aussie5380

New Member
Joined
Sep 30, 2022
Messages
32
Office Version
  1. 2019
Platform
  1. Windows
Hi there,

I was hoping someone may be able to shed some light on a little problem i have.

I have created a basic year/month/day calculator for work, but im having trouble totalling all the date range cells as a whole. This is the first time i've used the DATEDIF function, but it seems to do what i want it to. (please ignore the background lol its easier on the eyes while i tinker)

I have attached a pic of how it looks. I want to total all of the white cells on the left at the top where i can total the calendar days and work days. I have tried multiple SUM, SUMIF's, DATEDIF's and other formulas to total it at the top but i keep returning an error.

DATEDIF may also not be the best formula for what im trying to achieve? (im open to critical feedback)

My columns are C39:C58 (start date) E39:E58 (end date) and it will have blanks (towards the bottom) if not all fields are completed. Again, not sure if this is achievable?

Any assistance would be appreciated :)
 

Attachments

  • Capture.JPG
    Capture.JPG
    66.5 KB · Views: 16

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
I have some questions about what you're seeking.
Why do you want to sum dates?
I have tried to replicate your data here, but, I'm one day off in the total days for each row.
What function are you using for workdays? I am assuming you have Sat/Sun weekends and no holidays:

Book1
ABCDEFGH
1
2
3
4
5
6
7
8YearsMonthsDaysCal DaysWork Days
9Totals468335
10
11FromtoYear/sMonth/sDays/sCal DaysWork Days
122022-01-012022-12-3101131364260
132023-01-012023-04-15031510475
14
Sheet1
Cell Formulas
RangeFormula
G9:H9G9=SUM(G12:G13)
D12:D13D12=DATEDIF(B12,C12,"y")
E12:E13E12=DATEDIF(B12,C12,"m")
F12:F13F12=DAY(C12)
G12:G13G12=C12-B12
H12:H13H12=NETWORKDAYS.INTL(B12,C12,1)
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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