Fields color number

michaltrom

New Member
Joined
Jun 13, 2018
Messages
2
I've a file with colored fields. I want to create pivot table that take under consideration the colors of the fields. I thought that if I'll have a formula that recognize the color by number or other indicator I could create another column and run a pivot accordingly. I tried "=CELL("color",F2)", it's not working… Someone know a formula for that? Any other suggestion for that please?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Welcome to the Board

I would use VBA for that.
Do you have conditional formatting applied? It has precedence over manually filled colors.
 
Upvote 0
No conditional formatting applied, I received a colored file and want to process the data.
VBA? no excel function to recognize the color of the field?
 
Upvote 0
The GET.CELL function is not reliable. The code below does it.

Code:
Sub No_Cond_Form()
' column A => colored cells
' column B => color numbers
Dim i%
For i = 1 To 10
    Cells(i, 2) = Cells(i, 1).Interior.Color
Next
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,512
Messages
6,119,941
Members
448,932
Latest member
mile5165

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