Home > Forum Home > Developing Business Administration Solutions > phone number stored in 3 columns > Concatenate or use MID, VALUE, MATCH with AND functions Share

Concatenate or use MID, VALUE, MATCH with AND functions

Excel Help for Concatenate Or Use Mid, Value, Match With And Functions in Developing Business Administration Solutions


Forum TopicLogin

Concatenate Or Use Mid, Value, Match With And Functions

Rate this:
(3/5 from 1 vote)
OopsThe simplest method would be to create a separate column with a concatenation of the phone number columns and then use that column for the VLOOKUP function.
e.g. =TEXT(A1)&"-"&TEXT(B1)&"-"&TEXT(C1)

Another more complex method is to use MID functions to extract each part of the phone number, convert the text to values, match them to the columns, and test if the matching index is the same for all three parts. 

As an example, suppose the 3 parts of the phone numbers are in columns A,B and C from row 1 to 100 and the phone number is look for is in cell E1.  the following formula will return TRUE is the phone number is found.

=AND(MATCH(VALUE(MID(E1,1,3)),A1:A100,1)=MATCH(VALUE(MID(E1,5,3)),B1:B100,1), MATCH(VALUE(MID(E1,5,3)),B1:B100,1)=MATCH(VALUE(MID(E1,9,4)),C1:C100,1))
 Excel Business Forums Administrator
 Posted by on
 
View Full Post

Find relevant Excel templates and add-ins for Concatenate or use MID, VALUE, MATCH with AND functions in the