Solved

Holidays and Monday formula

Posted on 2014-01-23
7
202 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
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!
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…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

792 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