+ Reply to Thread
Results 1 to 4 of 4

help with my script to substract two values

  1. #1
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    help with my script to substract two values

    Hello,

    I'm calling out the guru's once again.
    For a template i use the following script, provided by someone on the forum here
    It works great and fast.

    It checks if there are two values in one row in certain columns, and if so, it creates a duplicate row for one of these values.
    In this case it should substract the value in column 14 with the value of column 13.

    So in column 13 is 100 and column 14 is 1500
    It creates a new row for the 1500 value, but it should substract it with 100.

    Does anyone know how to fix this in this script?

    Please Login or Register  to view this content.
    thanks!!

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: help with my script to substract two values

    Can you attach a sample workbook where I can run this code & test?
    Cheers!
    Deep Dave

  3. #3
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: help with my script to substract two values

    Hi NeedForExcel,

    I cant simply do this because of company information.
    However i just now solved this with substracting the values from eachother in case column 13 <> 0 before going into the for each.
    So it is basically solved

    Thanks anyways!

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: help with my script to substract two values

    No problem..

+ 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] Substract values in two columns in filter mode
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-22-2016, 02:40 PM
  2. Substract column values with lowest number among them
    By shyam100379 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-22-2013, 02:06 AM
  3. [SOLVED] How to substract values in one column from another in every possible combination?
    By Alice_1989 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-03-2012, 04:38 PM
  4. [SOLVED] Substract values from two arrays and show in new sheet
    By paddy69 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-15-2012, 06:20 AM
  5. Replies: 2
    Last Post: 05-31-2010, 03:23 PM
  6. [SOLVED] How do I substract numbers in range like this: Substract(a1..a10)
    By Paulo in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 11-17-2005, 12:50 AM
  7. [SOLVED] how do I substract
    By kiserlouisa in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-23-2005, 08:06 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