Solved

How do I create an 'if' formula to recognize one letter in a string of letters?

Posted on 2012-03-20
2
287 Views
Last Modified: 2012-03-20
What 'if' function can I make to give me a "Y" or "N" if that account card starts with "B"?

When an account code starts with the letter "B", no matter what numbers/letters follow the code, this project will be charged to the department. All other costs with all other codes will be charged elsewhere.

The account codes are all structured the same:  

A.BC.123456.7890
G.HI.098765.4321

Thanks.
0
Comment
Question by:jag4
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
micropc1 earned 500 total points
ID: 37743259
=IF(LEFT(cell, 1)="B", "Y", "N")
0
 

Author Closing Comment

by:jag4
ID: 37743279
Quick, simple, perfect. Thanks!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question