Sum specific range unless date is found in holiday list then Sum Different Range.

NORRILLOUS

New Member
Joined
Apr 10, 2014
Messages
36
Office Version
  1. 365
Platform
  1. Windows
1622120632240.png


1622120894846.png

As seen above I have this week and the beginning of next week. listed with how much product it required. There is also a list of Holidays

My problem is I need to sum Monday to Monday normally, unless those dates include a holiday.
For example, being Monday 5/31 is a holiday I need to sum Monday to Tuesday.

I am confused on where to start.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
View attachment 39536

View attachment 39537
As seen above I have this week and the beginning of next week. listed with how much product it required. There is also a list of Holidays

My problem is I need to sum Monday to Monday normally, unless those dates include a holiday.
For example, being Monday 5/31 is a holiday I need to sum Monday to Tuesday.

I am confused on where to start.
I can Identify if a day is a holiday with

Excel Formula:
IF(COUNTIF(Lists!$L$2:$L$12,L3)>0,"Holiday","Normal Day")

But I am now stuck again with how to sum one way if "Holiday" is found and sum another in "Normal day" is only found.
 
Upvote 0
I Found a solution w/
Excel Formula:
=WORKDAY(TODAY()-WEEKDAY(TODAY(),2),L26,Lists!$L$2:$L$12)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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