IF Function, maybe

J

Joe

In one column there is an indication of either F (for
female) or M (for male). I want to create a formula in
the next column that will say: Ms. if F, or Mr. if M.

Please help
 
G

Guest

Hi, I tried your formula but I get the value of Mr. for
all the column, i.e. it does not recognize: Ms.
 
N

Norman Harker

Hi Joe!

To cover the blank cells pending entry use:

=IF(ISBLANK(A1),"",IF(A1="F","Ms.","Mr."))
 
J

Joe

Hi Norman,

The column does not have any blank values. The column
cells contain either F or M. In any case, I used the
function you gave me and it still does not recognize the
F values, i.e. the end result is "Mr." where it is F or M.
 
N

Norman Harker

Hi Joe!

I suspect that your F and M data has spaces in it and " F" is not
treated as "F" and returns Mr.

Try:

=IF(ISBLANK(A1),"",IF(TRIM(A1)="F","Ms.","Mr."))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Adding data only if adjacent to cell labeled "male"/"female" 1
pull out certain data 1
COUNTIF Question 6
General Excel question 24
count across 3 columns 8
formula for arriving net difference 0
If, then 1
Count? 4

Top