Highlighting with conditional formating

jbrown021286

Board Regular
Joined
Mar 13, 2023
Messages
53
Office Version
  1. 365
Platform
  1. Windows
I am building a spreadsheet that is going to be used as a double check for paid accounts. In colum A I will have several accounts and in colum D I am wanting to past a list of accounts that are paid. Is there a way to use conditional formating to highlight any cell in colum A and any cell in colum D that has a matching number in the opsing colum?
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
So, for row 2, you would select cells A2 and D2 and you would set up a Conditional Formatting Rule formula like:
Excel Formula:
=$A2=$D2

and choose your formatting option.
 
Upvote 0
So, for row 2, you would select cells A2 and D2 and you would set up a Conditional Formatting Rule formula like:
Excel Formula:
=$A2=$D2

and choose your formatting option.
The matching numbers would most likly not be in the same row so that wouldn't work past the first fee rows once a number was skipped because it wasn't in the list of colum D
 
Upvote 0
The matching numbers would most likly not be in the same row so that wouldn't work past the first fee rows once a number was skipped because it wasn't in the list of colum D
OK, that is not very clear from your original description.
Can you please post a small sampling of what your data actually looks like and your expected results?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

My best guess without seeing your data is I am thinking then you may need two rules.
For the first one, select column A, then enter this Conditional Formatting formula:
Excel Formula:
=COUNTIF(D:D,A1)>0
and choose your desired formatting option.

And then do something similar for the second, selecting column D, and using this Conditional Formatting formula:
Excel Formula:
=COUNTIF(A:A,D1)>0
and choose your desired formatting option.
 
Upvote 0
1678849693641.png

this is a very basic example of the account spreadsheet, as you can see in column A and D i have account numbers and in Colum b I have invoice amount and column e I have how much has been paid to the balance of the account. i am wanting to be able to highlight all the accounts that are matched from both column a and d as well as highlight the balance if the balance matches in column b and e. is this possible?
 

Attachments

  • 1678849645289.png
    1678849645289.png
    52.4 KB · Views: 3
Upvote 0
Did you try what I suggested in my previous post? That would do what you want for columns A and D.

To do all four columns, follow these rules. I used different formatting colors so you could see where each is coming from.

Rule 1:
Select column A
Use Conditional Formatting formula:
Excel Formula:
=COUNTIF(D:D,A1)>0
Choose highlighting color yellow.

Rule 2:
Select column D
Use Conditional Formatting formula:
Excel Formula:
=COUNTIF(A:A,D1)>0
Choose highlighting color green.

Rule 3:
Select column B
Use Conditional Formatting formula:
Excel Formula:
=COUNTIFS(D:D,A1,E:E,B1)>0
Choose highlighting color blue.

Rule 4:
Select column E
Use Conditional Formatting formula:
Excel Formula:
=COUNTIFS(A:A,D1,B:B,E1)>0
Choose highlighting color orange.

So, in the end, it looks like this:
1678879968702.png
 
Upvote 0
Did you try what I suggested in my previous post? That would do what you want for columns A and D.

To do all four columns, follow these rules. I used different formatting colors so you could see where each is coming from.

Rule 1:
Select column A
Use Conditional Formatting formula:
Excel Formula:
=COUNTIF(D:D,A1)>0
Choose highlighting color yellow.

Rule 2:
Select column D
Use Conditional Formatting formula:
Excel Formula:
=COUNTIF(A:A,D1)>0
Choose highlighting color green.

Rule 3:
Select column B
Use Conditional Formatting formula:
Excel Formula:
=COUNTIFS(D:D,A1,E:E,B1)>0
Choose highlighting color blue.

Rule 4:
Select column E
Use Conditional Formatting formula:
Excel Formula:
=COUNTIFS(A:A,D1,B:B,E1)>0
Choose highlighting color orange.

So, in the end, it looks like this:
View attachment 87576
1679435558493.png


that worked great this is the spreadsheet that I built around that. the column named RO is column A in my previous example, Flag Time would be B, RO Check would be C and Hours check would be D. is there a good way of calculating the column "adjustment" in with the flag time so that if the sum of the 2 is equal to the corresponding hours check it would highlight it as well?
 
Upvote 0
is there a good way of calculating the column "adjustment" in with the flag time so that if the sum of the 2 is equal to the corresponding hours check it would highlight it as well?
That appears to be a vastly different question that your original question.
As such, you should post it to a brand new thread. Then it will show up as a new unanswered question in the "Unanswered threads" listing, and have a much better chance of being seen and answered.
 
Upvote 0
That appears to be a vastly different question that your original question.
As such, you should post it to a brand new thread. Then it will show up as a new unanswered question in the "Unanswered threads" listing, and have a much better chance of being seen and answered.
Ok. Thanks for all your help
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,843
Members
449,051
Latest member
excelquestion515

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