Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default inexact search


I have a sheets containing data with headers that I am going to manipulate
with a macro. The problem is that the headers contain spaces after the text
(though not always) and so a search when referenced to another cell (e.g.
using VLOOKUP or IF statement- not decided yet) is coming back empty.

One option is to edit the input data first using a simple macro
(Find+Replace), though I would be keen to learn of options if available.

Cheers

M
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default inexact search

Hi
have a look at the TRIM function to manipulate these entries

"Mourinho" wrote:


I have a sheets containing data with headers that I am going to manipulate
with a macro. The problem is that the headers contain spaces after the text
(though not always) and so a search when referenced to another cell (e.g.
using VLOOKUP or IF statement- not decided yet) is coming back empty.

One option is to edit the input data first using a simple macro
(Find+Replace), though I would be keen to learn of options if available.

Cheers

M

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
Functions (search within search result) reply to this please Nick Excel Worksheet Functions 1 February 17th 09 03:57 AM
Comparing similar but inexact text David Excel Worksheet Functions 0 September 20th 07 05:32 PM
How do I count words in a column if they are inexact? Sam Excel Worksheet Functions 2 January 9th 07 07:22 AM
How do I search excel spreadsheets using multiple search criteria. Kasper Excel Worksheet Functions 4 December 15th 05 12:26 AM
Inexact? InsideTop and InsideLeft Method of PlotArea (Excel 97) jintao Charts and Charting in Excel 4 July 21st 05 09:47 AM


All times are GMT +1. The time now is 10:29 AM.

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

About Us

"It's about Microsoft Excel"