How to convert MB, KB, GB to bytes in excel

neil28300

New Member
Joined
Feb 7, 2015
Messages
5
Hi Team,

I am working with large spreadsheets and I would like to be able to standardize all the measurements in one of my excel column to Bytes - I have a data in below format -

Size
26.4 kB
25.27 MB

I have 100,00 rows with these values and want to get all of them converted to Bytes. Does anyone know, how to achieve this ?

Regards-
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Maybe
+Fluff 1.xlsm
AB
1
226.4 kB27,033.60
325.27 MB26,497,515.52
410 GB10,737,418,240.00
Main
Cell Formulas
RangeFormula
B2B2=SUM(LEFT(A2,FIND(" ",A2))*COUNTIFS(A2,{"*K*","*M*","*G*"})*({1024,1048576,1073741824}))
B3:B4B3=SUM(LEFT(A3,FIND(" ",A3))*COUNTIFS(A3,{"*k*","*M*","*G*"})*({1024,1048576,1073741824}))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
You're welcome & thanks for the feedback.
I am sorry, but I forgot to mention that many rows are populated with "bytes" unit already, so, is there is way that these values remain as it is and it only changes "kB", "MB, "GB" as below -

Thanks in advance !

SizeDesired Values
10 bytes10
3.24 kB3317.76
2.5 MB2621440
1.1 GB1181116006
 
Upvote 0
I am sorry, but I forgot to mention that many rows are populated with "bytes" unit already, so, is there is way that these values remain as it is and it only changes "kB", "MB, "GB" as below -

Thanks in advance !

SizeDesired Values
10 bytes10
3.24 kB3317.76
2.5 MB2621440
1.1 GB1181116006
you just need make a little change on Fluff's solution:
工作簿1
ABC
1
210 bytes10
33.24 kB3317.76
42.5 MB2621440
51.1 GB1181116006
6
7
Sheet1
Cell Formulas
RangeFormula
B2:B5B2=SUM(LEFT(A2,FIND(" ",A2))*COUNTIFS(A2,{"*y*","*K*","*M*","*G*"})*1024^{0,1,2,3})
 
Upvote 0
Solution

Forum statistics

Threads
1,214,978
Messages
6,122,547
Members
449,089
Latest member
davidcom

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