Question:
Need some help in Microsoft Excel Guys, with the Colour formula ?
josemaddy
2009-04-07 01:32:12 UTC
what is the formula to filter based on the colour in the cells, as in how to get a count of cells which are coloured. For eg : Yellow.
Four answers:
voyager
2009-04-07 04:21:59 UTC
Excel 2007 can sort data based on their font/cell color.



OR you could use this small code to get the color index number of each cell & then filter.



-- Press Alt+F11 on your keyboard (VB Editor)

-- Insert - Module

-- Copy & paste this code in that box





Function Col_Indx(Cell As Range)

Col_Indx = Cell.Interior.ColorIndex

End Function



-- Now go check the fx functions - User Defined Functions (Col_Indx)

-- Use the formula to get the index numbers & filter by them.
Barry
2015-04-22 14:27:25 UTC
Help with syntax (retired 8 years ago) Want to change the background color of the cell based upon a value



The user enters Values a or b or c



Background color of cell changes (a=green b=red c=yellow).

Thank you
anonymous
2016-10-17 14:41:52 UTC
For conditional formatting, you in many cases does not use an entire IF formulation. purely use a formulation which will the two be actual, or fake. as an occasion, use this to format a cellular if A1 isn't equivalent to "confident": =A1<>"confident"
General Chaos
2009-04-07 01:40:23 UTC
execel uses vbscript for that .

you can do it from script editor.

but i guess there was also a option to call those commands from cells.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...