+ Reply to Thread
Results 1 to 6 of 6

Macro to find text and multiply by number in statement

Hybrid View

Anxiety Macro to find text and... 11-18-2015, 02:59 PM
daffodil11 Re: Macro to find text and... 11-18-2015, 05:15 PM
Anxiety Re: Macro to find text and... 11-19-2015, 09:04 AM
daffodil11 Re: Macro to find text and... 11-19-2015, 10:33 AM
Anxiety Re: Macro to find text and... 11-19-2015, 10:58 AM
daffodil11 Re: Macro to find text and... 11-19-2015, 11:14 AM
  1. #1
    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:

    Sub Human()
    
    Dim rngCell As Range
    
    For Each rngCell In Range("B2", Range("B" & Rows.Count).End(xlUp))
        If rngCell.Offset(, -1) Like "*Qty. typical for *" Then
            rngCell.Offset(, 1) = CLng(Trim(Replace(rngCell.Offset(, -1), "Qty. typical for ", ""))) * rngCell
        End If
    Next
    
    End Sub
    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!

+ 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