Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have imported two similar lists of names into a worksheet, 1 from an excel
worksheet and 1 from an access data base when I ask a cell to search the first list for a name from the second list it does not find it because the list imported from access has spaces added behind the names so although the name appears to look the same in the cell excel ignores it in a search. If I type the same name into a diffrent cell and use the same formula it is located. why are the spaces added on import when they are not in the original data? how can I stop them being added or how can I search an array forcing excel to ignore the spaces? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Better to remove the spaces. Put this in another column
=trim(A1) and drag down The will remove all leading and trailing spaces and you can then query the new column "mlearner" wrote: I have imported two similar lists of names into a worksheet, 1 from an excel worksheet and 1 from an access data base when I ask a cell to search the first list for a name from the second list it does not find it because the list imported from access has spaces added behind the names so although the name appears to look the same in the cell excel ignores it in a search. If I type the same name into a diffrent cell and use the same formula it is located. why are the spaces added on import when they are not in the original data? how can I stop them being added or how can I search an array forcing excel to ignore the spaces? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You could apply the TRIM( ) function to your column of imported names
to get rid of the extra spaces, or incorporate this into your search function. Hope this helps. Pete mlearner wrote: I have imported two similar lists of names into a worksheet, 1 from an excel worksheet and 1 from an access data base when I ask a cell to search the first list for a name from the second list it does not find it because the list imported from access has spaces added behind the names so although the name appears to look the same in the cell excel ignores it in a search. If I type the same name into a diffrent cell and use the same formula it is located. why are the spaces added on import when they are not in the original data? how can I stop them being added or how can I search an array forcing excel to ignore the spaces? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Data types when importing Excel data to SQLServer | Excel Discussion (Misc queries) | |||
Inputting data to one worksheet for it effect another | Excel Discussion (Misc queries) | |||
Inserting a new line when external data changes | Excel Discussion (Misc queries) | |||
Help PLEASE! Not sure what answer is: Match? Index? Other? | Excel Worksheet Functions | |||
Sort pages? | Excel Discussion (Misc queries) |