• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Conditional formatting Formula help please

salmonchild

Member
Hi all,

Could someone please help me with a formula for conditional formatting?

I need to format the whole row based on a date, whereby if the date in column BI is within a week either side of today's date (which is fixed on another sheet in cell 'Legend and Pivots'!D1) the text of the row is formatted red or similar. Have tried to express as a formula but failed.

Thank you

salmon
 
Hi Salmon,

See the attached file. Sheet1 Cell BI2 has the dat and row 2 is formatted. If this meets your requirement, just extend the range.

Regards,
 

Attachments

  • Salmon_chandoo.xlsx
    9.4 KB · Views: 5
Last edited:
Hi,

Will this work ? Kindly confirm.

P.S. - used randbetween function to genarate dates, forgot to paste special. Gave me jitters. :(
 

Attachments

  • CF.xls
    40.5 KB · Views: 3
structure example attached Somendra.

@ThrottleWorks it works partially, I can see how the helper colum works and how the CF should apply however if I can avoid helper columns that would be good and also the application of the CF in your example does not work as it should (this may be a a compatibility issue- I am running 2013) please see screencap for reference.

I was thinking originally along the lines of:

=OR(BI2>('Legend and Pivots'!D1-7),BI2<('Legend and Pivots'!D1+7))
 

Attachments

  • example ss for CF.xlsx
    9.8 KB · Views: 2
@Somendra Misra and @ThrottleWorks , thank you both for your input and solutions.

It looks like I was just a couple of iterations away from your solution Somendra- it has been a long day with many problems so I was perhaps too keen in giving upn and asking on here!

Excel inner peace has been restored!
 
Back
Top