ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I check the conditions of 2 fields to return a result (https://www.excelbanter.com/excel-discussion-misc-queries/3984-how-do-i-check-conditions-2-fields-return-result.html)

Jimbob

How do I check the conditions of 2 fields to return a result
 
I am using conditional formatting in excel to highlight dates in a
spreadsheet column that are 28 days old from the current date.

I am usning the formula =A1+28<=Today() which works fine.

I now want to be able to check the condition of a second field before the
first date field is highlighted as overdue.

ie if cell A1 date is greater than or equal to 28 days and cell B1 is empty
then highlight cell A1

Any ideas anyone?



SJ McAbney

Use the AND() function in your Conditional Formatting expression.

Jimbobn

My apologies I am somewhat of a novice to excel formulas

Would I therefore add the And funtion on the end of the date funtion ie:

Condition1

Formula is =A1+28<=Today() AND =B1=Null()


"SJ McAbney" wrote:

Use the AND() function in your Conditional Formatting expression.


Bob Phillips

=AND(B1="",A1+28<=TODAY())

or maybe

=AND(LEN(B1)=0,A1+28<=TODAY())

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jimbobn" wrote in message
...
My apologies I am somewhat of a novice to excel formulas

Would I therefore add the And funtion on the end of the date funtion ie:

Condition1

Formula is =A1+28<=Today() AND =B1=Null()


"SJ McAbney" wrote:

Use the AND() function in your Conditional Formatting expression.





All times are GMT +1. The time now is 03:16 AM.

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