# Formula problem

#### RJC

##### Active Member
Hi All,
Could anyone help with a formula to do these two things, please.

In A1

Have this:-
John Smith 5 or
Just want the number extracted.

In A2
Have this:-
=8-5-11 (in other words, numbers preceeded by the equals sign).
The cell is formatted as general.
How do I just remove the equals from the front of the entry.

Thankyou,
RC

### Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

##### MrExcel MVP
Hi All,
Could anyone help with a formula to do these two things, please.

In A1

Have this:-
John Smith 5 or
Just want the number extracted.

In A2
Have this:-
=8-5-11 (in other words, numbers preceeded by the equals sign).
The cell is formatted as general.
How do I just remove the equals from the front of the entry.

Thankyou,
RC

1.

=REPLACE(A1,1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))-1,"")+0

2. Try Edit|Replace: Replace = with '

#### RJC

##### Active Member
Thanks for that.

Regarding question 2.
My cell does not always contain the equals sign, so I was looking for a formula that says "If cell A2 starts with an equals sign, then remove it".

Can this be done!
Thanks again

Replies
5
Views
114
Replies
6
Views
432
Replies
3
Views
200
Replies
8
Views
552
Replies
5
Views
67

1,141,218
Messages
5,705,080
Members
421,377
Latest member
FerdiFuchs

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