Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Wooowww !!! You put me on the right track on checking content and
format. The problem was trailing spaces in one of the two texts to compare. I had the clue when I started comparing side by side the 2 spreadsheets with the same looking numbers and obtaining a no match. I then took a LEN of each cell content and I found that one was 10 characters long vs 8 for the other. This was a vicious trick because you could not detect the difference at first glance. .. Now, how do replace the existing value with a Trim of that value to remove the trailing spaces ? Would the following syntax be correct ? For Each RngCell In X RngCell.Value = Trim(RngCell(Value) res = Application.Match(RngCell.Value, IsMatch, 0) ........... Next RngCell .. Thank you for your help, J.P. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
TEXT TO COLUMNS WITH LEADING ZEROS | Excel Discussion (Misc queries) | |||
Mix text and numbers with leading zeros | Excel Worksheet Functions | |||
Text with leading zeros being converted to numbers | Excel Programming | |||
Remove leading Numbers from text | Excel Worksheet Functions | |||
numbers and text in Excel to read as text keeping the leading zer. | Excel Discussion (Misc queries) |