+ Reply to Thread
Results 1 to 1 of 1

Copy & Paste if condition met with add & subtract

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

    Copy & Paste if condition met with add & subtract

    Hi Experts,
    I am looking for a macro that will do the things mentioned below

    there are 3 files 1.xls & BasketOrder.xlsx & macro.xlsm (macro will be placed in macro.xlsm),both files are loacted in diffrent places so the path will be hardcoded in the macro so that i can change it as per my needs
    sheet name can be anything
    plz see the sample file


    If column C of basketorder.xlsx matches with column B of 1.xls & Column J is BUY then add 0.05 to column D of 1.xls & compare column L of basketorder.xlsx with column D of of 1.xls & if column D of 1.xls is lower then Column L of basketorder.xlsx then replace column L data with column D data OF 1.xls

    If column C of basketorder.xlsx matches with column B of 1.xls & Column J is SELL then subtract 0.05 to column D of 1.xls & compare column L of basketorder.xlsx with column D of of 1.xls & if column D of 1.xls is greater then Column L of basketorder.xlsx then replace column L data with column D data OF 1.xls




    Thnx for the Help
    Attached Files Attached Files

+ 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. VBA Copy and Paste Rows if Condition is Met
    By Nav8569 in forum Excel General
    Replies: 1
    Last Post: 10-07-2019, 05:49 AM
  2. [SOLVED] VBA- Copy and paste rows if condition is met
    By ANGIE90 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2018, 11:14 AM
  3. Replies: 3
    Last Post: 01-09-2016, 04:39 PM
  4. Copy paste to different tab base on condition
    By calvinle in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-04-2014, 11:10 PM
  5. [SOLVED] Copy paste with filtering condition
    By Jhon Mustofa in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2014, 06:15 AM
  6. [SOLVED] IF the condition of gender is met AND the condition of age is met subtract this number
    By arsenalmom in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-16-2014, 11:16 PM
  7. [SOLVED] Copy and Paste Row If Condition is Met
    By mattman123 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2013, 01:26 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