Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
palvarez8
Frequent Visitor

Calculating Days Between

Hi community.

 

I have two columns in my excel worksheet with two types of  dates. 

 

#1 starting date of the work

#2 End date of the work.

 

I need to calculate how many days has passed since the work started but the end date must be blank (this means that the work has not finished yet)

 

any ideas?

 

Thanks!

1 ACCEPTED SOLUTION
Washivale
Resolver V
Resolver V

Hi There,

 

you can use following formula to calculate number of days passed since work Started.

 

i am assuming start date is in column B, and End Date is in Column C

 

enter Number of days in Column D as follow

 

=If(C2="", Today()-B2,C2-B2)

 

convert column format to General

 

Explanation 

C2=""  This part of formula will check if end date is blank, if it is blank if condition will return true and below condition will run

 

Today()- B2 : Today() will return todays date and Start date will be substracted from Todays date.

 

if End date is present then C2-B2 will return days passed between Start and End Date.

 

if you dont wish to calculate days for work finished records, you can use below formula

 

=If(C2="", Today()-B2,"")

 

let me know if it works!

 

Thank You

View solution in original post

1 REPLY 1
Washivale
Resolver V
Resolver V

Hi There,

 

you can use following formula to calculate number of days passed since work Started.

 

i am assuming start date is in column B, and End Date is in Column C

 

enter Number of days in Column D as follow

 

=If(C2="", Today()-B2,C2-B2)

 

convert column format to General

 

Explanation 

C2=""  This part of formula will check if end date is blank, if it is blank if condition will return true and below condition will run

 

Today()- B2 : Today() will return todays date and Start date will be substracted from Todays date.

 

if End date is present then C2-B2 will return days passed between Start and End Date.

 

if you dont wish to calculate days for work finished records, you can use below formula

 

=If(C2="", Today()-B2,"")

 

let me know if it works!

 

Thank You

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.