ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Have a date chane if it is +/- 2 days from the previous date (https://www.excelbanter.com/excel-discussion-misc-queries/76592-have-date-chane-if-2-days-previous-date.html)

Gohan51D

Have a date chane if it is +/- 2 days from the previous date
 

I have a spreadsheet of dates that track visits. The visits are
supposed to be 7 days appart but +/- 2 days is acceptible. Is there a
way to change the backround color of the cell if the date is +/- 2 days
from the date in the previous cell.

Gohan51D


--
Gohan51D
------------------------------------------------------------------------
Gohan51D's Profile: http://www.excelforum.com/member.php...o&userid=32274
View this thread: http://www.excelforum.com/showthread...hreadid=521228


Dave O

Have a date chane if it is +/- 2 days from the previous date
 
You can do that with conditional formatting. Set the condition to
"Formula Is" and use this formula:
=ABS(B1-A1)<=2
....where A1 and B1 contain the dates.



All times are GMT +1. The time now is 09:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com