CaptainCsaba
Board Regular
- Joined
- Dec 8, 2017
- Messages
- 78
Hey Everyone! I have a weird problem.
We usually get reports in PDF-s and we convert them to excel. Column A contains a lot cells with one word or a number. I need to separate the numbers that have thousand separators from the ones that don't. The problem is that after the conversion these are "number" type cells, so technically that cells that have thousand separators don't have them. the cells show 213,453,321 for example but if you click on it then it is only 213453321.
I managed to work around this with a bug (?). Basically if you do an autofilter and write the comma (,) into the Search (all) part it actually lists all the numbers with thousand separators. It does not work if you do the "text Filter" "Contains" route. My problem is that I wanted to record this to a macro but excel records it in a way that it uses too many line continuations and all the codes I know use the "Contains" part of autofilter. Is there a way to list all the funds with the thousand separators this way in VBA code?
The codes I used way like this:
We usually get reports in PDF-s and we convert them to excel. Column A contains a lot cells with one word or a number. I need to separate the numbers that have thousand separators from the ones that don't. The problem is that after the conversion these are "number" type cells, so technically that cells that have thousand separators don't have them. the cells show 213,453,321 for example but if you click on it then it is only 213453321.
I managed to work around this with a bug (?). Basically if you do an autofilter and write the comma (,) into the Search (all) part it actually lists all the numbers with thousand separators. It does not work if you do the "text Filter" "Contains" route. My problem is that I wanted to record this to a macro but excel records it in a way that it uses too many line continuations and all the codes I know use the "Contains" part of autofilter. Is there a way to list all the funds with the thousand separators this way in VBA code?
The codes I used way like this:
Code:
[COLOR=#252C2F][FONT=Courier]Range("A:A").AutoFilter Field:=1, Criteria1:=","[/FONT][/COLOR]