When importing data, a column does not recognize numbers

paroduso

Board Regular
Joined
Sep 11, 2013
Messages
103
Office Version
  1. 2019
Platform
  1. Windows
Hi everyone,
im facing this problem...When importing data, column "C" does not recognize numbers. I allready made a vba code to make an advanced filter...but because of that the code doesnt work...if i convert the column to numbers it works fine...so what i need is, when past the values i need the column to automatically reconize the numbers...any formulas/vba code?

thank you very much.
Sem Título2.jpg
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
If you're pasting data from a screen grab or web page, it may have zero length characters in what you're pasting.
You can test this by doing a
Excel Formula:
=CODE(MID(C2,SEQUENCE(Len(C2)),1))
If you see Code numbers outside of printable characters that is the culprit. Its pretty hard to clean up before pasting.
You could update your VBA code to strip the characters out.

if you don't have SEQUENCE function, you'll have to use an altered formula and drag across.


Char(160) is one such character:
Book1
ABCDEFGHIJK
1
2=REPT("A",5)&CHAR(160)LenMID SEQUENCE
3AAAAA 6AAAAA
4AAAAA  
Sheet3
Cell Formulas
RangeFormula
C2C2=FORMULATEXT(C3)
C3C3=REPT("A",5)&CHAR(160)
D3D3=LEN(C3)
E3:J3E3=MID(C3,SEQUENCE(1,LEN(C3)),1)
E4:K4E4=IF(COLUMNS($E$4:E4)>LEN($C$3),"",MID($C$3,COLUMNS($E$4:E4),1))
Dynamic array formulas.
 
Last edited:
Upvote 0
If you're pasting data from a screen grab or web page, it may have zero length characters in what you're pasting.
You can test this by doing a
Excel Formula:
=CODE(MID(C2,SEQUENCE(Len(C2)),1))
If you see Code numbers outside of printable characters that is the culprit. Its pretty hard to clean up before pasting.
You could update your VBA code to strip the characters out.

if you don't have SEQUENCE function, you'll have to use an altered formula and drag across.


Char(160) is one such character:
Book1
ABCDEFGHIJK
1
2=REPT("A",5)&CHAR(160)LenMID SEQUENCE
3AAAAA 6AAAAA
4AAAAA  
Sheet3
Cell Formulas
RangeFormula
C2C2=FORMULATEXT(C3)
C3C3=REPT("A",5)&CHAR(160)
D3D3=LEN(C3)
E3:J3E3=MID(C3,SEQUENCE(1,LEN(C3)),1)
E4:K4E4=IF(COLUMNS($E$4:E4)>LEN($C$3),"",MID($C$3,COLUMNS($E$4:E4),1))
Dynamic array formulas.
I apologize for a second reply. I forgot to wrap the CODE function around the MID formula:
Book1
CDEFGHIJKL
1
2=REPT("A",5)&CHAR(160)LenMID SEQUENCE
3AAAAA 66565656565160=CODE(MID(C3,SEQUENCE(1,LEN(C3)),1))
46565656565160 =IF(COLUMNS($E$4:E4)>LEN($C$3),"", CODE(MID($C$3,COLUMNS($E$4:E4),1)))
Sheet3
Cell Formulas
RangeFormula
C2C2=FORMULATEXT(C3)
C3C3=REPT("A",5)&CHAR(160)
D3D3=LEN(C3)
E3:J3E3=CODE(MID(C3,SEQUENCE(1,LEN(C3)),1))
E4:K4E4=IF(COLUMNS($E$4:E4)>LEN($C$3),"",CODE(MID($C$3,COLUMNS($E$4:E4),1)))
Dynamic array formulas.
 
Upvote 0
Hi awoohaw...thank you very much for the support...

there are things sometimes without explanation...even without excel recognizing the numbers...I wasted about 1 hour with formulas back and forth and just closed the file and opened it...the VBA code that I have pure and it just worked!!!

once again thank you.
 
Last edited:
Upvote 0
Well, a fresh reboot of files is always one way to start fresh!

Best wishes!
 
Upvote 1
Solution

Forum statistics

Threads
1,223,885
Messages
6,175,182
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top