Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-03-2014, 09:10 AM
jackzha jackzha is offline Index Match function Windows 7 64bit Index Match function Office 2013
Novice
Index Match function
 
Join Date: Dec 2014
Posts: 3
jackzha is on a distinguished road
Exclamation Index Match function

Hi Everyone,

Part of my job needs me to do Index/Match function constantly, and I ran into the following tricky situation, which hopefully can be solved by all the good people on this forum.

specifically, I need to exactly match two text strings from two Excel sheets. For some items, we have different tail codes to identify their different status.



For example, "abc?" means "abc to be sorted", and "abc-" means "finished abc".

The problem is, the excel won't recognize the difference between "abc?" and "abc-". According to Excel, the two are exactly the same, whoever is the first to be found in a array, got chosen by the Match function.

So when I need to match "abc?", the Match function returns values for "abc-", because it got found in the array first.

Anybody can help?

Thanks a ton in advance,

Jack
Reply With Quote
  #2  
Old 12-03-2014, 10:49 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Index Match function Windows 7 64bit Index Match function Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,767
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Hi and welcome

I think that is because the question mark is used as wildcard in excel.

Instead of looking for "abc?" try
Code:
=match("abc"&"~?",your_range,0)
( the character before the question mark is a "tilde" or "swung dash")
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 12-03-2014, 10:56 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Index Match function Windows 7 64bit Index Match function Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,767
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

This seems to work
Code:
=MATCH("abc"&CHAR(126)&CHAR(63),A1:A5,0)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #4  
Old 12-03-2014, 12:07 PM
jackzha jackzha is offline Index Match function Windows 7 64bit Index Match function Office 2013
Novice
Index Match function
 
Join Date: Dec 2014
Posts: 3
jackzha is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
Hi and welcome

I think that is because the question mark is used as wildcard in excel.

Instead of looking for "abc?" try
Code:
=match("abc"&"~?",your_range,0)
( the character before the question mark is a "tilde" or "swung dash")
Thanks for replying! This works fine for one material, but the problem is, we have a ton of different materials, probably hundreds, with this kind of coding convention, and they are all in the same array and it would be very time consuming if not impossible to enter the formula you mentioned for each and everyone of them. Is there a work-around formula that can be applied to the whole array without being specific abo
ut what I need to match?

Thanks!
Reply With Quote
  #5  
Old 12-03-2014, 12:20 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Index Match function Windows 7 64bit Index Match function Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,767
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Please post a sample sheet with some examples - Thx
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #6  
Old 12-03-2014, 12:43 PM
jackzha jackzha is offline Index Match function Windows 7 64bit Index Match function Office 2013
Novice
Index Match function
 
Join Date: Dec 2014
Posts: 3
jackzha is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
Please post a sample sheet with some examples - Thx
Please see attached sheet. The green high lighted rows are examples. This is just a partial sheet.

Thanks!
Attached Files
File Type: xlsx Index_Match_function Problem_test_jackzha.xlsx (78.9 KB, 18 views)
Reply With Quote
Reply

Tags
index/match, text string

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Index, match in Pivottable and Pivotchart Newbies Excel 0 11-15-2014 12:58 AM
Complex Formula using INDEX and Match needed OTPM Excel 5 05-23-2013 01:22 AM
Help with multiple match and index formula ryanwood Excel 1 09-12-2012 07:53 AM
Match Index with sumproduct/vlookup angie.chang Excel 1 06-18-2012 08:47 AM
Moving a Index/Match function FraserKitchell Excel 2 01-19-2010 09:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:23 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft