adding letter at the end in some cells

pretty_peter

New Member
Joined
Sep 15, 2014
Messages
2
Hi!


I have two problems with my work.
My columns look like this:
Player/lvl(A) score(B) diff(C)
jake/B 110 hard
jack/G 550 easy
greg/C 234 medium
dan/D 904 easy
paul/ 201 hard
stef/I 420 medium


As you see in some player columns there is no letter after /.
I would like to rewrite it and add letter A where there is nothing after
slash. The second thing is to add some values to score. If diff is medium add 50 and for hard 100. Nothing extra for easy. I tried IF and LOOKUP with this but can't manage to do this. And the new values should be in new columns (D and E for example).


thanks for help
Peter
 

Some videos you may like

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Welcome to MrExcel.

Try these formulas in D2 and E2 copied down:

=IF(RIGHT(A2,1)="/",A2&"A",A2)

=B2+LOOKUP(C2,{"easy","hard","medium"},{0,100,50})
 

mretyk

New Member
Joined
May 6, 2014
Messages
4
Try this:
D2 = A2&IF(RIGHT(A2,1)="/","A","")

For the score you can use double IF
E2=B2+IF(C2="medium",50,IF(C2="hard",100,0))
 

Watch MrExcel Video

Forum statistics

Threads
1,109,353
Messages
5,528,199
Members
409,807
Latest member
nicky736

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top