Easy task, I'm sure of it - Formula

Justijb

New Member
Joined
Aug 16, 2016
Messages
43
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
 

Some videos you may like

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

t0azt

Board Regular
Joined
Aug 1, 2012
Messages
134
=if(b1-a1<14,0,b1-a1-14)
assuming the dates you are subtracting are in a1 and b1
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,109,362
Messages
5,528,257
Members
409,811
Latest member
pjwhyman

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top