Conditional Formatting

mjbrant0

New Member
Joined
Sep 11, 2017
Messages
4
  • I'm trying to create an inventory maintenance log where column K will display the number of occurrences of any given serial number in column D.
  • I'd also like the cells to be green when there's 1 occurrence, yellow when there are 2-3 occurrences and red when there are 4+ occurrences. I've been playing around with this for 45 minutes and I'm lost.

Any help is appreciated.




j3xmxeK.png
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Welcome to the Board!

You can use the COUNTIF formula to return the number of occurrences, i.e.
If you have entries in rows 2:100, then place this formula in K2:
Code:
=COUNTIF($D$2:$D$100,$D2)

If you want it so the first occurrence of a value is 1, the second is 2, etc, then use this variation:
Code:
=COUNTIF($D$2:$D2,$D2)

Then it should be pretty easy to apply Conditional Formatting to the numbers in column K.
 
Upvote 0

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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