Link to home
Start Free TrialLog in
Avatar of Swn-Y-Mor
Swn-Y-Mor

asked on

compare 2 columns of data in different worksheets

Good morning,
I have a list of numbers in column B in a worksheet called 2012 and I need to compare them to another similar column B of numbers in another worksheet called 2013. I need to be able to highlight (change color of cell background) if  exact number exists in original Column B. The numbers are 6 figure numbers each time.

Thanks
Avatar of Jacques Geday
Jacques Geday
Flag of Canada image

Is this what your looking for ?

Activate the macros in the file and in sheet 2012 press on the button Compare 2012 2013 for your convenience and check I have put in Col C the row number of the item found in sheet 2013 so you can compare and make sure the macro works fine. Then this can safely be removed.

Check it out and let me know.
gowflow
CompareHighlight.xls
Avatar of Swn-Y-Mor
Swn-Y-Mor

ASKER

Thanks for replying. That is fantastic :-) but it also highlights empty cells. If it can be tweaked not to highlight empty cells then it would be perfect

thank you so much
Ooops didn't notice that !!!!
here it is
gowflow
CompareHighlight.xls
Thanks for the quick reply once again. This is exactly what i was after.

Would it be a huge job to get the macro to ignore cells containing text too?

Thanks once again
would it be ....

Think well .. get your ideas together and give me the changes all at once.
gowflow
That would be complete with the 'ignore text' bit too. sorry to mess you around :-)
Thanks once again.
ASKER CERTIFIED SOLUTION
Avatar of Jacques Geday
Jacques Geday
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I can't thank you enough. This is fantastic and exactly what I wanted ... and quick responses each time too. Sorry for not stating what I wanted from the outset but thanks for being patient and understanding.
Ist class responce and perfect solution.
thank you thank you for your very nice comments and appreciation. Your welcome to ask for help if you want I will keep this question monitored.
gowflow