Highlighting a range of cells only if any cell in that range contains any text.

amaresh achar

Board Regular
Joined
Dec 9, 2016
Messages
108
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am looking for a conditional formatting formula to highlight a range of cells only if any cell in that range contains any text, (as explained below):

I have a cell range J23:S23. If any cell among this range contains any text, then entire cell range J23:S23 should be highlighted in yellow.

I want format paint this formula, to 1000 such ranges up to J1036:S1036 (if I get formula for single range)

Or even a single formula (if possible) to cover entire 1000 rows also welcome...

Thanks in Advance...
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hello,

I am looking for a conditional formatting formula to highlight a range of cells only if any cell in that range contains any text, (as explained below):

I have a cell range J23:S23. If any cell among this range contains any text, then entire cell range J23:S23 should be highlighted in yellow.

I want format paint this formula, to 1000 such ranges up to J1036:S1036 (if I get formula for single range)

Or even a single formula (if possible) to cover entire 1000 rows also welcome...

Thanks in Advance...
=COUNTA($J$23:$S$23)>0

1000 seperate ranges up to J1036:S1036?

Can you share an an example using XL2BB?
 
Upvote 0
=COUNTA($J$23:$S$23)>0

1000 seperate ranges up to J1036:S1036?

Can you share an an example using XL2BB?
Sorry... I don't know how to use XL2BB. I will look into it for future postings... but now I can explain as below. I hope its not dumb to explain like this :)

J23:S23 (1st range)
J24:S24 (2nd range)
J25:S25 (3rd range)
J26:S26 (4th range)
J27:S27 (5th range)

.
.
.
.
.
J1036:S1036 (1014th range)
 
Upvote 0
Hello,

I am looking for a conditional formatting formula to highlight a range of cells only if any cell in that range contains any text, (as explained below):

I have a cell range J23:S23. If any cell among this range contains any text, then entire cell range J23:S23 should be highlighted in yellow.

I want format paint this formula, to 1000 such ranges up to J1036:S1036 (if I get formula for single range)

Or even a single formula (if possible) to cover entire 1000 rows also welcome...

Thanks in Advance...
Ohhhh.. OK... I was wrong.. Sorry... I cant format paint this formula... as I already have different conditional formatting formula for every alternate rows... I need single formula to perform this conditional formatting for all these 1014 rows.
 
Upvote 0
Apply this the entire range.

=COUNTA($J23:$S23)>0
I tried... but its highlighting entire range J23:S1036 (if any text is found in any cell among J23:S23)

I need to highlight only J23:S23 if any text is found in any cell among J23:S23 similarly..
need to highlight only J24:S24 if any text is found in any cell among J24:S24 similarly..
need to highlight only J25:S25 if any text is found in any cell among J25:S25 similarly..
need to highlight only J26:S26 if any text is found in any cell among J26:S26 similarly..
need to highlight only J27:S27 if any text is found in any cell among J27:S27 similarly..
.
.
.
.
.
.
need to highlight only J1036:S1036 if any text is found in any cell among J1036:S1036..
 
Upvote 0
It works for me, see image.

Select the range J23:S1036.

Create a new rule using the ‘Use a formula to determine which cells to format’ Rule Type.

Apply the =COUNTA($J23:$S23)>0 formula.
 

Attachments

  • highlight.JPG
    highlight.JPG
    103.4 KB · Views: 11
Upvote 0
It works for me, see image.

Select the range J23:S1036.

Create a new rule using the ‘Use a formula to determine which cells to format’ Rule Type.

Apply the =COUNTA($J23:$S23)>0 formula.
Oh.. OK .. now I see where I did the mistake... before going to conditional formatting, First I have to select the range J23:S1036.. got it...

But when I select the range J23:S1036... the excel will freeze (because I already have 4 set of conditional formatting rule for each cell)

Any remedy for that...?? (If you want to look into that.. then I will share a G-drive link...)
 
Upvote 0
Read this page.

More than Three Conditional Formats in Excel

Excel has a limit of three conditional formats per cell or range of cells because each conditional format requires additional processing power. If you apply too many conditional formats, it can slow down your spreadsheet and make it more difficult to work with. Additionally, having too many conditional formats can make your spreadsheet look cluttered and confusing.
 
Upvote 0
Read this page.

More than Three Conditional Formats in Excel

Excel has a limit of three conditional formats per cell or range of cells because each conditional format requires additional processing power. If you apply too many conditional formats, it can slow down your spreadsheet and make it more difficult to work with. Additionally, having too many conditional formats can make your spreadsheet look cluttered and confusing.
Thanks... I learnt a new thing today... I will try to optimize my existing formula.. and thanks for the solution.
 
Upvote 0

Forum statistics

Threads
1,216,089
Messages
6,128,750
Members
449,466
Latest member
Peter Juhnke

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