Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default VLOOKUP Trim vs. No Trim

So I have this data population. When I VLOOKUP( etc...) it will pull
back data for some, but not for others since there trailing spaces. So
I modify the formula to VLOOKUP(TRIM(), etc...), which fixes the space
issue, but then stops returning values for cells that previously
returned data. It's like I have to choose one or the other. Anyone
else experience this?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 180
Default VLOOKUP Trim vs. No Trim

I think you have spaces in both, the range in which you are looking the match
and the original to be matched value.

You must format/trim the range to search and then your below formula with
TRIM() will work.

Hope this makes sense!!
--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think my answer is useful, please rate this post as an ANSWER!!


"Kigol" wrote:

So I have this data population. When I VLOOKUP( etc...) it will pull
back data for some, but not for others since there trailing spaces. So
I modify the formula to VLOOKUP(TRIM(), etc...), which fixes the space
issue, but then stops returning values for cells that previously
returned data. It's like I have to choose one or the other. Anyone
else experience this?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default VLOOKUP Trim vs. No Trim

On Oct 3, 11:11 am, Pranav Vaidya
wrote:
I think you have spaces in both, the range in which you are looking the match
and the original to be matched value.

You must format/trim the range to search and then your below formula with
TRIM() will work.

Hope this makes sense!!
--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think my answer is useful, please rate this post as an ANSWER!!



"Kigol" wrote:
So I have this data population. When I VLOOKUP( etc...) it will pull
back data for some, but not for others since there trailing spaces. So
I modify the formula to VLOOKUP(TRIM(), etc...), which fixes the space
issue, but then stops returning values for cells that previously
returned data. It's like I have to choose one or the other. Anyone
else experience this?- Hide quoted text -


- Show quoted text -


I trimmed that range as well manually. The I trimmed them both. Still
doesn't work. It's not like it is leaving certain cells out, it is
picking and choosing which cells to pull data from based on the
formula. It's driving me nuts. Thanks for the suggestion though.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
trim and vlookup dun work Seeking help[_9_] Excel Programming 1 August 18th 06 07:17 AM
vlookup with trim function rodgie Excel Discussion (Misc queries) 5 June 6th 06 12:02 PM
Vlookup & Trim Paperback Writer Excel Discussion (Misc queries) 4 February 4th 06 06:58 PM
VBA Trim and Application.worksheetfunction.Trim Hari Prasadh Excel Programming 3 January 19th 05 02:22 PM
Trim like worksheet Trim Bob Phillips[_5_] Excel Programming 0 August 20th 03 07:10 PM


All times are GMT +1. The time now is 02:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"