+ Reply to Thread
Results 1 to 6 of 6

Macro to find text and multiply by number in statement

  1. #1
    Registered User
    Join Date
    11-18-2015
    Location
    VA
    MS-Off Ver
    2016
    Posts
    19

    Macro to find text and multiply by number in statement

    This one component in many layers of macros for a project I'm working on.

    I need a macro to search for the text "Qty. typical for #" in column A.

    Then take the # and multiply by quantities in column B and Do Until IsEmpty.


    ' Search for "Qty. typical for #" in column A

    Multiply # by column B

    Until column B is empty

    Any help is appreciated.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Macro to find text and multiply by number in statement

    Maybe:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    11-18-2015
    Location
    VA
    MS-Off Ver
    2016
    Posts
    19

    Re: Macro to find text and multiply by number in statement

    I'm getting an error since I have data in column C also.
    I just need the macro to overwrite the original QTY and then delete the "Qty. typical for #" statement.

    Here's an example of the data.

    j0RIU.png

    In terms of the data table, the header is just from the original sheet and I don't necessarily need it to continue what I'm trying to achieve.
    I'm essentially just consolidating many separate units into 1 final for a complete count of materials.

    So, I wonder if I remove the header first, this would be easier to achieve.
    Last edited by Anxiety; 11-19-2015 at 09:07 AM.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Macro to find text and multiply by number in statement

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-18-2015
    Location
    VA
    MS-Off Ver
    2016
    Posts
    19

    Re: Macro to find text and multiply by number in statement

    I had to add

    Please Login or Register  to view this content.
    for it to skip non-numerics, but otherwise it works perfectly.

    I really appreciate the help.

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Macro to find text and multiply by number in statement

    No problem, glad I could help out.

+ 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. Replies: 2
    Last Post: 11-26-2014, 12:41 PM
  2. Find 'value' [words] in range and multiply using another value [number]
    By Tony1100 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-05-2014, 05:21 PM
  3. Want to create macro multiply with above number then move to next celll and same repeated.
    By singh1982jeetuu in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-26-2014, 06:01 AM
  4. Macro to multiply entire row by a fix given number
    By buchumang in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2014, 04:33 PM
  5. [SOLVED] Find specific values and multiply them by a number in their column
    By Thomas92W in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-29-2014, 01:22 PM
  6. Replies: 7
    Last Post: 06-17-2012, 05:03 AM
  7. Take cell with text and number and multiply with number
    By smuqeet in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-06-2012, 04:22 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