How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Yegarboy Your Own Question

Yegarboy
Yegarboy, Computer Enthusiast
Category: Microsoft Office
Satisfied Customers: 490
Experience:  Expert VBA Programmer.
Type Your Microsoft Office Question Here...
Yegarboy is online now
A new question is answered every 9 seconds

How do I find out if an item in one column of an Excel spreadsheet

Customer Question

How do I find out if an item in one column of an Excel spreadsheet is present in a column of another spreadsheet?
Submitted: 11 months ago.
Category: Microsoft Office
Expert:  Yegarboy replied 11 months ago.

Customer:

Welcome To Just Answer!

Customer:

A Macro would be best. What exactly do you wish to do? :)

Customer :

I have two spreadsheets. I want to see if a jobname on one spreadheet is present on the other spreadsheet and vice versa.

Customer:

yeah that can be done with a Macro. Are you familiar with them?

Customer :

vaguely-very

Customer:

No worries, If you want I can add it to your workbook for you.

Customer :

awesome!

Customer:

How would you like it setup?

Customer:

What I mean by that is,..How do you want to search for said Jobname? 1 at a time?

Customer :

i guess we could return the items that are not present on the other worksheet?

Customer :

not one at a time-compare both lists and say true or false or something?

Customer:

Ok, Do you want to add some kind of Marker to it? Like change the Colors Green for Found and Red for not found?

Customer :

that would be cool!

Customer:

Sweet :)..

Customer:

What I need you to do is attach your file here.

Customer:

See the Paper clip icon in the tool bar

Customer :

both spreadsheets, correct?

Customer:

You it to attach your book

Customer:

Use..

Customer:

Sorry lol

Customer:

Yes :)

Customer:

Do you mean you have 2 Excel files? 2 separate workbooks?

Customer :

did you get them?

Customer:

No :(

Customer:

You might have to upload them 1 at a time

Customer:

Now we got them :)

Customer :

now?

Customer:

Yes sir :)

Customer:

I have them

Customer :

k

Customer:

Walk me thru what and where :)

Customer :

okay, if you open 2013wip both status WB.....Column a is the job name.

Customer :

Then in 130822 Cindy job report WB.... 7-29 tab,

Customer :

column b, job name code

Customer :

I wanbt to comapare the job report with the wip report

Customer:

Ok just a sec

Customer:

I dont have a Cindy report book

Customer :

The file is called " Copy of 130822 Cindy Job Report?

Customer :

you don't have that?

Customer:

these 2

Customer:

2013-08-23_170840_2013wip_both_status_jcbndrpt

Customer:

Quick question....

Customer :

i don't know what that first one u mentioned is. do you have it now?

Customer:

Are both of these sheets located inside the same workbook?

Customer :

no, but I could make that happen....

Customer:

If it wont mess with your routine it would be much better if the sheets were in the same book :)

Customer:

Instead of creating a New Workbook, create a new sheet. Then all the data is under 1 roof :)

Customer :

got it?

Customer:

yes sir :) Or Mam :)

Customer :

cindy= maam

Customer:

So I search Column A of sheet1 for a Match on the same Column of sheet 2 and turn Matches green and non matches red.? Sound good? :)

Customer :

no

Customer:

:(

Customer:

How would you like it :)

Customer :

lol...column a of sheet one with column b of sheet 2

Customer:

Oops I'm sorry lol, I didn't see Column A was hidden. My mistake :).. Give me like 5 minutes :)

Customer :

sure

Customer :

what name shall I address you with?

Customer:

Ok all done :) Just a sec while I upload it you.

Customer:

I added a Button on the top right of Sheet1. Simply click it and watch it work :)

http://www.mediafire.com/view/?mp43vj9f5y5cxib

Customer :

Mr. Yegar, These aren't the ultimate spreadsheets I will be using. When I get the final versions, can you show me how to duplicate what u did. Okay, I'm going to play now...hold on..I'm excited!

Customer:

It would be my pleasure to show you :)

Customer :

its still working...

Customer :

i think....

Customer:

Did it mess up?

Customer :

oh, I had to hot okay...WOW!!

Customer:

Is it good? :)

Customer :

no, its cool!!

Customer :

so

Customer:

It really easy to adapt the code. I am making Notes in my code to give you a better idea :)

Customer :

if the ones on sheet one are on sheet 2 they turn green and if not it turns red. That is SO AWESOME!!!!!!!!

Customer:

Glad you like it :)

Customer :

i don't even know where your code is!!!

Customer:

To see the code press the ALT key and hold it. Then tap the F11 key

Customer :

do i put the cursor on the a column cell when i do that?

Customer:

When you do what?

Customer:

When you search?

Customer :

no, alt, f11. i did it but nothing happened..

Customer:

You may have to click a cell..Any cell just once. Then tap Alt + F11

Customer :

not sure if my f11 button is working. its red, is that what the alt does- get to the red

Customer:

Hmm not sure.. Try this..

Customer:

See where it says Sheet1 at the bottom?

Customer :

yes

Customer:

Right click the Sheet1 name and Click "View Code"

Customer :

k, i did . that worked!

Customer:

Then when the new window Opens, look on the Left and double click where it says Module

Customer:

Thats the code.

Customer :

i see the code. now what?

Customer:

Ok,... heres where it can be tricky.

Customer:

See where it says Sheet1 throughout the Code?

Customer :

yup

Customer:

Sheet1 is where the Code begins its search.

Customer :

yes

Customer:

Now see where it has a Range("A1:A1000")

Customer:

Next to Sheet1

Customer :

yes, it searched that range..

Customer:

Correct

Customer:

Thats the only part of the TOP of the code you should adapt.

Customer :

okay..

Customer:

Next look for where it says Sheet2.select

Customer :

yes

Customer:

Its just below the top

Customer :

yup

Customer:

Thats where the codes Looks for its match

Customer :

yes, column b

Customer:

You got it..

Customer:

Thats it..

Customer:

Just modify Where to start and where to look/

Customer:

The rest of the code is just tweaks to make it run fast and smooth

Customer :

okay. so can I replace the workshhets with updated values and the code will remain behind it?

Customer:

Yes Mam.

Customer :

okay, i think i got it. that is SO cool!!

Customer :

um, so i can have 4 more questions for the rest of the month?

Customer:

:) And later on if you want. it can be adapted to do lots of cool stuff. The sky is the limit :)

Customer :

okay. I think i am gold for now! If i get back online later, can I get to you? I'd like to request you..

Customer:

You sure can. Just put "ForCustomer at the beginning of your question or follow this link.....

Customer:

Just a sec lol

Customer :

and can I print and/or save this chat?

Customer:

You should be able to yes. Or bookmark it and return anytime

Customer :

how do i bookmaRK IT? : )

Customer:

Right click the page and select "Add to Favorites"

Customer :

ok, I am good to go! I'm so glad I found you . Thank you so much for all of your help!!!!

Customer :

ps. you get an extra bright smiley!!

Customer:

Your very welcome :) I am here anytime you need me. Please don't forget to Rate :)

Customer :

you are rated TOP NOTCH. have a GREAT day!!

Customer:

Thanks you too :)

Customer :

bye!

Customer:

Bye

Yegarboy, Computer Enthusiast
Category: Microsoft Office
Satisfied Customers: 490
Experience: Expert VBA Programmer.
Yegarboy and 5 other Microsoft Office Specialists are ready to help you
Customer: replied 10 months ago.

HiCustomer Are you there? You helped me out Friday, but I need additional help on same project. I have new data for the worksheet, but can't get the macro to work.

Expert:  Yegarboy replied 10 months ago.
Customer: replied 10 months ago.


Hi Yegarboy,


 


What if I wanted to reverse Sheet one and 2...ie; see which ones are on two and not one?


 

Customer: replied 10 months ago.


You are THE BEST!! thank you!!

Expert:  Yegarboy replied 10 months ago.
Anytime my friend :)
Customer: replied 10 months ago.


see ya next time!! I'll give you another great rating!! : )

Expert:  Yegarboy replied 10 months ago.
Just let me know if I can help you again. I am always here to help. :)

Take care.
Expert:  Yegarboy replied 10 months ago.
Thanks for the Rating :) You can Rate one om my new Answers above.

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
< Last | Next >
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
 
 
 

Meet The Experts:

 
 
 
  • jstinehelfer

    Information Systems Manager

    Satisfied Customers:

    36
    A+ Comptia Certified computer repair
< Last | Next >
  • http://ww2.justanswer.com/uploads/JS/jstinehelfer/2012-6-6_215146_Pictureofme1.64x64.png jstinehelfer's Avatar

    jstinehelfer

    Information Systems Manager

    Satisfied Customers:

    36
    A+ Comptia Certified computer repair
  • http://ww2.justanswer.com/uploads/JA/JasonJames122/2011-12-16_135647_jasonjamesheadshotweb.64x64.jpg JasonJames122's Avatar

    JasonJames122

    Computer Enthusiast

    Satisfied Customers:

    0
    I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business
  • http://ww2.justanswer.com/uploads/JE/jessmagz/2012-6-6_18129_jm.64x64.jpg Jess M.'s Avatar

    Jess M.

    Computer Support Specialist

    Satisfied Customers:

    301
    Computer Software Specialist for more than 10 years
  • http://ww2.justanswer.com/uploads/CH/chutz747/2011-11-6_14231_me.64x64.jpg The-PC-Guy's Avatar

    The-PC-Guy

    Computer Manager

    Satisfied Customers:

    274
    20 years experience providing remote computer support
  • http://ww2.justanswer.com/uploads/SP/spherrod/2012-6-6_174244_1000852.64x64.JPG Steve Herrod's Avatar

    Steve Herrod

    Computer Support Specialist

    Satisfied Customers:

    125
    Trained in Microsoft Office from 2000 through to latest version 2010.
  • http://ww2.justanswer.com/uploads/SE/Seashore2011/2011-12-6_33418_111205223015.64x64.jpg Chris L.'s Avatar

    Chris L.

    Support Specialist

    Satisfied Customers:

    124
    Certified Expert with over 10 years experience.
  • http://ww2.justanswer.com/uploads/KR/krkljatorm/2012-6-24_153417_ITMiro.64x64.jpg IT Miro's Avatar

    IT Miro

    Computer Scientist

    Satisfied Customers:

    97
    Bachelor's Degree in Information Technology, Microsoft Certified Professional