Using Conditional Formatting to Highlight Positions

Newbienew

Active Member
Joined
Mar 17, 2017
Messages
376
Office Version
  1. 2016
Platform
  1. Windows
Hello

I am attempting to do a complicated "for me" conditional format. I want to be able to highlight any ratings on a separate spreadsheets column (E) based on the column A and I of the rating and column B and J if its greater than 0. I am not about to move these columns. The issue is column E on the separate sheet has different variables at the end of the ratings, ranging from 1,2,3,sn,an,cn,fn and c, cs. The formula would have to be able to turn any rating green on the E column of the other sheet regardless of the variable endings. I have posted the A and B columns first ant the E column of the other sheet as well. Please help Thank you.

Copy of REM SLOW WORKBOOK AUG5.xlsb
ABCDEFGHIJ
1RateAvailableBNAASchool RateAvailable
2A000ABE0
3ABF500ABH0
4AC000AD0
5ADEK000ADSP0
6AE000AECF0
7AG000AIRC0
8AIRR000AM0
9AME000AMEK0
10AN000AO0
11AS000AT0
12AV000AW0
13AWF000AWO0
14AWR000AWS0
15AZ3000BM0
16BU000CE0
17CM000CS0
18CSS000CTI0
19CTM000CTN0
20CTR45600CTT0
21DC000E0
22EA000EM0
23EMN000EN0
24EO000EOD0
25ET000ETN0
26ETR000ETV0
27FC000FCA0
28FN000FT0
29GM4500GSE0
30GSM000HM48
31HMBHT000HMDA0
32HMDH000HMFM0
33HML000HT0
34IC000IS0
35IT000ITS0
36LN000LS0
37LSS000MA0
38MC000MM0
39MMA000MMN0
40MMS000MMW0
41MN5400MR0
42MT000MU0
43NC000ND0
44NUC000OS0
45PC000PR0
46PS000QM0
47RP000RS0
48S000SB0
49SECF000SENG0
50SH000SK0
51SKS000SN0
52SNL000SO0
53STG000STS0
54SW000UCT0
55UT000YN0
56YNS000
Sheet2




Copy of REM SLOW WORKBOOK AUG5.xlsb
E
2ABE2
3ABE3
4ABEAN
5ABECS
6ABF1
7ABF3
8ABFAN
9ABFAN
10ABFC
11ABFFAN
12ABH1
13ABH2
14ABH3
15ABHAN
16ABHC
17AC2
18ACCS
19AD2
20AD3
21ADAN
22AE1
23AE2
24AE3
25AG3
26AM1
27AM2
28AM3
29AMCS
30AME1
31AME2
32AME3
33AN
34AO
35AO2
36AO3
37AOAN
38AOAN
39AOCS
40AS1
41AS2
42AS3
43ASCS
44AT
45AT1
46AT1
47AT2
48AT2
49AT3
50AWS1
51AZ1
52AZ2
53AZAN
54BM1
55BM2
56BM3
57BMC
58BU2
59CE3
60CM2
61CM3
62CMDCS
63CS1
64CS2
65CS3
66CSS2
67CSS3
68CSSN
69CTN1
70CTN2
71CTN3
72CTR1
73CTR2
74CTT1
75CTT2
76CTT3
77DC2
78DC3
79EM2
80EM3
81EMC
82EMN1
83EMN2
84EMN3
85EMNCM
86EN2
87EN3
88EO3
89ET1
90ET2
91ET3
92ETN1
93ETN2
94ETN3
95ETV2
96FC1
97FC2
98FC3
99FCA1
100FCA2
101FCA3
102FCAC
103GM1
104GM2
105GM3
106GSCS
107GSE1
108GSE2
109GSEC
110GSM2
111GSM3
112GSMFN
113HM1
114HM2
115HM3
116HMCS
117HN
118HNSN
119HT1
120HT2
121IC1
122IC2
123IC3
124IS1
125IS2
126IT1
127IT2
128IT3
129ITSN
130LN2
131LS1
132LS2
133LS3
134LS3
135LSC
136LSSC
137LSSN
138MA1
139MA2
140MA3
141MAC
142MASN
143MC1
144MC2
145MC3
146MM1
147MM2
148MM3
149MM3
REM TEAM JUN




Copy of REM SLOW WORKBOOK AUG5.xlsb
E
150MMA2
151MMFN
152MMN1
153MMN2
154MMN2
155MMNC
156MN1
157MT1
158MT2
159MU3
160NC1
161NCC
162OS2
163OS3
164OSSN
165PR1
166PR2
167PS
168PS2
169PS3
170QM1
171QM2
172RS3
173SB1
174SB2
175SH2
176SHSN
177SO1
178STG1
179STG2
180STG3
181STS1
182STS2
183STS3
184STSCS
185TBD
186TM2
187TM3
188YN2
189YN3
190YNSC
REM TEAM JUN
 
This formula will only result in colour when the Number starts with as prefix so if you have A criteria with Value greater than 1, it will not show,

For Eg A=10, so in BWA it will result in colour match as A was available in 3 position (Considering my earlier formula)

But if you consider
=SUM(IFERROR(IF(SEARCH(IF($B$2:$B$55>0,$A$2:$A$55),N7)>1,FALSE,SEARCH(IF($B$2:$B$55>0,$A$2:$A$55),N7)),0))>1

It will not show any any match
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
With sheet 2 as per your OP
+Fluff New.xlsm
EF
1
2ABE2ABE
3ABE3ABE
4ABEANABE
5ABECSABE
6ABF1ABF
7ABF3ABF
8ABFANABF
9ABFANABFAN
10ABFCABF
11ABFFANABFF
12ABH1ABH
13ABH2ABH
14ABH3ABH
15ABHANABH
16ABHCABH
17AC2AC
18ACCSAC
19AD2AD
20AD3AD
21ADANAD
22AE1AE
23AE2AE
24AE3AE
25AG3AG
26AM1AM
27AM2AM
28AM3AM
29AMCSAM
30AME1AME
31AME2AME
32AME3AME
33ANAN
34AOAO
35AO2AO
36AO3AO
37AOANAO
38AOANAOAN
39AOCSAO
40AS1AS
41AS2AS
42AS3AS
43ASCSAS
44ATAT
45AT1AT
46AT1AT1
47AT2AT
48AT2AT2
49AT3AT
50AWS1AWS
51AZ1AZ
52AZ2AZ
53AZANAZ
54BM1BM
55BM2BM
56BM3BM
57BMCBM
58BU2BU
59CE3CE
60CM2CM
61CM3CM
62CMDCSCMD
63CS1CS
64CS2CS
65CS3CS
66CSS2CSS
67CSS3CSS
68CSSNCS
69CTN1CTN
70CTN2CTN
71CTN3CTN
72CTR1CTR
73CTR2CTR
74CTT1CTT
Sheet1
Cell Formulas
RangeFormula
F2:F74F2=IF(OR(E2={"sn","an","cn","fn","cs"}),E2,IF(OR(RIGHT(E2)={"1","2","3","c"}),LEFT(E2,LEN(E2)-1),IF(OR(RIGHT(E2,2)={"sn","an","cn","fn","cs"}),LEFT(E2,LEN(E2)-2),E2)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E2:E190Expression=COUNTIFS(Sheet2!$A$2:$I$57,F2,Sheet2!$B$2:$J$57,">0")textNO
 
Upvote 0
Yes, as long as you post the link to the thread.
 
Upvote 0
You haven't applied the formula or conditional formatting rule, so I have no idea what your problem is.
That said, when I add the helper column & CF as per post#22 I get
Project75.xlsb
DEF
1ratings
2EMN3EMN
3OS2OS
4FC2FC
5AM3AM
6AG3AG
7GM2GM
8STG2STG
9BM3BM
10AOAO
11ABF3ABF
12AM3AM
13LS1LS
14ET2ET
15ABF3ABF
16QM1QM
17LS2LS
18FCA2FCA
19CS3CS
20CTN2CTN
21CTT3CTT
22AZ1AZ
23MC1MC
24ABE2ABE
25STSCSSTS
26MC1MC
27STG1STG
28HM3HM
29MT1MT
30FC2FC
31IT2IT
32BMCBM
Sheet1
Cell Formulas
RangeFormula
F2:F32F2=IF(OR(E2={"sn","an","cn","fn","cs"}),E2,IF(OR(RIGHT(E2)={"1","2","3","c"}),LEFT(E2,LEN(E2)-1),IF(OR(RIGHT(E2,2)={"sn","an","cn","fn","cs"}),LEFT(E2,LEN(E2)-2),E2)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E2:E526Expression=COUNTIFS(Sheet2!$A$2:$I$57,F2,Sheet2!$B$2:$J$57,">0")textNO
 
Upvote 0
@CA_Punit
Your code is still looking for partial matches & is therefore highlighting cells incorrectly.
For instance it's highlighting ET2 on row 14, but on sheet 2 ET has a value of 0
 
Upvote 0
I got it @Fluff
I have changed the Condition in my Sheet 2
See pic Below

1597429714750.png




So in my Case if E /ABF etc etc has any value in corresponding Column and if the search result is 1 then only TRUE will get reflected.
So if i search E in ABE and as it will result 3 it wont be counted and so it will result in FALSE.
 
Upvote 0
Your formula is highlighting ET2 on sheet1, because it starts with E, whereas it should only be highlighted if ET is greater than 0
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,572
Members
448,972
Latest member
Shantanu2024

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