nefertitinka
New Member
- Joined
- Sep 14, 2011
- Messages
- 6
Set cell fill color based on number of adjacent cell
I have a question about a case in excel.
I am doing a research with the following information. In column B, I have the name of the buyer company, column B cells that contain numbers 1, 2 or 3 opposite the company name in column B depending on certain characteristics. I would like to mark the companies in column A in different colors (or some other recognizable way) as described below.
columns result
col A col B col C
7 Materials Inc 3
7 Materials Inc 2
6 Rayon Inc 3
6 Rayon Inc 3
6 Rayon Inc 3
8 Commun Corp 1
8 Commun Corp 2
8 Commun Corp 3
8 Commun Corp 2
8 Commun Corp 1
I would like to have on output in column A as shown above according to the following criteria:
4: if there are only 1 in column C opposite the specific company in column B
5: if there are only 2 in column C opposite the specific company in column B
6: if there are only 3 in column C opposite the specific company in column B
7: if there are 1, 2 and 3 in column C opposite the specific company in column B
8: if there are 1 and 2 in column C opposite the specific company in column B
Do you know a suitable function in excel or Macros that can help with the formatting, because I have tens of thousands of companies and it will take too much time to do it manually.
Thank you very much in advance!
I have a question about a case in excel.
I am doing a research with the following information. In column B, I have the name of the buyer company, column B cells that contain numbers 1, 2 or 3 opposite the company name in column B depending on certain characteristics. I would like to mark the companies in column A in different colors (or some other recognizable way) as described below.
columns result
col A col B col C
7 Materials Inc 3
7 Materials Inc 2
6 Rayon Inc 3
6 Rayon Inc 3
6 Rayon Inc 3
8 Commun Corp 1
8 Commun Corp 2
8 Commun Corp 3
8 Commun Corp 2
8 Commun Corp 1
I would like to have on output in column A as shown above according to the following criteria:
4: if there are only 1 in column C opposite the specific company in column B
5: if there are only 2 in column C opposite the specific company in column B
6: if there are only 3 in column C opposite the specific company in column B
7: if there are 1, 2 and 3 in column C opposite the specific company in column B
8: if there are 1 and 2 in column C opposite the specific company in column B
Do you know a suitable function in excel or Macros that can help with the formatting, because I have tens of thousands of companies and it will take too much time to do it manually.
Thank you very much in advance!