Conditional format based on another cell's formatting (eg fill / background color)

phirefly

New Member
Joined
Dec 12, 2018
Messages
5
Hello,

I've searched online and not had much luck trying to find a solution for this.

I am not an Excel expert and do not know VB so I was trying to use conditional formatting to format a cell based on another cell's format (fill color)...


  • Find cells in range K5:V5 with fill color green [I use the Excel formatting "green fill with dark green text"]
  • >Of these cells, select the cell containing the HIGHEST value.
  • > > Format the adjacent cell AFTER the selected cell.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
If the green fill with dark green text is manual formatting, and not conditional formatting, then you must us VBA to do this. There is no worksheet function that will tell you the fill color or text color in a cell.
 
Upvote 0
If the green fill with dark green text is manual formatting, and not conditional formatting, then you must us VBA to do this. There is no worksheet function that will tell you the fill color or text color in a cell.

Hello @6StringJazzer, thanks for the reply :)

The green fill is a conditional format.

It is applied to various cells in K5:V5 (not sure of terminology: "non contiguous range"?).

I was hoping to use the color as I thought it might simplify the formula (because the cells are "non contiguous").
 
Upvote 0
You will need to use a formula that includes the condition you are using to make the cells green.
 
Upvote 0
can you use the same 'Condition' to format the second cell.
 
Upvote 0
Thank you for your input...I'm not sure if I can use that formula/condition. Here are the details...

The formula/condition to make the cells green is applied to each individual "Sell Price" column. Here is the formula for column K (applies to: Stationary!$K$5:$K$999):

  • GREEN: =$C5>(K5*$F$3)
  • - used to highlight Sell Prices that are a % ($F$3) less than the competitor price ($C5)
  • RED: =$C5<($K5)
  • - used to highlight Sell Prices that are greater than the competitor price ($C5)
The Profit columns are simply "Sell Price - Cost" (eg. L5=K5-J5)

In English, what I'm trying to do is:
For our price points that are a % ($F$3) less than the competitor price ($C5), highlight the greatest profit. If it simplifies things, I am more than happy that the sell price is just below the competitor sell price (i.e forget the "% less").

I've attached 2 screenshots...

01 Sheet: current formatting
01-Sheet-without-new-formatting.png



02 Sheet: mock-up of what I would like to see with new conditional formatting
02-Sheet-with-new-faked-formatting-purple.png


Thanks again!
 
Upvote 0
Hi phirefly
can i ask what software you used to post you screenshots, as I need to do the same for my workbook
 
Upvote 0
There are add-ins available here https://www.mrexcel.com/forum/about-board/508133-attachments.html
that will allow you to post samples from your sheet direct to the board. This is better than images as we can then copy paste the data into our own workbooks, rather than typing it out.

Thanks! I tried the add-on (Mac) without luck - it wanted me to debug.

I've attached the Excel file here http://s000.tinyupload.com/?file_id=88842591652622095736

If anyone can offer any guidance I'd appreciate it (see 13th December post for screenshots and info). Thanks!
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,624
Latest member
gregg777

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