Holiday Dates=Sorting Issue

Data123

Board Regular
Joined
Feb 15, 2024
Messages
68
Office Version
  1. 365
Platform
  1. Windows
I would like to sort a column and expand it to all the other columns, but I have a column with holidays (dates) listed. Several of my formulas will exclude those dates purposely, by listing the cell numbers by location. When I try to sort a column and expand the sort it moves the holiday dates all over and scrambling them to many cells. Is there a way hide the holiday dates column away from the spreadsheet, but still exclude them in necessary formulas?
 

Attachments

  • holidays.JPG
    holidays.JPG
    11.6 KB · Views: 12
so to be clear i have spreadsheet "a" that is my original sheet with the column of holiday dates shown in the original post above. i need to move the holiday dates to a separate sheet (lets call it sheet "b") and name it "holiday" in the name box? i also need to delete the holiday dates from my original spreadsheet (sheet a), correct?

so in my original sheet "a" i have columns that use formulas. in those formulas they list the cells of the holiday dates to exclude them from being used when calculating data. here is part of the formula for the holiday dates; (WORKDAY(TODAY(), -10,$N$2:$N$13)). the "$N$2:$N$13" represents the cells where the original holiday dates reside. so my question is if i move the holiday dates to another sheet, what do i replace, "$N$2:$N$13" with and how will it know to look at sheet "b"?
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Say holiday dates are shifted to sheet "abcd" in B2:B13.
In the formula $N$2:$N$13 is to be replaced by 'abcd'!$B$2:$B$13
 
Upvote 0
Solution
If you "cut" and paste the holiday cells to a new sheet you shouldn't have to change anything, your formulas should update.
 
Upvote 0
If you "cut" and paste the holiday cells to a new sheet you shouldn't have to change anything, your formulas should update.
Thanks, yes that is what I did (cut and paste) and it did not make the change in the formula.
 
Upvote 0
Thanks, yes that is what I did (cut and paste) and it did not make the change in the formula.
If you formula is
- (WORKDAY(TODAY(), -10,$N$2:$N$13))
did you select that exact range $N$2:$N$13, then cut it and move it to another sheet ?
If you are referring to that range in more than one formula are they looking at exactly the same range ?

If it still doesn't work show us the cell with your formula in it and in the same screenshot include the formula box at the top so we can see the formula.
Do this before and after you have cut and paste the formula moving it to another sheet.
 
Upvote 0
Thanks, does anyone know if the order of dates for holidays makes any difference? If so is the order simply the earliest date and year prior to later? Also, what format should the dates be in 01/01/2024 or 1/1/2024?
 
Upvote 0
does anyone know
• if the order of dates for holidays makes any difference?
No - I don't believe so.
• If so is the order simply the earliest date and year prior to later?
N/A based on the above
• Also, what format should the dates be in 01/01/2024 or 1/1/2024?
The date format shouldn't matter as long as all the dates are being recognised in Excel as Dates (and not Text)

Note: quickest way to check they are not text, highlight the cells with the dates, Ctrl+Shift+~, they should all change to be numbers. Ctrl+Z (undo) to restore the date format. (Anything that doesn't change is being seen as text)
 
Upvote 0
does anyone know
• if the order of dates for holidays makes any difference?
No - I don't believe so.
• If so is the order simply the earliest date and year prior to later?
N/A based on the above
• Also, what format should the dates be in 01/01/2024 or 1/1/2024?
The date format shouldn't matter as long as all the dates are being recognised in Excel as Dates (and not Text)

Note: quickest way to check they are not text, highlight the cells with the dates, Ctrl+Shift+~, they should all change to be numbers. Ctrl+Z (undo) to restore the date format. (Anything that doesn't change is being seen as text)
thanks alex! glad the date format or order does not matter. also, the dates became numbers great to know this verification strategy! may i ask can you look at this post in case you know the answer please? Sort Column But Exclude Rows On Bottom
 
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

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