I'm using this to copy and pate negative values.
Is it possible to change values close to zero, as being zero, if within 0.001.
Please Login or Register to view this content.
I'm using this to copy and pate negative values.
Is it possible to change values close to zero, as being zero, if within 0.001.
Please Login or Register to view this content.
Hello. The best thing would be for you to upload a worksheet to the Forum with a couple of specific examples (10 will be enough) in which we can see what you have and what you want to achieve (you put the latter "by hand").
Hi, the code just copies and pastes to negatives (see attachment).
Just wanted to know if values close to zero can be made zero.
Attachment 798312
Try:
Please Login or Register to view this content.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Thanks TMS, this definitely works.
I should have mentioned that the data will end up being thousands of rows and more columns, and was trying to avoid making reference to the worksheet as this makes the macro slow.
It may be that arrays have to be used but I wasn't sure how to do it with arrays to make it quick.
Please Login or Register to view this content.
You're welcome. Thanks for the rep.
Looks like jindon has the solution.
Thanks jindon, this works really quickly with more than 10k rows of data.
Cheers.
jindon, is it possible to paste to another worksheet.
I've tried but all the pasted values are the same as cell A2 in Sheet1.
Sheet1 = source data sheetPlease Login or Register to view this content.
Sheet2 = output sheet.
Thanks once again jindon, this works really well.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks