Using if or lookup finction to identify coloured cells

djdbg

New Member
Joined
Apr 17, 2013
Messages
8
Hi I am using Excel 2010.

I have a very large spreadsheet, 20,000 rows and 15 colums.

In column "F" i have various types of named accounts and I have used conditional formatting to highlght red some of these accounts. (I want to delete all customers whom have these accounts).
In column "D" I have customer IDs. Customers may have more than one type of account so the ID's don't appear in colum "D" just once, there will be between 1 and 10 entries depending on the number of accounts held.
What I want to do is highlight the customer ID's when it is connected to any cell that is red.
For example, if customer has 4 accounts, then the ID will appear 4 times in colum D. If one of the accounts in Column "F" is highlighted red, i want all the ID entries to be highlighted.
Purpose of this is to remove from the spreadsheet all the customer ID's when assocaited with account type that is highlighted red in column "F".

Thanks for any help.
 
Last edited:

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi and welcome to MrExcel.

What is the Conditional Formatting formula used to highlight in Red?
Can you use this formula in a "Helper" column to then filter by the result?

Sample Data and Example Results....

Excel Workbook
CDEFGHIJ
1*Cust IDDataAcc NameHelper*CF Formula*
2*12345100Test11*TRUE*
3*12346200Test11*TRUE*
4*12345300Test20*FALSE*
5*12347400Test11*TRUE*
6*12346500Test20*FALSE*
7*12345600Test30*FALSE*
8*12348700Test11*TRUE*
9********
Sheet16


The formula in the "Helper" column needs to be copied down.
You can then filter your data based on 1.

To Conditionally Format the Cust ID the same as Column F....

Press alt H L R
Click in the Applies to box just after = and select your range in Column D type a comma , between the two ranges, eg...
This =$F$2:$F$8 becomes this =$D$2:$D$8,$F$2:$F$8
Click Apply.

I hope that helps.

Ak
 
Upvote 0
can you show the current condition which you using to highlight account ?
 
Upvote 0
Hi and welcome to MrExcel.

What is the Conditional Formatting formula used to highlight in Red?
Can you use this formula in a "Helper" column to then filter by the result?

Sample Data and Example Results....

Sheet16

*CDEFGHIJ
1*Cust IDDataAcc NameHelper*CF Formula *
2*12345100Test11*TRUE*
3*12346200Test11*TRUE*
4*12345300Test20*FALSE*
5*12347400Test11*TRUE*
6*12346500Test20*FALSE*
7*12345600Test30*FALSE*
8*12348700Test11*TRUE*
9********

<COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 30px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 30px"><COL style="WIDTH: 76px"><COL style="WIDTH: 30px"></COLGROUP><TBODY>
</TBODY>

Spreadsheet Formulas
CellFormula
G2=IF(F2="TEST1",1,0)
I2=$F2="Test1"

<TBODY>
</TBODY>

<TBODY>
</TBODY>


Excel tables to the web >> Excel Jeanie HTML 4

The formula in the "Helper" column needs to be copied down.
You can then filter your data based on 1.

To Conditionally Format the Cust ID the same as Column F....

Press alt H L R
Click in the Applies to box just after = and select your range in Column D type a comma , between the two ranges, eg...
This =$F$2:$F$8 becomes this =$D$2:$D$8,$F$2:$F$8
Click Apply.

I hope that helps.

Ak

Thanks for the quick responses and warm welcome, much appreciated. I have used site for few years but never been quite as badly stuck as this.

The data I have conditionally formatted red is based on the cell containing certain text for accounts I do not want.
(Using work computer and i can't download software to include screen dumps sorry.)

7901382 </SPAN>Test 1</SPAN>CURRENT ACCOUNT PLUS</SPAN>
7901382</SPAN>Test 1</SPAN>INSTANT ACCESS ACCOUNT</SPAN>
7901382</SPAN>Test 1</SPAN>SAVINGS ACCOUNT PLUS</SPAN>
7901382</SPAN>Test 1</SPAN>STANDARD BUSINESS</SPAN>
7912512</SPAN>Test 2</SPAN>SIGNATURE CURRENT ACCOUNT</SPAN>
7912512</SPAN>Test 2</SPAN>READYCASH ACCOUNT</SPAN>
7930050</SPAN>Test 3</SPAN>CURRENT ACCOUNT PLUS</SPAN>
7930050</SPAN>Test 3</SPAN>STANDARD BUSINESS</SPAN>
7940968</SPAN>Test 4</SPAN>INSTANT SAVINGS</SPAN>
7940968</SPAN>Test 4</SPAN>STANDARD BUSINESS</SPAN>
7940968


</SPAN>
Test 4




</SPAN>
STANDARD BUSINESS




I would be looking to highlight all of the IDs 7901382 Red as one of the accounts is Red in 3rd column. Same goes for 7930050 and 7940968.


</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL><COL></COLGROUP>
 
Upvote 0
Hi,

Do you mean something like this?...

Sample Data and Example Results...

Excel Workbook
ABCDEFGHI
1Cust IDDataAcc NameHelperCriteriaCF Formula
27901382Test 1CURRENT ACCOUNT PLUS STANDARD BUSINESSTRUE
37901382Test 1INSTANT ACCESS ACCOUNTTRUE
47901382Test 1SAVINGS ACCOUNT PLUSTRUE
57901382Test 1STANDARD BUSINESS7901382TRUE
67912512Test 2SIGNATURE CURRENT ACCOUNTFALSE
77912512Test 2READYCASH ACCOUNTFALSE
87930050Test 3CURRENT ACCOUNT PLUSTRUE
97930050Test 3STANDARD BUSINESS7930050TRUE
107940968Test 4INSTANT SAVINGSTRUE
117940968Test 4STANDARD BUSINESS7940968TRUE
127940968Test 4STANDARD BUSINESS7940968TRUE
13
Sheet17


The formula in the "Helper" column needs to be copied down.
The formula in H2 can be used for your Conditional Formatting.
If you don't want to use cell F2 to hold your criteria, you can change the INDEX/MATCH formula to this...

=IFERROR(INDEX(A2:A2,MATCH("STANDARD BUSINESS",C2:C2,0)),"")

There is probably an easier way/method/formula, but I'm sorry, that's the best I can think of.

I hope that helps.

Ak
 
Upvote 0
One last thing, With the matching criteria, you have set a single cell and this works for me, however i have multiple matchig criteria and it won't acknowledge the range. How should tis be entered? You have $f$1, i have tried ($f$1:$f$64) but only provides a blank.
 
Upvote 0
hiya, thanks for your patience here,

Your formula of =IFERROR(INDEX(D2:D2,MATCH($U$1,F2:F2,0)),"") was just about perfect except I need $u$1 to be a range from $u$1 to $u$64.

There are 64 types of account i want to highlight, not just one as the above tabel posted earlier shows.
The whole sheet is A1:O20728, this doesn't include the additional coluns added to accomdate your solution.
 
Upvote 0
Hi,

I'm sorry, I still don't understand your situation or requirement.
It really would be very helpful for you to display a visual representation of your data with the results you expect.
You can try this to post Sample Data and your Expected Results like I did above...

How to

You DO NOT have to show your actual data, just something that represents it....

Excel Workbook
ABCDEFGHIJKLMNOPQRSTUV
1Data1Data2Data3Cust IDDataAcc NameHelperData4Data5Data6Data7Data8Data9Data10Data11STANDARD BUSINESS
2RedCarYes7901382Test 1CURRENT ACCOUNT PLUS 100AData601/04/2013X101911
3BlueBusYes7901382Test 1INSTANT ACCESS ACCOUNT200BData602/04/2013X191914
4GreenCarNo7901382Test 1SAVINGS ACCOUNT PLUS300AData603/04/2013X161511
5RedTrainYes7901382Test 1STANDARD BUSINESS7901382400AData604/04/2013Y112010
6BlueCarYes7912512Test 2SIGNATURE CURRENT ACCOUNT500BData605/04/2013X112019
7PinkBusNo7912512Test 2READYCASH ACCOUNT600AData606/04/2013Y102011
8YellowCarYes7930050Test 3CURRENT ACCOUNT PLUS700AData607/04/2013X151119
9RedTrainYes7930050Test 3STANDARD BUSINESS7930050800BData608/04/2013X131516
10BlueCarNo7940968Test 4INSTANT SAVINGS900CData609/04/2013Y171919
11GreenBusYes7940968Test 4STANDARD BUSINESS79409681000BData610/04/2013Y181413
12PinkCarNo7940968Test 4STANDARD BUSINESS79409681100CData611/04/2013X131416
13
Sheet17


Ak
 
Upvote 0

Forum statistics

Threads
1,203,488
Messages
6,055,716
Members
444,811
Latest member
NotJack

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