Solved

Holidays and Monday formula

Posted on 2014-01-23
7
169 Views
Last Modified: 2014-01-23
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
Comment
Question by:leezac
  • 4
  • 3
7 Comments
 
LVL 11

Expert Comment

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

Open in new window

0
 
LVL 11

Accepted Solution

by:
Angelp1ay earned 500 total points
Comment Utility
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

Open in new window

0
 

Author Comment

by:leezac
Comment Utility
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:leezac
Comment Utility
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

by:leezac
Comment Utility
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

by:Angelp1ay
Comment Utility
Re 1st reply:
Yes that formula does holiday preferentially (looking up) and if not checks for Monday.

Re 2nd reply:
Yes, the 3 is the multiplier, the 1 is to leave it untouched.

Re 3rd reply:
"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

by:leezac
Comment Utility
Great Thanks!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now