+ Reply to Thread
Results 1 to 2 of 2

find and select all instances of value in a column, perform calculation and return result

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    1

    find and select all instances of value in a column, perform calculation and return result

    Hello!

    I am trying to set up a macro that will run on the click of a button. I have two columns of data that will be used. I want to be able to type in a cell (lets say I2) the value that I am searching for, type in a cost in I3 and have the macro find all instances of the value in I2 in column A, take the corresponding value of column B for all those instances and add what I typed in cell I3, returning the result in the cell that is next to those results in colum C. I am new to recording or writing macro and would really appreciate the help![table="width: 500"]

    test.xlsx

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: find and select all instances of value in a column, perform calculation and return res

    Place this macro ina module:
    Please Login or Register  to view this content.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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