extract letters and sum column

Av8tordude

Well-known Member
Joined
Oct 13, 2007
Messages
1,074
Office Version
  1. 2019
Platform
  1. Windows
Each cell (B1 - B6) is formatted as...

=TEXT(8092.58,"#,##0.00 ")& "USD" (i.e. 8092.58 USD)

I would like to remove the text (USD) "sum column B. Is there a formula that can remove the text and sum the column?

Thank you kindly for helping.


Base Salary: 8,092.58 USD
Flight Pay: 1,857.14 USD
Per Diem: 137.36 USD
Housing: 3,571.43 USD
Utilities: 91.48 USD
Transport: 412.09 USD
Total: $0.00
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
if you change the cell formatting you can display the value without having to add the text USD

Custom Format 0.00, "USD"
 
Upvote 0
Row\Col
A​
1​
Base Salary: 8,092.58 USD
2​
Flight Pay: 1,857.14 USD
3​
Per Diem: 137.36 USD
4​
Housing: 3,571.43 USD
5​
Utilities: 91.48 USD
6​
Transport: 412.09 USD
7​
Total: 14162.08

In A7 enter:

="Total: "&SUMPRODUCT(SUBSTITUTE(UPPER(REPLACE(A1:A6,1,FIND(":",A1:A6),"")),"USD","")+0)<strike></strike>
 
Upvote 0
Create a helper column in C using this copied down:

Code:
=LEFT(B1,FIND(" ",B1)-1)
 
Upvote 0
Aladin

Thank you kindly, but the formula does not suit what I was trying to convey. in Column A resides "Base Salary:, Flight Pay:, etc". In column B resides 8092.58 USD, 1857.14 USD.
 
Upvote 0
Aladin

Thank you kindly, but the formula does not suit what I was trying to convey. in Column A resides "Base Salary:, Flight Pay:, etc". In column B resides 8092.58 USD, 1857.14 USD.


change

=TEXT(8092.58,"#,##0.00 ")& "USD"
to

=TEXT(8092.58,"#,##0.00 ") and custom format
 
Upvote 0
Thank you kindly AliGW, but this works only for 1 cell. I'm adding multiple cells (b1:b6)
 
Upvote 0
You will need to copy and paste the values in cells B1 - B6 to C1 - C6 using the option paste as values and then select C1 -C6 and do the following:
1. Go to the data tab
2. on the Data tools click text to column
3. Click next (accept the default delimiter)
4. Check the option space under delimiters
5. Click Finish
6. You can now work as required
 
Upvote 0
Aladin

Thank you kindly, but the formula does not suit what I was trying to convey. in Column A resides "Base Salary:, Flight Pay:, etc". In column B resides 8092.58 USD, 1857.14 USD.

Modify it as:

="Total: "&SUMPRODUCT(SUBSTITUTE(UPPER(B1:B6),"USD","")+0)
 
Upvote 0

Forum statistics

Threads
1,214,659
Messages
6,120,786
Members
448,993
Latest member
Seri

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