+ Reply to Thread
Results 1 to 7 of 7

Formula to compare, add and output to new worksheet

  1. #1
    Registered User
    Join Date
    01-07-2015
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3

    Question Formula to compare, add and output to new worksheet

    I am hoping you can help me. I am trying to do something that I don't believe is too difficult, but really have no idea how to write the formula. Can you offer me some guidance?

    What I need to do is compare sales of items from 2 different sources of data (worksheets). There are a total of 2 columns of data on each worksheet. Column A contains the name of an item like "red shirt". Column B contains a number that relates to the number of red shirts that got sold, lets say 10. Now carry this on for 10000+ items with the corresponding number of units sold next to each item. Worksheet 2 has many of the same items as the first sheet, but in a different order.

    What I need to do is create a formula that will compare the text values of each cell in Column A on worksheet 1, to column A on worksheet 2, if a match is found, then the number of units sold for each item need to be added together and I want the information output to a third worksheet.

    For example.
    On worksheet 1, there is an item called "Yellow Shirt" in cell A1, and there is a number in A2 that says "10"
    On worksheet 2, there is an item called "Yellow Shirt" in cell A44, and there is a number in B44 that says "6"
    I want Excel to find these items, add the values together and output the combined values on worksheet 3 so it shows item "yellow shirt" with a number next to it that says "16"

    Where do I begin to solve this problem? Who's smarter than me?
    Last edited by Morbetta; 01-07-2015 at 03:03 PM.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: No idea how to...

    send a sample (non sensitive) excel with the exact structure. It can be done ....

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: No idea how to...

    Hiu, Morletta,

    yo should have another look at the Forum Rules and change your thread title to a more searchfriendly one than the one you used (Forum Rule #1).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Registered User
    Join Date
    01-07-2015
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3

    Re: No idea how to...

    Hi RCM,

    See attached excel spreadsheet to get an idea of what I am trying to do. I have manually added the numbers and entered the info on worksheet 3 so you can see what I need the output to look like.

    I appreciate any assistance you can provide me.
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Formula to compare, add and output to new worksheet

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    01-07-2015
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3

    Re: Formula to compare, add and output to new worksheet

    I believe I have an appropriate thread title.

  7. #7
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Formula to compare, add and output to new worksheet

    this formula goes in b2 an so on
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Have no idea how to get this done. Please help.
    By Leonard99321 in forum Excel General
    Replies: 4
    Last Post: 08-17-2013, 06:03 AM
  2. No Idea What I Am Doing
    By Phil8872 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-10-2013, 02:15 PM
  3. calculate the difference between each possible pair of data
    By steve978 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-12-2012, 09:51 AM
  4. Idea for ID
    By zbor in forum Excel General
    Replies: 1
    Last Post: 04-09-2009, 03:37 PM
  5. [SOLVED] I've no idea how to do this. :(
    By MagnoliaSouth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2006, 04:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1