Adding numbers together when text in same cell

VIKTOR2789

New member
Joined
Jul 19, 2011
Messages
1
Reaction score
0
Points
0
Hi !
I'm having trouble doing something I thought would be fairly easy. I'm creating a spreadsheet to track my business mileage. I have columns for each days containing cells that contain something like "Home to Birmingham office 72 miles" and say another cell containing "Bristol office to London office 120 miles" I'm trying to add together the 72 and the 120 to give me 192 but am struggling to do this. Can anyone tell me if it's poosible and how to do this please. Many thanks in advance.

Ian
 

Bob Phillips

Super Moderator
Staff member
Joined
Mar 21, 2011
Messages
1,940
Reaction score
0
Points
36
Excel Version(s)
O365
Change the spreadsheet. Have the journey in one cell, and the mileage in an adjacent cell, with a format of 0.0 "miles", then you can add the mileage no problems.
 

Armando L Franco

New member
Joined
Aug 17, 2011
Messages
5
Reaction score
0
Points
0
Location
Ensenada, Baja California, Mexico
You can have the following columns:
a1 From:
b1 To:
c1 Miles:
d1 Description:

Then add in the next row:
a2 Home
b2 Birmingham Office
c2 Miles
d2 =Concatenate(a2, " to ", b2, c2, " miles")

You will save some typing, can add column C to get mileage, and can hide columns A to C before sending or printing. The end result will be just like what you have now.
 
Top