Solved

Microsoft Excel formulas

Posted on 2014-04-13
7
110 Views
Last Modified: 2014-08-27
Please help! I have one question : I have a several names in one column and I need that the letter A,B or C appear on the next column when I write this name. There's more than two variables.  (F.E.  in column A I have 3 names : James, Thomas, Nickolas and I need whenever I write name James on column C should appear a letter A. What formula should I use? If you understood this question it would be perfect.
0
Comment
Question by:Neznayka
[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
  • 4
  • 2
7 Comments
 
LVL 19

Accepted Solution

by:
regmigrant earned 500 total points
ID: 39997588
simple way:-

put this in  C1 and copy down:

=if(a1="James","A",if(a1="Thomas","B",if(A1="Nickolas","C")))

However if you have more names then you will have to add more If Statements and the maximum is 8. A more complete way to do it would be to have a list of names with a lookup - see attached file
nameref.xlsx
0
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39997592
Hi Neznayka,

Try this=IF(A1="James","A",IF(A1="Thomas","B",IF(A1="Nikolash","C","")))

if need further clarification....let me know.


Thanks
0
 
LVL 19

Expert Comment

by:regmigrant
ID: 39997595
Jinx :)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39997598
ooopppsss Mr.ragmigrant,


i seen your comment after posting....  :)

Thanks
0
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39997600
Jinx :)

Even this too  ;)
0
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39997606
How bat this shorter one  =IF(A1={"James","Thomas","Nikolash"},{"A","B","C"},"")
0
 
LVL 81

Expert Comment

by:byundt
ID: 39997676
If you make a little table, you will find it easier to maintain your formulas. You can then use a VLOOKUP formula like:
=VLOOKUP(A1,LookupTable,2,FALSE)

James             A
Thomas         B
Nickolas         C

I used a dynamic named range LookupTable (instead of a fixed address like $Y$2:$Z$4) to refer to the little table so you can add people to the table without needing to change your formulas. Using the Formulas...Name Manager menu item, hit the New button then add a name like LookupTable with a Refers to formula like:
=$Y$2;INDEX($Z$2:$Z$100,COUNTA($Y$2:$Y$100))
LookupTableQ28411542.xlsx
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel Web Add-in Where is Visual Basic used 9 66
Help on Solver add-in 30 45
Finding Certain Criteria 4 35
Macro to convert table into pivot tables 25 66
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

736 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