Conditional - multiple conditions

wmtsub

Active Member
Joined
Jun 20, 2018
Messages
322
How can I set Cell A1's background to a specific color if cells B1-H1 AND J1- W1 all have values other than blank's or zero's?
 
I apoloize if I can not make myself clear. What i am in neeed of is to review all the cwlls in the range of b1 to w1 excluding I1. and if all of them contain visible data highlight A1. If ANR cell does not have a visible character then A1 should NOT be highlighted.
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If the only non-blank, non-visable characters you have are normal spaces (and not some special characters line non-breaking spaces or carriage returns or line feeds), then this formula should work:
Code:
=AND(SUMPRODUCT(--(TRIM(B1:H1)=""))=7,SUMPRODUCT(--(TRIM(J1:W1)=""))=14)
If that does not work, then you need to tell us exactly what we are dealing with here.
Where is this data coming from? Is it downloaded from the Web, or come from another program?

Identify a cell that has one of these invisible characters, and apply this formula to it and tell us what it returns (i.e. if the cell was B1):
Code:
=CODE(B1)
 
Last edited:
Upvote 0
I apoloize if I can not make myself clear. What i am in neeed of is to review all the cwlls in the range of b1 to w1 excluding I1. and if all of them contain visible data highlight A1. If ANR cell does not have a visible character then A1 should NOT be highlighted.

You tried my solution in post #6
 
Upvote 0
Guys, I am fustrated. I can not get this to work. I opened a clean new worksheet and used Dantes forumla and it works fine. Enter it into my existing worksheet [and to be safe first delete all values in the target range and then populate the cells again wit 1-2-3-4- etc] and it does not work. Any chance if it was a table rather thatn a sheet that this would affect it?
 
Upvote 0
Guys, I am fustrated. I can not get this to work. I opened a clean new worksheet and used Dantes forumla and it works fine. Enter it into my existing worksheet [and to be safe first delete all values in the target range and then populate the cells again wit 1-2-3-4- etc] and it does not work. Any chance if it was a table rather thatn a sheet that this would affect it?

We ask you to provide the detail of how is your information on the sheet and so far you comment that you use a table, why?


Either way, I tried my formula in a table and it works.


As you comment, the formula works on a new sheet.


Probably there are other variants or characteristics that exist in your sheet, but as you keep them secret it is not possible that we can deliver a solution.
 
Upvote 0

Forum statistics

Threads
1,214,624
Messages
6,120,591
Members
448,973
Latest member
ksonnia

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