# Easy task, I'm sure of it - Formula

#### Justijb

##### New Member
Good Afternoon,

I've always had luck in this forum, hopefully my luck continues. I have column c filled with the results of a formula (date difference expressed in number of days). What would the formula be to change column C to:

1) If less than 14 days, display "0"
2) If greater than 14 days, add the difference past 14. e.g, 27 days = 13

### Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
=if(b1-a1<14,0,b1-a1-14)
assuming the dates you are subtracting are in a1 and b1

Last edited:
Thank you sir. H/T. ****, I love this forum.

Replies
3
Views
135
Replies
6
Views
634
Replies
1
Views
799
Replies
11
Views
887
Replies
4
Views
382

1,219,671
Messages
6,149,613
Members
450,904
Latest member
Gracifer

### 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.

### Which adblocker are you using?

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

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