Sep 03 2023 04:51 PM
I have a task in Excel.
I have to highlight some specific data, the task is:
There are some rows which are:
1. Upper Case
2. Colored Light Gold (as can be seen in the image below)
So I want to perform the task on those rows only.
Check above and below that Row (Upper cased row) until the next Row (Upper cased row) that if the Bank Name (Column A) are similar to that Row (Upper cased row), if it is similar then highlight those rows with Light Green color which are similar (they can be multiple).
And if the Bank (Column A) is not exact similar, but a little similar then move on to check other columns like: Address (Column B), City (Column C), ST (Column D), Zip (Column E) only till column E, so if besides Bank (Column A) any of these matches too, so this should also be highlighted.
If Bank (Column A) matches but other Columns doesn't then don't highlight.
Have a look at the images below for better understanding.
Example of how the task should be done:
Sep 04 2023 12:23 AM
To achieve the task you have described in Excel 365, you can use conditional formatting with a formula that checks for similarity between rows and highlights them accordingly. You will need to use a combination of Excel functions to compare the values in the specified columns (Bank, Address, City, ST, Zip) for similarity.
Here are the steps to set up this conditional formatting:
=AND(ROW()>1, EXACT($A2, $A1), OR(EXACT($B2, $B1), EXACT($C2, $C1), EXACT($D2, $D1), EXACT($E2, $E1)))
This formula checks if:
Now, Excel will highlight rows that match your criteria. Make sure to adjust the range you selected in step 1 based on your actual data. This conditional formatting rule will check for similarity in the specified columns and apply the formatting accordingly.
Remember to adjust the formula and rule as needed if you have additional columns or specific requirements for similarity matching.The text and steps were created with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you
Was the answer useful? Mark them as helpful!
This will help all forum participants.
Sep 04 2023 05:22 AM
Sep 04 2023 09:01 AM
To apply the conditional formatting formula only to rows where the value is in uppercase, you can modify the formula to check the case of the text in Column A before applying the formatting. Here are the steps:
Step 1: Conditional Formatting for Bank Name (Column A):
=AND($A2=$A$2, EXACT($A2, UPPER($A2)))
This formula checks both if the Bank Name matches the first row and if it's in uppercase.
This modified formula will apply formatting only to rows where the Bank Name in Column A matches and is in uppercase. It ensures that the formatting is applied selectively based on your criteria. You can then create additional rules for other columns, if needed, following a similar approach.