Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

if function you want

Forum home » Delegate support and help forum » Microsoft Excel Training and help » If function when you want to use text not a number

If function when you want to use text not a number

ResolvedVersion 365

Dimple has attended:
Excel Intermediate course

If function when you want to use text not a number

hi there,
i am using a spreadsheet whereby I want to use Column D to to flag anyone who is listed as something (text) in Column A.
I need an IF function in column D, so that I am saying that:

IF (for example) the person's name is Bob, then I want column D to say Yes, otherwise it can say No.

how do I do this?

RE: If function when you want to use text not a number

Hi Dimple

Thank you for using the forum to ask a question.

You require a function that will check if the cell in Column A is Text which is =ISTEXT(A1)

This will test if it is TEXT and return a TRUE or FALSE

The formula in Column D would be

=IF(ISTEXT(A1),"Yes","No")

I hope that helps

Kind regards

Richard Bailey
Microsoft Certified Trainer

Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

RE: If function when you want to use text not a number

no, that is not what I wanted. sorry if I was unclear.

ok imagine this (btw, easier if I could upload an example):

column A and column b contain first and second name. then column C asks whether they are clinical/non clinical. column D then asks what sub-set clinical they are. some people will be blank as they are non clinical, this is fine. some will say 'gp', 'nurse' etc. I want to create a further column of 'public health' (i.e. colun E), which essentially would say 'yes' or 'no' if someone has answered GP or Practice manager in column D. i.e. we have identified that they are clinical, we identify that they are a subset and now we want to further categorise them.

so I want to put an IF forumula in column E, to say; if in column D they have said GP, then column E for whether they count as public health should say ;yes', otherwise, 'no'

RE: If function when you want to use text not a number

Hi Dimple

Thank you for providing more detail.

The IF formula would be
=IF(D2="GP","Yes","No")

If you needed to include GP & Practice Managers to say Yes
=IF(D2="GP","Yes",IF(D2="Practice Manager","Yes","No"))

I've attached an example


Kind regards

Richard Bailey
Microsoft Certified Trainer

Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Attached files...

Dimple 10-11-17.xlsx

RE: If function when you want to use text not a number

perfect!!! thanks

 

Training courses

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Moving or Copying Sheets Between Workbooks in Excel 2010

Here's how to move or copy sheets between workbooks in Excel 2010:

Open the sheet you want to move or copy then on the Ribbon click the Home tab. Click Format. Under Organize Sheets, select the option Move or Copy Sheet and then choose where you want the sheet to be moved/copied to.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.