I have a problem with advanced filter in Excel.
I will make it simple to let you understand and reproduce the same problem.
There is a Table T1 with data
And a secondary Table T2 that is a clone of T1 but empty
I will use T2 for advance filtering T1
Ill do it through a macro that i created, but you can simply click on advanced filter and select the second table after filling it up in the diagonal with the "searched value", i will use the SEARCH FIELD bar and a macro to this purpose and apply the filter with something like that:
T2.SetDiagonalValue val
T1.Range.AdvancedFilter xlFilterInPlace, T2.Range
Here is what happen if i write 572 in the Search Field
This is the intermediate step made by my macro:
Result:
And there is the problem:
In the T1 table i have some columns one of them have Postal Code (CAP) with cells formatted as Text but written with only numbers.
If i use Advanced Filter to search Text, it will work: example
But if i try to search NUMERIC VALUE it will work only if the searched value match entire cell contents, and PARTIALLY WORK (he will show only result of number in cells formatted as TEXT, the cell with yellow background is formatted as NUMBER) if i place a Jolly character in the search field:
Not Working:
Not Showing yellow cell:
Showing all:
Instead if a Cells is Text and start with number, he will work only if i place the entire starting number and at least 1 char after it:
Searching for 622SVCB, Not Working:
Working:
Each column has been set as "TEXT" except the cells with Yellow Background. Why this happen?

















