Hello! I am coming back with a request. I got some excel workbooks that need some formatting, and I wanted if there's a macro for it. I'll leave an example workbook so you can understand better. Basically, I got excel files with numbers, I add filter on the first row and I start to select numbers.
First, I select from the filter the natural numbers (without decimals), I select them all, I press format, and convert them from General to Number (with 0 decimals).
After that, I select from the filter only the numbers with 1 decimal, select them all, format cells again, convert from General to Number (with 1 decimal).
After that, I select from the filter only the numbers with 2 decimal, select them all, format cells again, convert from General to Number (with 2 decimal) and so on...
There are also 2 exceptions:
1) In the filters list appears sometimes (Blanks) - those I don't need to touch them. They should remain like that, not to be messed with. (photo example in excel below)
2)Numbers like: 2544.00000000 (photo example in excel below) - those need to be selected from the filter before everything, selected all afterwards, and when the exclamation icon appears, hit "convert to number" (photo example in excel below), and then selected again, format cells, convert from General to Number (with 0 decimals).
I know I kinda ask for a lot, but I don't know how to do it, so if you can make time to help me, it would mean a lot for me! Thank you!