Data Treatment | Column | GB and TB

thelion

New Member
Joined
May 6, 2020
Messages
3
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hello everyone,

First of all, I would like to mention that I'm not an expert with Excel. ?

So, I have a column with two different units (GB and TB):
Space PV
104.10 GB
1.7 TB

I will need this values to do some calculations, but I can't do nothing because I need to replace:
  1. "." for ","
  2. "GB" for " " -> remove GB text
  3. "TB" for " " -> remove TB text AND multiply the value for 1024 (conversion TB to GB)
This action should be done from a Button.

Thank you so much.
 

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
The data result should be:

Space PV (GB)
104,10
1740.80
 
Upvote 0
Maybe
=LEFT(SUBSTITUTE(A2,".",","),FIND(" ",A2)-1)*IF(RIGHT(A2,2)="TB",1025,1)
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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