Pulling the cost from a string of numbers and text into a new cell?

markbrown

New Member
Joined
Nov 4, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I'm trying to extract the first cost in £ at the beginning of a cell that also contains a number of costs and some text into a new cell?

Example single cell contents below:
£1052.25: Mileage Cost £1000.25, Driver Dead Leg Pay, Driver Pay, Drop Charge, Toll/Carpark £52.00

I want to extract £1052.25 into a new cell any ideas please?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
There might be a way with trim but I will usually use a formula like this assuming cell with string is in A2
=MID(A2,1,FIND(":",A2,1)-1)
If the you would rather not have pound sign
=MID(A2,2,FIND(":",A2,1)-1) but keep in mind if there are values without sign it will cut off first number.
 
Upvote 0
There might be a way with trim but I will usually use a formula like this assuming cell with string is in A2
=MID(A2,1,FIND(":",A2,1)-1)
If the you would rather not have pound sign
=MID(A2,2,FIND(":",A2,1)-1) but keep in mind if there are values without sign it will cut off first number.
Perfect Thank you
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,809
Members
449,048
Latest member
greyangel23

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