Conditional format Inv number

gazmoz17

Board Regular
Joined
Sep 18, 2020
Messages
158
Office Version
  1. 365
Platform
  1. Windows
Hi,

I know how to highlight duplicate inv numbers however, most of my cell contents in column A are repeated inv numbers so its not very helpful. Is there a way that:

1. None duplicates/repeated remain unformatted
2. Repeating Inv numbers have there own colour relevant to that invoice number
3. Or at least repeating invoice number have alternating 2 colour so I know when the invoice number has changed.

Open to VBA solution if required.

Overall as long as theres a colour break/change of colour when repeating inv numbers in col A stop repeating. eg alternating colour change blue and yellow when repeating inv numbers change and no fill for none duplicates.

*so A20 inv no 22541 no conditional format as not a duplicated inv number. Overall report is an Inv item report.

1683113322976.png


Many Thanks
Gareth
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Would this be sufficient?

23 05 03.xlsm
A
1
22
32
42
53
66
76
89
99
101
1110
128
138
144
154
164
CF Inv No
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A16Expression=AND(ISEVEN(ROWS(UNIQUE(A$2:A2))),COUNTIF(A$2:A$1000,A2)>1)textNO
A2:A16Expression=AND(ISODD(ROWS(UNIQUE(A$2:A2))),COUNTIF(A$2:A$1000,A2)>1)textNO
 
Upvote 0
Solution
It does not take into account the ones that are not duplicated but it would make it easier to see the changes, especially if the INV numbers are not ordered in series.
Book1
ABC
22254822541
32254822548
42254822548
52254822548
62254722548
72254722542
82254722542
92254722539
102254722539
112254622539
122254622539
132254522545
142254522545
152254322543
162254322543
172254322543
182254222547
192254222547
202254122547
212253922547
222253922547
232253922546
242253922546
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:C24Other TypeColor scaleNO
A2:A24Other TypeColor scaleNO


May not be suitable if you have 10,000's of INV numbers
 
Upvote 0
Would this be sufficient?

23 05 03.xlsm
A
1
22
32
42
53
66
76
89
99
101
1110
128
138
144
154
164
CF Inv No
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A16Expression=AND(ISEVEN(ROWS(UNIQUE(A$2:A2))),COUNTIF(A$2:A$1000,A2)>1)textNO
A2:A16Expression=AND(ISODD(ROWS(UNIQUE(A$2:A2))),COUNTIF(A$2:A$1000,A2)>1)textNO
Hi Yeah works perfect thanks very much, much appreciated 👍
 
Upvote 0
Thanks Georgiboy I can definitely use this on a smaller selection of invs
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,178
Members
448,871
Latest member
hengshankouniuniu

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