Formula problem

RJC

Active Member
Joined
Jul 29, 2003
Messages
252
Hi All,
Could anyone help with a formula to do these two things, please.

In A1

Have this:-
John Smith 5 or
Bill Adams 13 etc.
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 did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi All,
Could anyone help with a formula to do these two things, please.

In A1

Have this:-
John Smith 5 or
Bill Adams 13 etc.
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 '
 
Upvote 0
Hi Aladin,
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
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,557
Members
449,088
Latest member
davidcom

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