Excel Help - using IF and WORKDAY functions to generate a due date - excel

I am trying to forumlate an IF statement that will generate a due date by taking a given date and adding business days to that dependent on a value in a separate column.
I started off with:
=IF(E3="Fatal",D3+1,IF(E3="Life Threatening",D3+1,IF(E3="Non-Fatal",D3+3,IF(E2="Non-Life Threatening",D3+3,IF(E3="Non-Susar",D3+5,"")))))
But this does not use the WORKDAY or WORKDAY.INT functions at all and is something I am now needing to add. I have collated a list of bank holidays to add into the new function these are listed - 'Backend Sheet (No Edit)'!C1:C752
Example of the sheet is below, I basically need to have it add 1,3,5 business days to the "query received date" dependent on the value in the "seriousness" column and print the new date into the "first attempt due by date" column
Appreciate any help that can be given!

Put your seriousness in a separate helper table along with the days adjustment. Then use workday to find your attempt date.
=workday([date received], index([helper table adjustment],match([this table seriousness],[helper table seriousness],0)),'Backend Sheet (No Edit)'!C1:C752)

Related

Why won't Excel Filter function work with Month(A1)=Month(G1)?

I have a rather detailed Review\Score Card workbook where I tally scores when checking the previous day's work before submitting it for billing. On the Scorecard worksheet I want to show a list of review comments for the jobs from the previous month (monthly review). A simple filter with the tech's name works fine, but when I include month filtering it does not work.
Working
=FILTER('Install Reviews'!A:AD, ('Install Reviews'!B:B=ScoreCard!L3))
Not Working - Returns CALC error.
=FILTER('Install Reviews'!A:AD, ('Install Reviews'!B:B=ScoreCard!L3)*(MONTH('Install Reviews'!E:E)=MONTH(ScoreCard!B6)))
The 'Install Reviews'!E:E column contains valid dates. A simple formula in a separate cell of =MONTH('Install Reviews'!E120) returns "12". The value in ScoreCard!B6 is also a valid date and MONTH(ScoreCard!B6) returns "12", so I know the values in the referenced cells are valid dates.
Doing more testing I can return the month I want with Greater Than OR Less Than statements, but why won't the MONTH()=MONTH() statement work?
Working
FILTER('Install Reviews'!A:AD,('Install Reviews'!B:B=ScoreCard!B4)*(('Install Reviews'!E:E>B6)*('Install Reviews'!E:E<EOMONTH(B6,0))))

Add x Days to a Date Based on vlookup Output Excel

What I'm trying to do is give a due date based on an input date, type of review, and department.
For example if the department is ABC and the review is retrospective, the due date will be the input date + 30 days.
But if the department is ABC and the review is concurrent, then the due date will be input date + 1 day.
I know I can concatenate the department and review into the vlookup table but I'm not so sure how to get the output to be the due date that I want.
Can anyone help?
EDIT:
Per the first answer below, I hashed out an input table with concatenated columns just in case I needed them. It is a bit more complicated than I originally thought.
Input table with date logic
I'd love to simply edit the source data but the report isn't readily available in the database. Could I still use the suggestions below?
Assuming you have a lookup table for the number of days to add depending upon the department and review type similar to the one below, you can use an INDEX/MATCH/MATCH and simply add it to the input date:
=$A2+INDEX($H$4:$J$5,MATCH($B2,$G$4:$G$5,0),MATCH($C2,$H$3:$J$3,0))
SOLUTION FOR AN ALTERNATIVE LOOKUP TABLE LAYOUT
If your layout table is more like as below, you can use a MINIFS formula (or MAXIFS if you would prefer):
=$A2+MINIFS($I$3:$I$8,$G$3:$G$8,$B2,$H$3:$H$8,$C2)

How to fix a Index+Match based on input value thats also dynamic

I have a great challenge I hope you can help me with.
What I want to achieve:
In the sheetname “Overal campaign information” I have an identical setup to the other sheetnames (for example Week 1 – Email, Week 1 – CPC and so on).
I want to user to first select their week and year and based (under E1) on these to selections, you can select a type that matches that week and year input.
What have I tried?
I have written an INDEX+MATCH that works well, but that is based on a hard coded sheet name and is not dynamic.
I have also tried the INDIRECT function to find information regardless of worksheet name, but failed hard
I have tried to CONCATENATE year+week to get a key to match against point 1, but also not succeeded
Wanted result
Based on the time frame selection (week and year) the type will show available types that matches that input.
Then it will fill in the information in C1:C13 and B17:V:300
Not really clear what you means by "fill in the information in C1:C13". But formula in 'Overal campaign information'!B17 could be
=OFFSET(INDIRECT("'Week "&$F$2&" - " & $F$4&"'!$B$17"),ROW(B17)-17,COLUMN(B17)-2)
This then can be filled into 'Overal campaign information'!B17:V300.

Sharepoint IF statement for Aged days column

I have a list with the following columns [status], [date received], [aged days]. Currently [aged days] is a calculated field with the following:
=DATEVALUE(TEXT(NOW(),"mm/dd/yyyy"))-DATEVALUE(TEXT([Date Received],"mm/dd/yyyy"))
which works and shows aged days since the date entered into [date received]. I would like this field to stop counting once [status] changes to "complete". How would I use an IF statement to achieve this? Thinking it would start like this but I'm stumped after that.
=IF([status])="complete",....
We can use the following formula to achieve it.
=IF([status]="complete",DATEVALUE(TEXT(NOW(),"mm/dd/yyyy"))-DATEVALUE(TEXT([Date Received],"mm/dd/yyyy")),"")

Error in Calculated Column (using Today) in DataSheet View - Sharepoint 2010

I have calulated column which display's the value based on the difference between today and requested date field.
=Today-[Requested Date]
This is working fine in Sharepoint Standard View. But the same is not working with the datasheet view . The calculated column is showing as below
=#NAME?-[Requested Date].
Due to this i am not able to save the data. Can anyone please let me know how to solve this ?
Which SharePoint version are you using?
I tried the same scenario using SharePoint 2013 and was able to add the values in both standard and datasheet views. I am assuming you might have used the same steps.
Create 2 new columns named RequestedDate(DateTime) and
Today(Single line of text).
Add a new column of type calculated field with formula
=Today-[Requested Date].
Now delete the Today column.
Try entering the data in both the views.
First I have used today() function to calculate difference between 2 days except working days. The list is not automatically updating. If we change the Start_Date, then it calculates and gives the value. Can you suggest me why this happens?
You have mentioned in your post that there is some tricks in using today() function. I have created separate Today_Date column in my list. And Used the same column name in finding difference between 2 days. Here also the same problem exists.
The formula I used is,
=IF(AND((WEEKDAY([Today Date],2))<(WEEKDAY([Release Date],2)),((WEEKDAY([Release Date],2))-(WEEKDAY([Today Date],2)))>1),(((DATEDIF([Release Date],[Today Date],"D")+1))-(FLOOR((DATEDIF([Release Date],[Today Date],"D")+1)/7,1)*2)-2),(((DATEDIF([Release Date],[Today Date],"D")+1))-(FLOOR((DATEDIF([Release Date],[Today Date],"D")+1)/7,1)*2)))
Please tell me how to make the difference between 2 date values update automatically every time I open the list.
Then I tried the trick which you have mentioned above. But it works while I enter the data. When I open the list for the next day or some other day's after the Calculated column is not taking the current day's value, do the data remains same. what should I need to do in case it needs to take current date's value and calculate the formula?

Resources