Referencing cell colors...

JDKExcel

New Member
Joined
Feb 23, 2011
Messages
2
Hey, guys. Without getting into details, I work for a military arms room with a lot of weapons. I am using multiple sheets for inventory. On one, I have cells labeled for the slots and have it set up with VBA where each cell changes color according to the status of the slot (for easy recognition). This is done via double clicking the cell because it is the quickest way I can think of doing it. I've been trying to figure out, to no avail, how to reference that cell color on one sheet to another sheet to basically do the same thing (linking with names) and sum it up for a total of what is in and out. More than willing to clarify what I'm explaining... have a nice day!

EDIT: To further clarify... currently, the cells are set up with conditioning where instead of double clicking, I manually enter IN or OUT and this changes the color. The text in the cells are then referenced to the other sheets and this works, obviously but is a little time consuming. I can't do everything on one sheet because I'm talking more weapons you can wrap your head around.
 
Last edited:

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Welcome to the board.

counting coloured cells is tricky. Counting conditionally formatted cells more so, unless, that is, you know the condition. Then all you need to do is count the instances of the particular condition.

In this case, you ought to be able to count the instances of "in" using

=countif(A1:A100,"in")

amend the range where appropriate, of course.

HTH
 
Upvote 0
Yep, that is pretty much how it is set up now (I inherited this sheet from someone before me). I was just wondering if you can reference the color. Imagine the calender with all 365 days together as the slots. I have to at least hit "I" or "O" to enter in or out... now imagine 3 years of the calenders... and you're still not even half way there to the amount of weapons I need to deal with. The colors are in red and green to have a quick visualization of what is currently in the room. I'm just going to assume there is no way to reference the cell color and I'm stuck with the process I have.
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,136
Members
452,890
Latest member
Nikhil Ramesh

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