1 Attachment(s)
calculation by percentage and conditionally puting the data
Calculate 2% of colum H & column I & considered the greater number between them
column S should be positive, so don't considere the no. which are negative
& if column S is lower than that 2% of column H or Column I (whichever is greater )then put -1
vba macro will be placed in a seperate file , sheet name can be anything, all files are located in different place
example
the U2 cell will become -1 after runing the macro
Similar to this from MoldyBread at excelforum
https://www.excelforum.com/excel-pro...ml#post5338184
2 Attachment(s)
Put Decimal with certain conditions
Hi Experts,
I am looking for a macro that will do the things mentioned below
Check column H of 1.xls has how many number before decimal (If decimal is not present then check how many numbers it has )
after knowing this, match column I of 1.xls with Column B of 2.xlsx & if matched then put decimal in column E of 2.xlsx after that many numbers (if decimal is not present) & if decimal is present then remove that decimal & reput the decimal in column E of 2.xlsx according to the numbers
Plz see the sample file
Macro will be placed in macro.xlsm
both file can be located anywhere in the pc so the path should be hardcoded in the macro so that i can change it as per my needs in the future
Thnx For the Help
Any Doubts Any Question Plz Ask
1 Attachment(s)
If Decimal Found then move the data from after decimal to before decimal
Hi Experts,
I am looking for a macro that will do the the things mentioned below
Macro will be placed in a macro.xlsm
macro.xlsm & 1.xls both are located in different path so the path should be hardcoded in the macro, so i can change it as per my needs
In column K, If after decimal if the second digit is 0 then Move all the data from after decimals to before decimals
K2 has data that has the second number after decimal is 0, so the output would be in K2 10030.00
Thnx For the Help
https://www.excelforum.com/excel-pro...e-decimal.html