+ Reply to Thread
Results 1 to 4 of 4

Compare columns & based on that increase or decrease the column Data by Percentage

  1. #1
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Compare columns & based on that increase or decrease the column Data by Percentage

    If column D is lower then column H then calculate 1% of column D & add it to column D & If column D is greater than column H then calculate 1% of column D & subtract it to column D
    After runing the macro, the data pasted in column M is the output of the macro in column D, Column M data is only for understanding purpose
    I will run the macro from a different file located in a different path , file name is vbamacro.xlsm
    Attached Files Attached Files

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Compare columns & based on that increase or decrease the column Data by Percentage

    Hey MoldyBread,

    Below code should work on your sample file. However, I am not sure what exactly you want. You would place the code & run it from a file to execute the code in another file called "vbamacro.xlsm" ? If yes, uncomment the commented line of code below & try … Just be aware that there's a save action to the other file

    Please Login or Register  to view this content.
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  3. #3
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Re: Compare columns & based on that increase or decrease the column Data by Percentage

    It's working Awesome
    Thnx Alot Nankw83

  4. #4
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Compare columns & based on that increase or decrease the column Data by Percentage

    Glad to help & thanks for reporting back. If the suggested solution takes care of your request, please mark this thread as 'SOLVED' using Thread Tools from the top menu & consider giving reputations to those who have helped by clicking the star under their usernames

+ 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] Count and lookup values based of percentage increase or decrease
    By waimea in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 09-03-2019, 07:44 AM
  2. [SOLVED] Trying to Calculate Percentage Increase/Decrease
    By dlow in forum Excel General
    Replies: 5
    Last Post: 02-15-2015, 12:05 PM
  3. [SOLVED] Formula for percentage Increase and corresponding percentage decrease (and viceversa)
    By jcroque89 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-06-2015, 10:25 AM
  4. Percentage Increase/Decrease
    By SathishKumar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-19-2013, 01:53 PM
  5. Percentage Increase/Decrease
    By SathishKumar in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-16-2013, 10:52 AM
  6. Percentage of increase/decrease for time
    By buzzkill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2012, 10:43 AM
  7. Percentage Increase/Decrease
    By ianonline in forum Excel General
    Replies: 2
    Last Post: 06-24-2006, 11:10 PM

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