# adding letter at the end in some cells

#### pretty_peter

##### New Member
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

### Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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})

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))

thanks!

Replies
1
Views
601
Replies
1
Views
598

1,203,078
Messages
6,053,405
Members
444,662
Latest member
AaronPMH

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back