Looking for a stop command for my formula

Robert Wyatt

Board Regular
Joined
Jul 15, 2012
Messages
97
Office Version
  1. 2019
Platform
  1. Windows
I was wondering if that is some way to have my formula stop once it reaches the date set for in each column until a new year is placed in column C2?

Days Remaining in 2023 Holiday List.xlsx
ABCD
1Days remaining in 2023 Holiday List
2Year2023
3
4EventWhenThis YearDays Left
5Martin Luther King Jr. DayThe 3rd Monday In January1/16/2023-93 days
6President's DayThe 3rd Monday in February2/20/2023-58 days
7Memorial DayThe last Monday in May5/29/202340 days
8Independence DayJuly 47/4/202376 days
9Labor DayThe 1st Monday In Sepetmeber9/4/2023138 days
10Columbus DayThe 2nd Monday in October10/9/2023173 days
11HolloweenNovermber 3110/31/2023195 days
12Veteran's DayNovermber 1111/11/2023206 days
13Thanksgiving DayThe 4th Thursday in November11/23/2023218 days
14My BirthdayDecember 712/7/2023232 days
15Christmas Day December 2512/25/2023250 days
16New Year's January 11/1/2023-108 days
Sheet1
Cell Formulas
RangeFormula
C5C5=DATE(C2,1,1)+14+CHOOSE(WEEKDAY(DATE(C2,1,1)),1,0,6,5,4,3,2)
D5:D16D5=IF(C5="","",C5-TODAY()& " days")
C6C6=DATE(C2,2,1)+14+CHOOSE(WEEKDAY(DATE(C2,2,1)),1,0,6,5,4,3,2)
C7C7=DATE(C2,6,1)-WEEKDAY(DATE(C2,6,6))
C8C8=DATE(C2,7,4)
C9C9=DATE(C2,9,1)+CHOOSE(WEEKDAY(DATE(C2,9,1)),1,0,6,5,4,3,2)
C10C10=DATE(C2,10,1)+7+CHOOSE(WEEKDAY(DATE(C2,10,1)),1,0,6,5,4,3,2)
C11C11=DATE(C2,10,31)
C12C12=DATE(C2,11,11)
C13C13=DATE(C2,11,1)+21+CHOOSE(WEEKDAY(DATE(C2,11,1)),4,3,2,1,0,6,5)
C14C14=DATE(C2,12,7)
C15C15=DATE(C2,12,25)
C16C16=DATE(C2,1,1)
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
You mean so no negative values show in column D?
You could revise the formula in column D to this:
Excel Formula:
=IF(C5="","",MAX(C5-TODAY(),0) & " days")
 
Upvote 0
Solution
Yes and it works great thanks, I wouldn't know what to do if I couldn't find help from people with good minds. you need a rise, my good man. lol. Thanks again for the help.
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,180
Members
452,615
Latest member
bogeys2birdies

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