Solved

Holidays and Monday formula

Posted on 2014-01-23
7
212 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
[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
  • Learn & ask questions
  • 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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 

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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Suggested Solutions

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 a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

738 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