+ Reply to Thread
Results 1 to 2 of 2

Finding Matching Data in one Column/Adding corresponding matching string value.

  1. #1
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    Finding Matching Data in one Column/Adding corresponding matching string value.

    OK So Lets say i have two columns of data

    column A has stock symbols and Column B has the price I paid or sold it for.

    I am looking to write a Macro that would find all the matching symbols in column A- find the corresponding value on B and then paste it to another worksheet (To sum up the sum of buying/selling)

    for example if I bought apple stock and paid 1,000 bucks one day and I sold it for 2,000 bucks another day, I want the macro to recognize..."Hey aapl was bought for 1,000 and sould for 2,000" profit is $1,000.



    How would I write a macro that what allow me to
    1. enter the symbol in a message/input box... (based on the symbols in the column would I dim a variable as a string?)
    2. find the stock symbol in column A (each time it appears)
    3. for each time it appears it sums the value in a different worksheet or column

    Any Help is greatly Appreciated...

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Finding Matching Data in one Column/Adding corresponding matching string value.

    Assuming sheet names are Sheet1 and Sheet2 respectively

    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. Finding largest value in subsequent column from matching ID numbers
    By Norsemermaid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-29-2011, 11:27 AM
  2. Replies: 4
    Last Post: 06-24-2011, 05:24 PM
  3. VBA Search Column for matching string in another sheet
    By photopidge in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2010, 01:09 PM
  4. Replies: 2
    Last Post: 07-20-2009, 08:52 PM
  5. finding or matching data
    By langdon37 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-09-2008, 02:25 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