converting mb to tb

Hello, I have 3 cells each one of the cells receives certain amount of numbers in MB, GB, and TB. I want to create another cell to sum all the entries in these cells as a total and give the answer in TB. I appreciate your help.
Ajjan MAsked:
Who is Participating?
 
Rob HensonFinance AnalystCommented:
Try this:

=SUM(LEFT(C3,FIND(" ",C3))/1048576,LEFT(D3,FIND(" ",D3))/1024,LEFT(E3,FIND(" ",E3)*1))

This assumes there will be a space between the value and the letters. If not we could allow for that and tell the find to look for the B instead.

=SUM(LEFT(C3,SEARCH("B",C3,1)-2)/1048576,LEFT(D3,SEARCH("B",D3,1)-2)/1024,LEFT(E3,SEARCH("B",E3,1)-2)*1))

SEARCH is not case sensitive so will look for B and b. Technically Mb is megabits rather than megabytes but I don't believe that is an issue in this scenario.

With sample, expand the result to 3 decimal places and you get 3.029

You can add custom formatting as per Roy's suggestion so that it shows as 3.029 TB but  can still be used as a number.
0
 
Roy CoxGroup Finance ManagerCommented:
You can't put a formula in TB without overwriting the value that is there. Also what row applies?
0
 
zvitamConsultantCommented:
Suppose you have MB amount in cell A1, GB amount in cell A2, and TB amount in cell A3.

The sum will be in A4 and the formula will be: =A1/1000000+A2/1000+A3

that will be corrent since 1TB = 1000000 MB, and 1TB = 1000GB.

Hote that helps'
Zvitam.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Ajjan MAuthor Commented:
I'm afraid I didn't get your question well. what do you mean by overwriting the value? I added a screen shot of sample to what I asked it might look easier than writing the question.
Screen-Shot-2018-03-13-at-11.39.09.png
0
 
Roy CoxGroup Finance ManagerCommented:
I thought MB etc was Column References.

You cannot sum those values because they are not numbers - they contain text.

Attach the workbook and I'll amen it so that the sum will work.
0
 
Ajjan MAuthor Commented:
I uploaded the workbook.
Book1.xlsx
0
 
EirmanChief Operations ManagerCommented:
There are some solutions to adding mixed kb  mb & gb values here
0
 
Roy CoxGroup Finance ManagerCommented:
I've added Custom NumberFormats so you enter numbers and the letters appear. This will not affect the sum formula because it is formatting not actual letters.

This article might help you understand
Book1--4-.xlsx
0
 
zvitamConsultantCommented:
You can just sum the values you have to divide it as I state in my comment earlier.
0
 
Roy CoxGroup Finance ManagerCommented:
zvitam

You cannot sum those entries because they contain text!
0
 
Rob HensonFinance AnalystCommented:
And strictly speaking, it is not a direct 1,000 factoring.

1MB = 1024KB,
1GB = 1024MB,
1TB = 1024GB

However, the publicly recognised factoring is 1000
1
 
zvitamConsultantCommented:
Roy cox: You can since that text is part of the cell custom format, and not the cell value.

Following Rob Henson good comment I correct what I wrote earlier:

The sum will be in A4 and the formula will be: =A1/1048576+A2/1024+A3

that will be corrent since 1TB = 1048576 MB, and 1TB =1024GB.
0
 
Roy CoxGroup Finance ManagerCommented:
It isn't in the original workbook, I added Custom NumberFormats
0
 
Ajjan MAuthor Commented:
@Rob Hensen, it is giving me "there is a problem with this formula"
0
 
Rob HensonFinance AnalystCommented:
Probably the brackets, I will have a look.
0
 
Rob HensonFinance AnalystCommented:
As I thought, there was an extra bracket at the end, try this:

=SUM(LEFT(C3,SEARCH("B",C3,1)-2)/1048576,LEFT(D3,SEARCH("B",D3,1)-2)/1024,LEFT(E3,SEARCH("B",E3,1)-2)*1)
0
 
Saqib Husain, SyedEngineerCommented:
This ARRAY formula will check for the units and then add the numbers accordingly

=SUM(VALUE(LEFT(C3:G3&"0 TB",FIND("B",C3:G3&"0 TB")-2))/CHOOSE(INT((CODE(MID(C3:G3&"0 TB",FIND("B",C3:G3&"0 TB")-1,1))-63)/7),1024,1048576,1))
0
 
Rob HensonFinance AnalystCommented:
Covers author's requirement
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.