Combined Workday.Intl and IF function - function

Im trying to combine a WORKDAY.INTL and IF function together...
Would like the blue cell to add the orange duration to the green cell but only if the yellow cell is empty.
if the yellow cell has a date, then add the yellow cell and orange duration.
Ive tried combining the functions but just cant get it to work.
Holidays are poart of the WORKDAY.INTL function are the standard set of bank holidays in the UK. Furthermore, have used "1" to ensure the calculation does not include saturdays and sundays.
Any help would be greatly appreciated.

Related

SSRS 2013 - Changing colour of cell dependent of outcome of expression within cell

I've asked a similar question recently (See below) however I'm now struggling with a similar scenario.
I have a cell with an expression which is a formula to calculate a % difference, and then depending on the value the percentage difference, I want the cell to change colour. if it's over 1% red, if it's under 1%, green.
The current expression which works to calculate the percentage is;
=(Sum(Fields!P1RateAmount.Value) - Sum(Fields!P1Amount.Value)) / (SUM(Fields!P1Amount.Value)) * 100
I'm presuming I need to wrap a IIF around it, but when I have tried it hasn't worked
If anyone could help me with this I'd be very grateful
Also for context, the formula can't be done in SQL to get a number as I'm using collapsing columns and the percentage formula I'm using in SQL brings back the first row when used within SSRS, and doesn't take into account the full sum
Previous Question asked as referred to above
The expression for the BackgroundColor property of your text box would be:
=IIF( (Sum(Fields!P1RateAmount.Value) - Sum(Fields!P1Amount.Value)) / SUM(Fields!P1Amount.Value) * 100 > 1, "#fff5fa", "MintCream")
I prefer a light shade of green or red but you can substitute the colors with Red and Green if you want to hit them over the head with it.
Just for anyone who may be looking at something similar, the following worked for me
=Switch(
me.value <=-1 OR me.value >=1, "Red"
,me.value >-1 OR me.value <1, "Green"
)
I think this is because the cell already had an expression of
=(Sum(Fields!P1RateAmount.Value) - Sum(Fields!P1Amount.Value)) / (SUM(Fields!P1Amount.Value)) * 100
to get number, the 'IIF' and then referencing the cells wouldn't work. However me.value would look at the value of the cell rather than working the formula, thus bringing back the desired colour

conditional formatting - hightlight a cell

Can anyone assist me regarding conditional formatting in google sheets? It's pretty simple, though I can't seem to get it to work, my goal is to highlight or color the cell green (AQ) if (AR) is Y and red if (AR) is N. The custom value I'm trying to use is =$AR="Y". Then I choose background color green; however, it's not working. Please assist me. Thank you very much...
Neither AQ nor AR is a valid cell reference. Use AR1 or whatever cell you are relying on. Google's documentation is pretty good on the subject: see here.
Relative Reference Example
The following example highlights each cell in the range AQ1:AQ11 green if "Y" or "y" is in the adjacent cell in column AR.
Absolute Reference Example
If I wanted every cell in the range AQ1:AQ11 to be colored green based only on the value of AR1, I would use =$AR$1="Y" as my formula instead.

Expression showing date field Red SSRS

What expression do I need to get a date field(DateAdded) to turn red 3 days after "today"? (ex: Today is 3/13. The field would turn red on 3/16 and stay red)
I think this is what you need. Assuming stay red is keep it red if the difference is 3 days or more.
=IIF(Datediff(DateInterval.Day,Fields!YourField.Value,Today)>=3,"Red","Transparent")
DateDiff function returns the difference between two dates in terms of a specific interval of time.

SSRS Conditional Formating Where There's NULL

I have a report with the number of attendees by month shown and rows grouped on an "Attended" or "Did Not Attend" Attendance_Indicator flag (this in itself is a sub-group of a higher level of grouping).
For legibility I wanted any row of Attended data with a coloured background (say LightGrey) and any other rows transparent.
I have highlighted the cells within the table at this grouping level and used the expression below:
=IIF(Fields!Attendance_Indicator.Value = "Attended","LightGrey","Transparent")
This partial works in that where the count of attendees is >0 the cells' background colour changes to grey. However, in cells where the count of attendees is 0 the background remains transparent.
Can anyone advise how I can get any cells, whatever the count value, on the Attended row to change background?
IsNothing is your friend here. You may need to fiddle with the logic for your colours (e.g. NOT IsNothing rather than IsNothing)... but you get the idea.
=IIF(IsNothing(Fields!Attendance_Indicator.Value) OR Fields!Attendance_Indicator.Value) = "Attended","LightGrey","Transparent")

Conditional formating based on adjacent cell using script

I have a spreadsheet that looks like (but much larger):
Both the student names and the house assignments are pulled from other sheets.
I am looking for a google script that would conditionally format a student name based on the house they are assigned to. The house assignment will always be listed in the cell to the right of the name.
I realize this can be done with conditional formating (For instance: Custom formula =B3:B4="6-Blue"), but it becomes an arduous process because I have to go into each vertical range individually to make a change if the house name changes. With a google script, I could find and replace all instances of a house name.
Something like Eric Koleda's answer may work, but I am unsure how to reference the ranges and add multiple values to search for.
You can still do this with conditional formatting!
You can set up conditional formatting on a per column basis, you don't have to change the formatting, only the name of the color in your house column.
Conditional formatting formula: =ISNUMBER(FIND("Red", $C4))
Conditional formatting range: B4:C
This will try and find the text Red within all cells in Column C starting at C4. If Red is found in a cell, FIND() will return the index of Red, if it doe snot find Red is returns an error. You can check this with ISNUMBER(), which returns true or false if the value is a number or not.
This will color the adjacent columns on that row within the range. ie. A range of B4:C will color the cells in column C and B, a range of just B4:B will only cause the cells in column B to be colored.
You only need to setup one conditional formatting per color, per set of columns that you have. After that, just changing the colors under your houses will change the formatting.
Here is an example sheet I made for you: Example Google Sheet
Picture of Sheet with formatting: