Excel Conditional Format / IF Statement

mlbarry

New Member
Joined
Sep 26, 2012
Messages
47
In the below example I have a list of open invoices sorted in alphabetic order, Column C, and customer number, Column A. I want to have the color of Column: C - Rows: 4,5,6 and 7 changed to RED because M4 contains the letters NR. My spread sheet has 6,000 to 20,000 rows and column A and C are consistent through out the spread sheet. I need the color change to change all of the Customers Names in column C that have the same customer number. So if MXX contains NR and if MXX equals or the same A4 then change C4,5,6 and 7 RED.

<tbody>
[TD="class: xl80"][/TD]
[TD="class: xl80, width: 77"]A[/TD]
[TD="class: xl81, width: 99"]B[/TD]
[TD="class: xl81, width: 67"]C[/TD]
[TD="class: xl81, width: 62"]D[/TD]
[TD="class: xl81, width: 84"]E[/TD]
[TD="class: xl81, width: 71"]F[/TD]
[TD="class: xl80, width: 86"]G[/TD]
[TD="class: xl80, width: 57"]H[/TD]
[TD="class: xl82, width: 49"]I[/TD]
[TD="class: xl80, width: 86"]J[/TD]
[TD="class: xl80, width: 90"]K[/TD]
[TD="class: xl81, width: 53"]L[/TD]
[TD="class: xl80, width: 452"]M[/TD]

[TD="class: xl80, width: 77"]1[/TD]
[TD="class: xl80, width: 77"]Customer #[/TD]
[TD="class: xl81, width: 99"]Customer PO #[/TD]
[TD="class: xl81, width: 67"]Customer
Name[/TD]
[TD="class: xl81, width: 62"]Invoice #[/TD]
[TD="class: xl81, width: 84"]Invoice Date[/TD]
[TD="class: xl81, width: 71"]Due Date[/TD]
[TD="class: xl80, width: 86"]Amount
Invoiced[/TD]
[TD="class: xl80, width: 57"]Amount
Paid[/TD]
[TD="class: xl82, width: 49"] Days
Past
Due[/TD]
[TD="class: xl80, width: 86"]Amount
Due[/TD]
[TD="class: xl80, width: 90"]Ship to:
Country[/TD]
[TD="class: xl81, width: 53"]Sales
Order #[/TD]
[TD="class: xl80, width: 452"]Payment Status / Notes[/TD]

[TD="class: xl74"]2[/TD]
[TD="class: xl74"]002045[/TD]
[TD="class: xl75"]123[/TD]
[TD="class: xl75"]ABC0[/TD]
[TD="class: xl76"]002[/TD]
[TD="class: xl77"]18-May-16[/TD]
[TD="class: xl77"]18-May-16[/TD]
[TD="class: xl78"] $ 500.00[/TD]
[TD="class: xl78"] $ -[/TD]
[TD="class: xl79"] 1,252[/TD]
[TD="class: xl78"] $ 500.00[/TD]
[TD="class: xl74"]United States[/TD]
[TD="class: xl76"]5000[/TD]
[TD="class: xl74"]PRE-PAYMENT CREDIT - Ref Check No XXXXX Deposit Date 6/25/2019[/TD]

[TD="class: xl68"]3[/TD]
[TD="class: xl68"]002887[/TD]
[TD="class: xl69"]234[/TD]
[TD="class: xl69"]ABC1[/TD]
[TD="class: xl70"]005[/TD]
[TD="class: xl71"]16-Sep-19[/TD]
[TD="class: xl71"]16-Sep-19[/TD]
[TD="class: xl72"] $ 1,250.00[/TD]
[TD="class: xl72"] $ -[/TD]
[TD="class: xl73"] 36[/TD]
[TD="class: xl72"] $ 1,250.00[/TD]
[TD="class: xl68"]Canada[/TD]
[TD="class: xl70"]7800[/TD]
[TD="class: xl68"]PRE-PAYMENT CREDIT - Ref Check No XXXXX Deposit Date 5/18/2019[/TD]

[TD="class: xl68"]4[/TD]
[TD="class: xl68"]001534[/TD]
[TD="class: xl69"]345[/TD]
[TD="class: xl69"]ZZZ[/TD]
[TD="class: xl70"]PM-010[/TD]
[TD="class: xl71"]29-Oct-15[/TD]
[TD="class: xl71"]29-Oct-15[/TD]
[TD="class: xl72"] $ (7,000.00)[/TD]
[TD="class: xl72"] $ -[/TD]
[TD="class: xl73"] 1,454[/TD]
[TD="class: xl72"] $ 3,300.00[/TD]
[TD="class: xl68"]United States[/TD]
[TD="class: xl70"]6800[/TD]
[TD="class: xl68"]PRE-PAYMENT CREDIT - Ref Check No XXXXX NR Deposit Date 8/22/2019[/TD]

[TD="class: xl68"]5[/TD]
[TD="class: xl68"]001534[/TD]
[TD="class: xl69"]345[/TD]
[TD="class: xl69"]ZZZ[/TD]
[TD="class: xl70"]010[/TD]
[TD="class: xl71"]29-Oct-15[/TD]
[TD="class: xl71"]29-Oct-15[/TD]
[TD="class: xl72"] $ 1,500.00[/TD]
[TD="class: xl72"] $ -[/TD]
[TD="class: xl73"] 1,454[/TD]
[TD="class: xl72"] $ 1,500.00[/TD]
[TD="class: xl68"]United States[/TD]
[TD="class: xl70"]6801[/TD]
[TD="class: xl68"][/TD]

[TD="class: xl68"]6[/TD]
[TD="class: xl68"]001534[/TD]
[TD="class: xl69"]345[/TD]
[TD="class: xl69"]ZZZ[/TD]
[TD="class: xl70"]010[/TD]
[TD="class: xl71"]29-Oct-15[/TD]
[TD="class: xl71"]29-Oct-15[/TD]
[TD="class: xl72"] $ 5,500.00 [/TD]
[TD="class: xl72"] $ -[/TD]
[TD="class: xl73"] 1,454[/TD]
[TD="class: xl72"] $ 5,500.00[/TD]
[TD="class: xl68"]United States[/TD]
[TD="class: xl70"]6802[/TD]
[TD="class: xl68"][/TD]

[TD="class: xl68"]7[/TD]
[TD="class: xl68"]001534[/TD]
[TD="class: xl69"]345[/TD]
[TD="class: xl69"]ZZZ[/TD]
[TD="class: xl70"]010[/TD]
[TD="class: xl71"]29-Oct-15[/TD]
[TD="class: xl71"]29-Oct-15[/TD]
[TD="class: xl72"] $ 8,900.00[/TD]
[TD="class: xl72"] $ -[/TD]
[TD="class: xl73"] 1,454[/TD]
[TD="class: xl72"] $ 8,900.00[/TD]
[TD="class: xl68"]United States[/TD]
[TD="class: xl70"]6803[/TD]
[TD="class: xl68"][/TD]

</tbody>
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Select C2:C last row > Conditional formatting > New rule > use a formula > & use
=COUNTIFS($A:$A,A2,$C:$C,C2,$M:$M,"* NR *")>0
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Similar threads

Forum statistics

Threads
1,223,908
Messages
6,175,307
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