Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel-Match 1st text character in a string to a known character?

Ex: Column B is "H01474A". Column C is "R". If first character of Column B
matchs Columm C then "Yes". If no match display blank.
Thanks.....
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Excel-Match 1st text character in a string to a known character?

=IF(LEFT(B2,1)=C2,"Yes","")

HTH
Kostis Vezerides

bushlite wrote:
Ex: Column B is "H01474A". Column C is "R". If first character of Column B
matchs Columm C then "Yes". If no match display blank.
Thanks.....


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Excel-Match 1st text character in a string to a known character?

Try this:

If NOT case-sensitive...
=IF((LEFT(B1,1)=C1),"yes","")

Otherwise.....for case-sensitive
=IF(EXACT(LEFT(B1,1),C1),"yes","")

Note: The false value really isn't a true Blank Cell....it returns an empty
string.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"bushlite" wrote:

Ex: Column B is "H01474A". Column C is "R". If first character of Column B
matchs Columm C then "Yes". If no match display blank.
Thanks.....

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
Text records in Excel Mervyn Thomas Excel Discussion (Misc queries) 5 April 3rd 06 09:49 PM
How do I search a text string in many excel worksheets (files)? TC628 Excel Worksheet Functions 0 February 8th 06 01:09 AM
Trying to match a text string to a data table, any suggestions? OCONUS Excel Worksheet Functions 3 December 2nd 05 07:39 PM
Remove last character of text string Grant Excel Worksheet Functions 2 September 29th 05 05:17 PM
Excel - Find & Replace text in a string bklim Excel Worksheet Functions 1 June 14th 05 06:42 AM


All times are GMT +1. The time now is 10:04 PM.

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"