SOLVED

Highlighted
Contributor

# Working and non working days

Hi,

There are values from cell E4 to NF73 and corresponding percentage change from cell NJ4 to ABJ73. The purpose of analysis is to return a % difference in current date as compared to immediately previous day and if there is no value in previous day then to take value from immediate last date which has value in it.

Thus, if value in current and previous dates are same then % change will be 0%. There is conditional formatting of hiding 0% return values from cell NJ4 to ABJ73. And now the problem starts. I cannot analyse it properly as I cannot differentiate 0% return between a working day and a non working day. By working day, I mean to say cell that has value in column A and B. When there is no value in column A and B, it will be a non working day and it would have taken value from immediate preceding date that has a value. For example, 04/01/1951 and 05/01/1951 both cells have a value of 20.87 in cell B255 and B256. And thus, cell NM5 must show 0% as it is an working day. Continuing it further, 06/01/1951 and 07/01/1951 has no value and so their value will be 20.87 i.e. value from immediate preceding date. And return for NN5 and NO5 will also be 0% but as it is a non working day, its value should not be shown. So, the solution should show 0% return if its a working day and not to show 0% if its a non working day.

I will appreciate any questions to be clarified. Also, any alternate solutions are also highly welcomed. The spreadsheet is attached herewith.

Thanks!

3 Replies
Highlighted
Best Response confirmed by Dharmendra_Bharwad (Contributor)
Solution

# Re: Working and non working days

Not to show days-off the formula for the rule

could be

``=ISERROR(MATCH(DATE(\$AK4,MONTH(AM\$2),DAY(AM\$2)),\$A:\$A,0))``
Highlighted

# Re: Working and non working days

Thanks alot @Sergei Baklan. The formula and rule both works very accurately.

Thanks again for repeated help!

Highlighted