Dear Experts,
I tried to create a macro and I am really stuck at a point. I looked around in the forum but I couldn't find the solution so now I would like to ask your help.
My issue is the same like in the file attached:
TOP 10 copy and paste.xlsm
On the Data sheet you can see three Columns. The values are sorted ascending in column C like in my original file.
I would like to do with VBA the following:
TOP10 >0:
- Filter "a" in the Type column (column B).
- Choose the 10 biggest (so above 0) values from Value column (column C).
- Copy and paste these rows to the Paste sheet from row 3 to row 12 (it is very important to me to copy and paste the entire rows).
TOP10 >0:
- Filter "a" in the Type column (column B).
- Choose the 10 smallest values (so below 0) from Value column (column C).
- Copy and paste these rows to the Paste sheet from row 18 to row 27 (it is very important to me to copy and paste the entire rows).
So as you can see basically the macro should do the same: first copy and paste the 10 biggest values with "a" filter and then copy and paste the 10 smallest with the same settings. With this I could easily get the TOP10 values in both direction from 0 and I can do my further analysis.
I hope you can help!
Thank you very much for your efforts!
Bookmarks