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 John D Your Own Question
John D
John D, BS Degree in Engineering
Category: Mac
Satisfied Customers: 9666
Experience:  Worked on Macs and PC's for 20+ years.
Type Your Mac Question Here...
John D is online now
A new question is answered every 9 seconds

Hi, I am using Microsoft Excel for Mac 2011 Ver. 14.0.0. I

This answer was rated:

I am using Microsoft Excel for Mac 2011 Ver. 14.0.0.
I have two worksheets with data. The first worksheet contains inventory data. It is arranged on the worksheet as such: Column A = unique id, Column B = product description, Column C = inventory numbers. The second worksheet is identical with the exception that Column C = number of items sold for 2010. I would like to merge the two sets of data onto a new worksheet that would have 4 Columns. Example : Column A = unique id, Column B = product description, Column C inventory numbers and Column D = items sold. The only possible difficulty I see is that the data in Column A does not always match up with the other worksheet because some of the products have been discontinued thus putting things out of sequence.
Please advise.
Customer: replied 6 years ago.
How does a MACRO work?



Would it be possible to send me the file so I can set it up for you on your file


Customer: replied 6 years ago.
Sure. Give me about 10 mins. Thanks.

Ok, let me know if you need instructions for uploading files.


A macro is a series of code instructions which can be run by say clicking a button and it will execute the task assigned to it



Customer: replied 6 years ago.
How do I upload the file?
Ok, go to and upload the file there (no need to sign up). You will then get a page that has the download link and File ID. Copy the download link or the File ID and come back here and paste it in your reply.

If the file has sensitive information let me know before you upload it
Customer: replied 6 years ago.


Got it thanks.


So you want both sheets to be combined into one sheet having both Qty Sold and Qty Available columns. And where columns A and column B are exactly the same (i.e. duplicates) it should appear only once on the final sheet with the quantities combined. Correct



Customer: replied 6 years ago.

Ok before proceeding with writing the macro I want to make sure that your excel configuration allows you to run macros. If not you will need to change it so macros can run


Here is a test file


When you click the button you should get a pop up box confirming that macros are enabled



Customer: replied 6 years ago.
macros enabled.



Give me 30 min or so and I will have it ready for you...



Customer: replied 6 years ago.
Will I be able to apply this to other data sets in the future?

Yes, but if you are not familiar with transferring macros to other files you can instead simply paste the data from your other files into this 'master' file and run the macro on the new data



Customer: replied 6 years ago.

Ok, here you go


The macro is triggered by clicking the Go! button on the 'Inventory' sheet. The combined list will be generated on the sheet 'Combined'


Hope this is ok. Let me know if you have any questions, and thank you for clicking Accept if you are satisfied with the solution



John D and 4 other Mac Specialists are ready to help you
Customer: replied 6 years ago.
I just found a problem. On the 'combined' worksheet item number 1-05-043 Doll Mermaid 'Coral' shows qty sold as 5 when in fact the 'qty sold' worksheet shows 1,326 sold!

Yes you are right.


Here is the corrected version


Again please feel free to get back to me if you find that it needs anything else


Related Mac Questions