Problem with Identifying Sun & Holidays, M-F, Sat for analysis

Sunny54321

New Member
Joined
Mar 26, 2014
Messages
22
Problem with Identifying Sun & Holidays, M-F, Sat, (using Excel 2010)

I have been trying to create a sheet where the user can conduct some type of analysis (MEAN, MEDIAN, MODE) over some data that occurs over a ‘SELECTABLE’ range of dates. The user should be able to select one of three sets; “M-F”, “Sat” or “Sun & Holidays”. The data would have a list of dates to the far left “COL A”. MEASUREMENTS would be in “COL B, C, D, E”. I have created an array of HOLIDAYS on a separate area to the far right (for now).

I have been experiencing difficulties in trying to pull off calculating the relevant dates. Any suggestions? I have tried to create a separate column having a “conditional” equation to “populate” with the dates of interest, then sum the data for those specific dates that are identified.

For example, I want to get the MEAN from Jan 31, 2012 to Jan 31, 2013 but have the option to select M-F or Sun&HOL or Sat (using a cell that has a "Data Validation" pull down list somewhere)

Any recommendations are welcome.

Thanks,
Sunny

DATE
Jan 31, 2013 5 6 7 8
Jan 29, 2013 8 7 6 9
.
.
.
Jan 31, 2012 7 3 5 7
Jan 29, 2012 1 4 4 3
.
.
Feb 14, 2011


HOLIDAYS
New Years Eve31-Dec-11
New Years Day1-Jan-12
Martin Luther King's Bday16-Jan-12
President's Day20-Feb-12
Cezar Chavez31-Mar-12
Memorial Day28-May-12
Fourth of July4-Jul-12
Labor Day3-Sep-12
Veterans Day11-Nov-12
Thanksgiving22-Nov-12
Black FR23-Nov-12
Christmas Eve24-Dec-12
Christmas Day25-Dec-12
New Years Eve31-Dec-11
New Years Day1-Jan-12
Martin Luther King's Bday16-Jan-12
President's Day20-Feb-12
Cezar Chavez31-Mar-12
Memorial Day5/28/2012
Fourth of July 20124-Jul-12
Labor Day 20123-Sep-12
Veterans Day 201212-Nov-12
Thanksgiving 201222-Nov-12
Black FR23-Nov-12
Christmas Eve 201224-Dec-12
Christmas Day 201225-Dec-12
New Years Eve 201231-Dec-12
New Years Day1-Jan-13
Martin Luther King's Bday21-Jan-13
President's Day18-Feb-13
Cezar Chavez29-Mar-13
Memorial Day27-May-13
Fourth of July4-Jul-13
Labor Day2-Sep-14
Veterans Day11-Nov-14
Thanksgiving28-Nov-14
Black FR29-Nov-14
Christmas Eve24-Dec-14
Christmas Day25-Dec-14
New Years Eve31-Dec-14
New Years Day1-Jan-15
Martin Luther King's Bday20-Jan-15
President's Day17-Feb-15
Cezar Chavez28-Mar-15
Memorial Day26-May-15
Fourth of July4-Jul-15
Labor Day1-Sep-15
Veterans Day10-Nov-15
Thanksgiving27-Nov-15
Black FR28-Nov-15
Christmas Eve24-Dec-15
Christmas Day25-Dec-14
New Years Eve31-Dec-15
New Years Day1-Jan-16

<tbody>
</tbody>
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
If f22 holds a date then =TEXT(F22,"ddd") will return the day and you can filter for that, though it won't do holidays on that alone
 
Upvote 0

Forum statistics

Threads
1,216,746
Messages
6,132,477
Members
449,729
Latest member
davelevnt

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