Solved

Holidays and Monday formula

Posted on 2014-01-23
7
194 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
ID: 39804003
=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
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

Open in new window

0
 

Author Comment

by:leezac
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

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

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

by:Angelp1ay
ID: 39805028
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
ID: 39805037
Great Thanks!
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

810 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