[RESOLVED] 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
https://drive.google.com/file/d/1bEO...ew?usp=sharing
https://drive.google.com/file/d/1MlF...ew?usp=sharing
Re: Copy & Paste if condition met with add & subtract
have you tried doing any of this yourself?
in these forums wee try to help people with code they are having problems with, we are not a free code writing service
you have had several examples of code to do similar to what you are asking at least attempt to convert some of it to this task
if you expect other to download your sample workbooks then post them here, zip first
Re: [RESOLVED] Copy & Paste if condition met with add & subtract