Im lost can you help?? - Conditional Format & search

Krucifire

Board Regular
Joined
Nov 8, 2007
Messages
96
Book1.xls
ABCDEFGHIJKL
5AIRCONCARPETSDOORSELECTRICALHWSHW24KITCHENPLUMBINGRWTSHEDS
6BelconnenACT
7FyshwickACT
8TuggeranongACT
9AlburyNSW
10ArtarmonNSW
11AshfieldNSW
12AuburnNSW
13BallinaNSW
14BankstownAirportNSW
15BatemansBayNSW
16BathurstNSW
17BelmontNSW
18BelroseNSW
19BlacktownNSW
20BonnyriggNSW
21CampbelltownNSW
22CardiffNSW
23CaringbahNSW
24CarlingfordNSW
25CessnockNSW
26ChatswoodNSW
27CoffsHarbourSouthNSW
28CoffsHarbourTradeNSW
29CrossroadsNSW
30DuralNSW
31ErinaNorthNSW
32ForsterNSW
33GlendaleNSW
34GordonNSW
35GosfordNSW
36GraftonNSW
37GriffithNSW
38KempseyNorthNSW
39KempseySouthNSW
40KotaraNSW
41LakeHavenNSW
42LidcombeNSW
43LismoreNSW
44MaitlandNSW
45MascotNSW
46McGrathsHillNSW
47MinchinburyNSW
48MossValeNSW
49MudgeeNSW
50NarrabeenNSW
51NelsonBayNSW
52NorthParramattaNSW
53NorthPenrithNSW
54NorwestNSW
55NowraNSW
56OrangeNSW
57PenrithNSW
58PortMacquarieNSW
59RockdaleNSW
60RoseBayNSW
61SevenHillsNSW
62ShellHarbourNSW
63TamworthNSW
64TareeNSW
65ThornleighNSW
66TuggerahNSW
67TweedHeadsNSW
68UlladullaNSW
69UnanderraNSW
70ValleyHeightsNSW
71VillawoodNSW
72WaggaWaggaNSW
73WarrawongNSW
74WarringahMallNSW
75WollongongNSW
76DarwinNT
77PalmerstonNT
78AlbionQLD
79BoovalQLD
80BrownsPlainsQLD
81BundabergQLD
82BurleighHeadsQLD
83CairnsQLD
84CaloundraQLD
85CannonHillQLD
86CapalabaQLD
87CarseldineQLD
88ComptonRd,UnderwoodQLD
89GladstoneQLD
90HarbourtownQLD
91HerveyBayQLD
92LawntonQLD
93MackayQLD
94MaroochydoreQLD
95MorayfieldQLD
96MtGravattQLD
97MtIsaQLD
98NerangQLD
99NoosavilleQLD
100OxleyQLD
101RockhamptonQLD
102RockleaQLD
103RothwellQLD
104SouthportQLD
105StaffordQLD
106ToowoombaWestQLD
107TownsvilleQLD
108UnderwoodQLD
109VictoriaPointQLD
110AllenbyGardensSA
111KentTownSA
112MarionSA
113MileEndSA
114ModburySA
115MtGambierSA
116MunnoParaSA
117NoarlungaSA
118ParafieldSA
119WindsorGardensSA
120LauncestonTAS
121MoonahTAS
122RosnyParkTAS
123AltonaVIC
124BallaratVIC
125BayswaterVIC
126BendigoVIC
127BoxHillVIC
128BroadmeadowsVIC
129CoburgVIC
130CorioVIC
131CranbourneVIC
132CroydonVIC
133DandenongVIC
134ElthamVIC
135EppingVIC
136FountainGateVIC
137FrankstonVIC
138HoppersCrossingVIC
139KeysboroughVIC
140MaribyrnongVIC
141MeltonVIC
142MentoneVIC
143MilduraVIC
144MillParkVIC
145MoorabbinVIC
146MorningtonVIC
147MorwellVIC
148NorthlandVIC
149NottingHillVIC
150NunawadingVIC
151PortMelbourneVIC
152RosebudVIC
153SandownVIC
154ScoresbyVIC
155SheppartonVIC
156SouthOakleighVIC
157SunburyVIC
158SunshineVIC
159TaylorsLakesVIC
160ThomastownVIC
161VermontSouthVIC
162WarrnamboolVIC
163WaurnPondsVIC
164WodongaVIC
165WodongaNorthVIC
166AlbanyWA
167BalcattaWA
168BelmontWA
169BibraLakeWA
170BunburyWA
171BusseltonWA
172CanningtonWA
173ClaremontWA
174EsperanceWA
175GeraldtonWA
176HomebaseWA
177InglewoodWA
178InnalooWA
179JoondalupWA
180KalamundaWA
181KalgoorlieWA
182MaddingtonWA
183MalagaWA
184MandurahWA
185MelvilleWA
186MidlandWA
187MindarieWA
188MorleyWA
189O'ConnorWA
190PortKennedyWA
191RockinghamWA
192SouthPerthWA
193WhitfordsWA
194WillettonWA
Sheet1


above is what i need to populate base on the sample data (in second post)


is what i need it do to is search the Data in Sheet2! for the Category (row 5) then by the store (column A) if there is some1 in the data in sheet2! that meets these 2 criteria i want it to put the letter Y in the corresponding cell. so that i can do a conditional format on the cell GREEN if it contains a Y Red if cell is empty.

The conditional format part is easy.

the doing the check part is what i am not sure on how to do.

Await second post before reply thanks


- Troy
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
SRT_WIP.xls
ABCDE
1IDContactTypeCompanyProductCategoriesCoverageRegion-NSW
21ActiveTradeOperator1StyleFloorsCarpets
32ActiveTradeOperator5Ft4TimberFlooringTimberFlooring
43ActiveTradeOperatorA&KFencingPoolFencing;#Sheds;#GeneralHandyman(ClothesLine)Gosford;#Tuggerah
54ActiveTradeOperatorA&DKitchensKitchens;#Doors
65ActiveTradeOperatorAableCarpetServicesCarpetsArtarmon;#Belrose;#Chatswood;#Gordon;#Thornleigh;#WarringahMall
76ActiveTradeOperatorAbelRefrigerationAirconditioning;#ElectricalShellharbour;#Warrawong;#Wollongong
87ActiveTradeOperatorAcademyPlumbingPlumbing;#RWTBelmont;#Cardiff;#Cessnock;#Glendale;#Gosford;#Kotara;#Maitland;#Tuggerah
98ActiveTradeOperatorAcademyPlumbing
109ActiveTradeOperatorAdelaideApplianceInstallersAirconditioning;#24hrHWS(Gas&Electric);#HWS-All;#HWS-Solar;#Electrical
1110ActiveTradeOperatorAdvancedElectrical&DataSolutionsPtyLtdAirconditioning;#Electrical
ALL



SAMPLE DATA
 
Upvote 0
To help explain is what i am trying to achieve.

FYI. This code fails miserably.

Code:
 Select Case Sheet1!C6 = ""
        Sheets("Sheet2").Activate
                If ActiveSheet.FilterMode Then ActiveSheet.ShowAllData
                Selection.AutoFilter Field:=2, Criteria1:="Active Trade Operator"
                Selection.AutoFilter Field:=13, Criteria1:="ACT"
                Selection.AutoFilter Field:=17, Criteria1:="*=Bel*", Operator:=xlAnd
                Selection.AutoFilter Field:=16, Criteria1:="*=Air*", Operator:=xlAnd
                If Sheet2!A2.Cells.Value = True Then
                Sheet1!C6 = "Y"
                Else
                Sheet1!C6 = "N"
                End If
  Select Case Sheet1!C7 = ""
             Sheets("Sheet2").Select
               If ActiveSheet.FilterMode Then ActiveSheet.ShowAllData
                 Selection.AutoFilter Field:=2, Criteria1:="Active Trade Operator"
                Selection.AutoFilter Field:=13, Criteria1:="ACT"
                Selection.AutoFilter Field:=17, Criteria1:="*=Fys*", Operator:=xlAnd
                Selection.AutoFilter Field:=16, Criteria1:="*=Air*", Operator:=xlAnd
                If Sheet2!A2.Cells.Value = True Then
                Sheet1!C7 = "Y"
                Else
                Sheet1!C7 = "N"
                End If
 
Upvote 0
Hey all,

just checking in to see if there is any additional information that you require to help provide a solution to this problem??

-Troy
 
Upvote 0

Forum statistics

Threads
1,216,073
Messages
6,128,645
Members
449,461
Latest member
kokoanutt

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