Problems with formula for conditional formatting

DarkoDeign2

Board Regular
Joined
Jun 20, 2023
Messages
76
Office Version
  1. 365
Platform
  1. Windows
I want to highlight the rows A3:H3 if cell D3 is blank but D2 and D4 have text in them.
I have experimented with this formula: =AND(ISBLANK(D3); COUNTA(D$2:D2)>0; COUNTA(D4:D$1000)>0)
But some how this doesn't work as you can see below:

Book4
ABCDHI
2WeekDateTime slotTopic
3wk302023-07-26BBQ PartyFALSE
4wk302023-07-26Pay electrical billsFALSE
5wk302023-07-26Renew subrscription of newspaperFALSE
6wk302023-07-26Get a hair cutFALSE
7wk302023-07-26ShoppingFALSE
8wk302023-07-26CookingFALSE
9::::: TRUE
10wk312023-08-02Walk the dogFALSE
11::::: FALSE
Agenda
Cell Formulas
RangeFormula
A3:A11A3=IFERROR(IF(ISBLANK($B3),":::::",ISOWEEKNUM($B3)),":::::")
B4:B11B4=IF(D4="","",LOOKUP(9^9,B$3:B3)+7*(B3=""))
I3:I11I3=AND(ISBLANK(D3), COUNTA(D$2:D2)>0, COUNTA(D4:D$1000)>0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A3:G1000Expression=AND(ISBLANK(D3); COUNTA(D$2:D2)>0; COUNTA(D4:D$1000)>0)textNO


But if I put the same formula in Column I (helper column) and change the conditional formating formula to: =$I3=TRUE it works as you can see below:

Book4
ABCDHI
2WeekDateTime slotTopic
3wk302023-07-26BBQ PartyFALSE
4wk302023-07-26Pay electrical billsFALSE
5wk302023-07-26Renew subrscription of newspaperFALSE
6wk302023-07-26Get a hair cutFALSE
7wk302023-07-26ShoppingFALSE
8wk302023-07-26CookingFALSE
9::::: TRUE
10wk312023-08-02Walk the dogFALSE
11::::: FALSE
Agenda (2)
Cell Formulas
RangeFormula
A3:A11A3=IFERROR(IF(ISBLANK($B3),":::::",ISOWEEKNUM($B3)),":::::")
B4:B11B4=IF(D4="","",LOOKUP(9^9,B$3:B3)+7*(B3=""))
I3:I11I3=AND(ISBLANK(D3), COUNTA(D$2:D2)>0, COUNTA(D4:D$1000)>0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A3:G1000Expression=$I3=TRUEtextNO


What am I doing wrong?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I believe that you need to lock down your columns, but allow your rows to float, i.e.
Excel Formula:
=AND(ISBLANK($D3);$D2<>"";$D4<>"")
 
Upvote 1
Solution

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top