Format a cell based on cells in the same row

colinharwood

Active Member
Joined
Jul 27, 2002
Messages
426
Office Version
  1. 2019
Platform
  1. Windows
Hi
Is there a way, to format cell C10 to be green if any of the cells in the range D10:S10 contain text,
I have been trying conditional formatting, but cannot find a way to make it work
Thanks
Colin
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
=counta(d10:s10)>0

counta - test to see if a cell is empty

or do you mean contains text and not a number
If TEXT then try using
=COUNTIF(D10:S10,"*")>0

Book3
ABCDEFGH
7
8COUNTIF()1
9
10COUNTA()21a
11
12
Sheet2
Cell Formulas
RangeFormula
C8C8=COUNTIF(D10:S10,"*")
C10C10=COUNTA(D10:S10)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C10Expression=COUNTA(D10:S10)>0textNO
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,215,357
Messages
6,124,482
Members
449,165
Latest member
ChipDude83

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