Help with Conditional Compare Needed

Jack_58

Board Regular
Joined
Dec 3, 2002
Messages
208
I have a Spreadsheet that I need to compare numbers against a second set of numbers on another Tab in the same spreadsheet, then highlight any numbers that Match.

Example.
In Column E (Item Number) (Compare Tab) I need to compare the number against the Item Number in the Tab “Numbers increased by Star”, Item Number (Column A). Then Highlight the item numbers that match on both tabs. Then I need to highlight the Matching Number in Column E (Item Number) in a Color, such as Green.


Thanks!


Jack
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
here is an example of what I need to do,

The Spreadsheet below is the tab "increased by Star"
On Order Differences.XLS
ABCD
1ItemPOQtyStarBumpQty
200428324144
30827093048
40847274245
5084741168170
60871932122
70871936364
80871932122
9143242948
101667971012
1123206435
12348508318360
13348565138144
144271537584
15430579468480
16469724612
17583377108112
18653121100102
196758922498
20755203752756
217750566072
228367262730
238470121260
Numbers increased by Star


I need to be able to compare The Item Numbers Against the following Tab on the same spreadhsset
On Order Differences.XLS
ABCDE
11ByrSupplierNumberSupplierNameDivItemNumber
121677450J-O-MPHARMSERVICES003952426
131677450J-O-MPHARMSERVICES008342329
141677450J-O-MPHARMSERVICES008130401
151677450J-O-MPHARMSERVICES010130005
161677450J-O-MPHARMSERVICES017133306
171677450J-O-MPHARMSERVICES020011957
181677450J-O-MPHARMSERVICES024667939
191677450J-O-MPHARMSERVICES024296624
201677450J-O-MPHARMSERVICES027538835
211677450J-O-MPHARMSERVICES027931081
221677450J-O-MPHARMSERVICES027132589
231677450J-O-MPHARMSERVICES027215046
241677450J-O-MPHARMSERVICES027902926
251677450J-O-MPHARMSERVICES030296954
Compare


and have the Numbers that are the same on the "increased by Star" Tab, Hightlight the numbers that are the same on the Compare Tab.

Hope this helps some.

Thanks Again!



Jack
 
Upvote 0
Correction, I only want to be able to highlight tthe Items Number in the compare Tab, not both.
 
Upvote 0
Hello,

Must be quick - need to go home.

In the Compare sheet in COlumn F enter this formula

=IF(ISNA(MATCH(E1,'Numbers increased by Star'!A:A,0)),"",MATCH(E1,'Numbers increased by Star'!A:A,0))

then Select cells A1:E1 select FORMAT --> COMDITIONAL FORMATTING and change cell value is to Formula is and enter

=$F1>0,

format as necessary,

Copy F1 downas far as necessary, and format other rows usiung the format painter.
 
Upvote 0
I am not sure about this line code code,

then Select cells A1:E1 select FORMAT --> COMDITIONAL FORMATTING and change cell value is to Formula is and enter

=$F1>0,

format as necessary,


Do I enter it in the Compare Tab or the other Tab. In the Conditional Formatting or ?


Thanks!!!


Jack
 
Upvote 0
When I use the Conditional Formatting, It highlights all my entries, not just the ones from the other tab. Any Ideas?


Thanks



Jack
 
Upvote 0
Jack,

If you want conditional formatting, this will work ...


Select your Numbers increased by Stars sheet, select the column with your numbers in it, and name the range 'Numbers' (Insert -> Name Define). Do the same for your Compare sheet, but name that range 'Compare'.

In your Numbers increased by Stars sheet, select column A (or your item number col), select conditional formatting and type this in the Formula Is ...

=(A1<>"")*(ISNUMBER(MATCH(A1,Compare,0)))

Now go to your Compare sheet and select the entire column of item numbers there. Again choose conditional formatting, Formula Is ...

=(E1<>"")*(ISNUMBER(MATCH(E1,Numbers,0)))

This works for me. So does the macro I wrote (link above). HTH
 
Upvote 0
I would like to be able to sort my Spreadsheet by Highlighted color. How can I do this? Is it possible to build it into the code (that is on the link that firefytr has posted on this thread), or maybe have the MAtching item numbers that are now being highlighted in green appear at the beginning of the worksheet.

Thanks Again



Jack
 
Upvote 0

Forum statistics

Threads
1,215,771
Messages
6,126,797
Members
449,337
Latest member
BBV123

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