Perform Caluclation that has text

dbarnes

New Member
Joined
Oct 19, 2006
Messages
13
How do I subtract cells that contain numbers and text.

A1 has 10GB
B1 has 2GB

I want to subtract A1-B1 and have the result cell (C1) show 8GB.

Thank you!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Yes. Only 2 characters at the end. The formula in this thread worked. You guys are the greatest!!
 
Upvote 0
How do I subtract cells that contain numbers and text.

A1 has 10GB
B1 has 2GB

I want to subtract A1-B1 and have the result cell (C1) show 8GB.

Thank you!

You could keep your dataset to numbers only and custom format them as 0"GB".
 
Upvote 0
I have a similar situation but my text is before the numbers.

In column 'A' I have i.e.;

A1 "ind00002"
A2 "ind00004"
A3 "ind00006"
A4 "ind00009"
A5 "ind00010"
etc...

The text is always the same, "ind", but the numbers change. I would like to subtract 1 from each number like the following:

A1 "ind00002" - 1 = "ind00001"
A2 "ind00004" - 1 = "ind00003"
A3 "ind00006" - 1 = "ind00005" etc...

The results can be in in any column, B, C, D - it doesn't matter. I just want to generate the results.

I'm using MS Excel 2007 in Windows 7. I appreciate the help and can clarify if what I'm requesting isn't clear.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,712
Members
452,939
Latest member
WCrawford

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