Solved

# Holidays and Monday formula

Posted on 2014-01-23
Medium Priority
231 Views
I have this formula where it works for Holidays to find multiplier to mulitiply value by.  I need now to add
If a Monday multiply value starting at  O11 by 3.

=IFERROR(VLOOKUP(TODAY(),Holidays!B\$2:D\$9,3,0),1)*E11*J11

I have attached a sample file
ee---workdays-multipliers--3-.zip
0
Question by:leezac
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 4
• 3

LVL 11

Expert Comment

ID: 39804003
``````=IFERROR(VLOOKUP(TODAY(),Holidays!B\$2:D\$9,3,0),1)*IF(WEEKDAY(TODAY(),1)=2,3,1)*E11*J11
``````
0

LVL 11

Accepted Solution

Angelp1ay earned 2000 total points
ID: 39804007
If you only want to multiply up if it's not also a holiday then you need to combine your conditions:
``````=IFERROR(VLOOKUP(TODAY(),Holidays!B\$2:D\$9,3,0),IF(WEEKDAY(TODAY(),1)=2,3,1))*E11*J11
``````
0

Author Comment

ID: 39804260
So would I use this one for if there are Holidays or not.  I need for it to calculate by 3 if it is just a monday and if it is a Holiday - it will use the table.

=IFERROR(VLOOKUP(TODAY(),Holidays!B\$2:D\$9,3,0),IF(WEEKDAY(TODAY(),1)=2,3,1))*E11*J11
0

Author Comment

ID: 39804270
Can you explain the formula

IF(WEEKDAY(TODAY(),1)=2,3,1

Is the 3 going to be the multiplier if today is a Monday?
0

Author Comment

ID: 39804314
I am confused with two answers -  I always will calculate Monday except when it is a Holiday.   When Monday is a Holiday - it will look at Tuesday to calculate 4 days which is used from Holidays tab.

So I still think I will use this one.
=IFERROR(VLOOKUP(TODAY(),Holidays!B\$2:D\$9,3,0),IF(WEEKDAY(TODAY(),1)=2,3,1))*E11*J11
0

LVL 11

Expert Comment

ID: 39805028
Yes that formula does holiday preferentially (looking up) and if not checks for Monday.

Yes, the 3 is the multiplier, the 1 is to leave it untouched.

"I always will calculate Monday except when it is a Holiday."
If it's a holiday, it uses the multiple looked up from the holiday sheet, otherwise it checks if it's a Monday, i.e. if it's both a holiday and a monday then it just looks to the holiday sheet and ignores the fact it's a monday.

"it will look at Tuesday to calculate 4 days which is used from Holidays tab"
I don't know what you mean by this?
0

Author Comment

ID: 39805037
Great Thanks!
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
###### Suggested Courses
Course of the Month15 days, 2 hours left to enroll