Calendar

cummingsea

Active Member
Joined
Aug 9, 2005
Messages
344
Office Version
  1. 2019
Platform
  1. Windows
Excel Workbook
BCDEFGH
2SUNDAYMONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSATURDAY
3272829303112
4*******
53456789
6*******
710111213141516
8*******
917181920212223
10*******
1124252627282930
12*******
13311NOTES
14***
15*******
16*******
17*******
18*******
19*******
20**1/1/2016New Year's Day***
21**1/18/2016Martin L. King Jr. Day***
22**2/15/16Presidents' Day***
23**3/27/2016Easter***
24**5/30/16Memorial Day***
25**7/4/2016Independence Day***
26**9/5/16Labor Day***
27**11/11/2016Veterans Day***
28**10/10/16Columbus Day***
29**11/24/16Thanksgiving Day***
30**12/25/2016Christmas Day***
January


is there a way using a formula that would enter New Years Day from Columns D20:E30 in cell G4 and using G3 as the date
 
Last edited:

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Just a thought, if your cell that shows the date were actually the date i.e. 1/1/16 and formatted as d, then you would have the full value to cross reference with
 
Upvote 0
it is a date formatted a D, any suggestions on a formula don't really want to use code
 
Upvote 0
it is a date formatted a D, any suggestions on a formula don't really want to use code


cummingsea,
The following formula in cell G4 will return the holiday name from column E as long as none of the holidays fall on the same numbered DAY:

Code:
=INDEX(Sheet1!$D$20:$E$30,SUMPRODUCT(--(DAY(Sheet1!$D$20:$D$30)=[COLOR="#FF0000"]G3[/COLOR]),ROW(Sheet1!$E$20:$E$30))-19,2)
You would need to copy it to the cell below each holiday DAY in each month. Presumably each month is on a different sheet and the holiday list is on Sheet1. Give it a try.
Perpa
 
Upvote 0
It did not work it return #VALUE! I thought maybe the error was in the last part of your formula ROW(Sheet1!$E$20:$E$30)) -19,2 So I changed it to ROW(Sheet1!$D$20:$E$30)) -19,2 but I still got the same result #VALUE!
 
Upvote 0
It did not work it return #VALUE! I thought maybe the error was in the last part of your formula ROW(Sheet1!$E$20:$E$30)) -19,2 So I changed it to ROW(Sheet1!$D$20:$E$30)) -19,2 but I still got the same result #VALUE!

cummingsea,
I didn't have that problem when I ran it on my computer so I did a search on Excel using '#Value' and this is what I found when I looked under 'Index':

"Problem: The formula has not been entered as an array (Cntl+Sft+Enter).

If you are using INDEX as an array formula along with MATCH in order to be able to retrieve a value, you will need to convert your formula into an array formula, otherwise you will see a #VALUE! error."
So you might try entering the formula with CSE.
Perpa
 
Last edited:
Upvote 0
Last edited:
Upvote 0

Forum statistics

Threads
1,215,477
Messages
6,125,036
Members
449,205
Latest member
Eggy66

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