Make calculation using only selected characters from a cell

Rameses

Board Regular
Joined
Mar 3, 2010
Messages
137
Hi all

This is the issue I have ( I am calculating school grades)

Originally I wanted to use only the 1st character in a cell to make a calculation so for example rather than using "A+" or "A-" I used "A". The foruma for this =LEFT(A1,1)

However I now realise that I need to make calculations using an "A*". This is the only one where i have to use 2 characters.

a) Is there anyway that I can make an exception to the condition =LEFT(A1,1) to ensure that I dont miss out 'A*'

or alternatively

b) Is there a formula which will help me ignore just the '+' or '-'

So in brief:

The 1st character is always a letter that I must use
The 2nd character is always either ''+" or "-" or "*" or ""

I want to use 1st character normally and 1st & 2nd character if the 2nd character has "*" or ""

My thanks especially to wigi for earlier posts!

any comments are much appreciated

many thanks

Rameses :)
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
=left(a1,1)&if(mid(a1,2,1)="*","*","")
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,370
Members
449,080
Latest member
Armadillos

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top