+ Reply to Thread
Results 1 to 4 of 4

Vba multiplying a whole row by constant if figure appears in column b!!!!!!!!!!!

  1. #1
    Registered User
    Join Date
    11-06-2015
    Location
    San Diego
    MS-Off Ver
    2013
    Posts
    82

    Vba multiplying a whole row by constant if figure appears in column b!!!!!!!!!!!

    Hey Guys,

    everyone here is always such great help so I thought I would check to see if anyone could help me. So I am trying to create a macro that multiplies a whole row every figure in it based of an IF statement that works if certain word shows up in a certain cell. If the IF statment is satisfied it should only multiply those rows that have a "X" in the B column of that row. I have it work for 1 sheet but I am trying to make this macro apply to the whole work book. I will put a sample of my code below any help would be amazing. Thank you guys so much for your help.
    God bless!!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Vba multiplying a whole row by constant if figure appears in column b!!!!!!!!!!!

    Untested. Try on a copy first.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-06-2015
    Location
    San Diego
    MS-Off Ver
    2013
    Posts
    82

    Re: Vba multiplying a whole row by constant if figure appears in column b!!!!!!!!!!!

    Hi,
    Thank you so much for responding. I tried the code above and still the same result it only works for 1 sheet. and if I add more sheets to the part of the code where we set lr equal the code will run but it wont multiply on either sheet its like it only works for one or nothing. I changed the code a little I will put it below. Anything will help. you guys are awesome.
    Thanks,
    your friend

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-06-2015
    Location
    San Diego
    MS-Off Ver
    2013
    Posts
    82

    Re: Vba multiplying a whole row by constant if figure appears in column b!!!!!!!!!!!

    Maybe there is another way of approaching this a method that would just keep this argument rue for every worksheet in the workbook. I am not sure.
    Thank you

+ 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. [SOLVED] Multiplying several columns by a different constant
    By hohoho0214 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-21-2014, 10:42 PM
  2. [SOLVED] Using Autofill when multiplying with a constant cell
    By andrewharwood in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2012, 06:16 PM
  3. Replies: 7
    Last Post: 11-07-2012, 10:47 AM
  4. Need to freeze a figure only it appears on a certain date
    By Samuel@mylondonhome. in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-26-2012, 06:15 AM
  5. Multiplying time value by number figure
    By Khaldon in forum Excel General
    Replies: 7
    Last Post: 04-28-2011, 11:14 AM
  6. Multiplying entire range by a constant
    By Carnifex930 in forum Excel General
    Replies: 1
    Last Post: 06-20-2010, 05:22 PM
  7. [SOLVED] I am doing a calculation in excel, I am multiplying a figure by a
    By Freddo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2006, 10:10 AM

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