Conditional Formatting based on multiple cells

Sp8y8

New Member
Joined
Mar 28, 2020
Messages
11
Office Version
  1. 2016
Platform
  1. Windows
Hi,

Help required please...

I have an empty list P15:P38, (comments list) in sheet 2, If someone writes a comment, I would like cell P14 in Sheet 1 to have "***COMMENTS***" to appear in this cell, only when something is written in the "comments list" in sheet 2, remaining blank if there are no comments.

Any help appreciated.

Thanks
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
That is not Conditional Formatting, that is a formula (Conditional Formatting only changes formatting, it cannot return values).

This is the formula you can put in cell P14 on Sheet1:
Excel Formula:
=IF(COUNTA(Sheet2!P15:P38)>0,"***COMMENTS***","")
 
Upvote 0
Solution
You cannot do that with conditional formatting, but you could use this formula
Excel Formula:
=IF(COUNTIFS(Sheet2!P15:P38,"<>"),"***COMMENTS***","")
 
Upvote 0
Thank you very much for your speedy response and your assistance with this.
Works perfectly.
Thank you again.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,897
Members
449,097
Latest member
dbomb1414

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