Is there a way for excel to preform function based on background color

PerunPL

New Member
Joined
Jun 18, 2018
Messages
6
hello everyone,
so I have a question if its possible for excel to read background color of active cell, and to preform that function if the cell is colored.
As of know my function in excel looks like this =IF(AND(K11="S-1",B11="blue"),J11, ). Is there anyway to replace B11=" Blue" to just read background color of the active cell which would be in Q11, and if it RGB (0,176,240) and K11="S-1" to just copy J11 number to active cell.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I do not believe it can do that without VBA. Native Excel functions can only access cell values, not formatting (unless there have been some recent changes in newer versions of Excel).
How is the background color set?
If it is set by Conditional Formatting, you should be able to use the same condition that sets the formatting in your formulas.
 
Upvote 0

Forum statistics

Threads
1,226,230
Messages
6,189,768
Members
453,568
Latest member
LaTwiglet85

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