Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

compare 2 columns of data in different worksheets

Posted on 2013-12-05
10
232 Views
Last Modified: 2013-12-06
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
0
Comment
Question by:Swn-Y-Mor
  • 5
  • 5
10 Comments
 
LVL 29

Expert Comment

by:gowflow
ID: 39697744
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
0
 

Author Comment

by:Swn-Y-Mor
ID: 39697893
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
0
 
LVL 29

Expert Comment

by:gowflow
ID: 39697913
Ooops didn't notice that !!!!
here it is
gowflow
CompareHighlight.xls
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Author Comment

by:Swn-Y-Mor
ID: 39697951
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
0
 
LVL 29

Expert Comment

by:gowflow
ID: 39697965
would it be ....

Think well .. get your ideas together and give me the changes all at once.
gowflow
0
 

Author Comment

by:Swn-Y-Mor
ID: 39698001
That would be complete with the 'ignore text' bit too. sorry to mess you around :-)
Thanks once again.
0
 
LVL 29

Accepted Solution

by:
gowflow earned 500 total points
ID: 39698060
No problem it is that sometimes we start with an issue and end-up completely somewhere else. Not pointing this to you but had this experience in here and it is quite annoying, the worst is when people do not seem to appreciate whatever you do and they keep on requesting changes endlessly !!!
:)

Pls chk this version and be my guest to ask for more.
gowflow
CompareHighlight-V1.xls
0
 

Author Comment

by:Swn-Y-Mor
ID: 39700587
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.
0
 

Author Closing Comment

by:Swn-Y-Mor
ID: 39700589
Ist class responce and perfect solution.
0
 
LVL 29

Expert Comment

by:gowflow
ID: 39701333
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
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question