ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Convert Gig to Meg (https://www.excelbanter.com/excel-worksheet-functions/61836-convert-gig-meg.html)

John Schneider

Convert Gig to Meg
 
I'm playing around with the CONVERT function, trying to get it to convert a
number from gigabytes to megabytes. It would appear, from the help file,
that the function should work like this:
=CONVERT(A1,"G","M")
The value in A1, for this test, is 10. I get the error "#N/A" in the cell
with the formula. Clicking on the error, then the information incon, the
error at the top of the list is "Value Not Available Error", which would seem
to indicate that the "G" and/or "M" from/to units are not available.

I'm on Excel 2003 SP1 and have installed the Analysis ToolPak and even the
Analysis TookPak - VBA add-ins. Should these conversion values work?

Thanks

Biff

Convert Gig to Meg
 
Hi!

Not sure how to do it using Convert.......I think Convert is referring to a
base 10 system whe

giga = 10^9 = 1,000,000,000
mega = 10^6 = 1,000,000

Using a base 2 system:

A1 = 10

=A1*(2^30)/2^20 = 10,240 mb

gb = 2^30 = 1,073,741,824 bytes
mb = 2^20 = 1,048,576 bytes
kb = 2^10 = 1,024 bytes

Biff

"John Schneider" wrote in message
...
I'm playing around with the CONVERT function, trying to get it to convert
a
number from gigabytes to megabytes. It would appear, from the help file,
that the function should work like this:
=CONVERT(A1,"G","M")
The value in A1, for this test, is 10. I get the error "#N/A" in the cell
with the formula. Clicking on the error, then the information incon, the
error at the top of the list is "Value Not Available Error", which would
seem
to indicate that the "G" and/or "M" from/to units are not available.

I'm on Excel 2003 SP1 and have installed the Analysis ToolPak and even the
Analysis TookPak - VBA add-ins. Should these conversion values work?

Thanks




Bernard Liengme

Convert Gig to Meg
 
Why make if complicated:
A1 = 10 (Gb)
A2 =A1*2^10 (=10240 Mb)
Merry Christmas (the turkey smells great!)
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email


"Biff" wrote in message
...
Hi!

Not sure how to do it using Convert.......I think Convert is referring to
a base 10 system whe

giga = 10^9 = 1,000,000,000
mega = 10^6 = 1,000,000

Using a base 2 system:

A1 = 10

=A1*(2^30)/2^20 = 10,240 mb

gb = 2^30 = 1,073,741,824 bytes
mb = 2^20 = 1,048,576 bytes
kb = 2^10 = 1,024 bytes

Biff

"John Schneider" wrote in message
...
I'm playing around with the CONVERT function, trying to get it to convert
a
number from gigabytes to megabytes. It would appear, from the help file,
that the function should work like this:
=CONVERT(A1,"G","M")
The value in A1, for this test, is 10. I get the error "#N/A" in the
cell
with the formula. Clicking on the error, then the information incon, the
error at the top of the list is "Value Not Available Error", which would
seem
to indicate that the "G" and/or "M" from/to units are not available.

I'm on Excel 2003 SP1 and have installed the Analysis ToolPak and even
the
Analysis TookPak - VBA add-ins. Should these conversion values work?

Thanks






Biff

Convert Gig to Meg
 
Why make if complicated:

It's a bad habit of mine! <g

Biff

"Bernard Liengme" wrote in message
...
Why make if complicated:
A1 = 10 (Gb)
A2 =A1*2^10 (=10240 Mb)
Merry Christmas (the turkey smells great!)
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email


"Biff" wrote in message
...
Hi!

Not sure how to do it using Convert.......I think Convert is referring to
a base 10 system whe

giga = 10^9 = 1,000,000,000
mega = 10^6 = 1,000,000

Using a base 2 system:

A1 = 10

=A1*(2^30)/2^20 = 10,240 mb

gb = 2^30 = 1,073,741,824 bytes
mb = 2^20 = 1,048,576 bytes
kb = 2^10 = 1,024 bytes

Biff

"John Schneider" wrote in message
...
I'm playing around with the CONVERT function, trying to get it to
convert a
number from gigabytes to megabytes. It would appear, from the help
file,
that the function should work like this:
=CONVERT(A1,"G","M")
The value in A1, for this test, is 10. I get the error "#N/A" in the
cell
with the formula. Clicking on the error, then the information incon,
the
error at the top of the list is "Value Not Available Error", which would
seem
to indicate that the "G" and/or "M" from/to units are not available.

I'm on Excel 2003 SP1 and have installed the Analysis ToolPak and even
the
Analysis TookPak - VBA add-ins. Should these conversion values work?

Thanks








John Schneider

Convert Gig to Meg
 
Thanks Biff and Bernard. I don't have a problem doing the conversions the
long way, I was just wondering why the function does not work as advertised
in help.

John

"Biff" wrote:

Why make if complicated:


It's a bad habit of mine! <g

Biff

"Bernard Liengme" wrote in message
...
Why make if complicated:
A1 = 10 (Gb)
A2 =A1*2^10 (=10240 Mb)
Merry Christmas (the turkey smells great!)
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email


"Biff" wrote in message
...
Hi!

Not sure how to do it using Convert.......I think Convert is referring to
a base 10 system whe

giga = 10^9 = 1,000,000,000
mega = 10^6 = 1,000,000

Using a base 2 system:

A1 = 10

=A1*(2^30)/2^20 = 10,240 mb

gb = 2^30 = 1,073,741,824 bytes
mb = 2^20 = 1,048,576 bytes
kb = 2^10 = 1,024 bytes

Biff

"John Schneider" wrote in message
...
I'm playing around with the CONVERT function, trying to get it to
convert a
number from gigabytes to megabytes. It would appear, from the help
file,
that the function should work like this:
=CONVERT(A1,"G","M")
The value in A1, for this test, is 10. I get the error "#N/A" in the
cell
with the formula. Clicking on the error, then the information incon,
the
error at the top of the list is "Value Not Available Error", which would
seem
to indicate that the "G" and/or "M" from/to units are not available.

I'm on Excel 2003 SP1 and have installed the Analysis ToolPak and even
the
Analysis TookPak - VBA add-ins. Should these conversion values work?

Thanks








Peo Sjoblom

Convert Gig to Meg
 
I don't think it's supposed to work that way. Note that the help file say
prefixes (as opposed to units) so it can be used to convert for instance a
meter to a mega meter, if you put

1000000 in A1 and use

=CONVERT(A1,"m","Mm")

it will return 1





--
Regards,

Peo Sjoblom

(No private emails please)


"John Schneider" wrote in message
...
Thanks Biff and Bernard. I don't have a problem doing the conversions the
long way, I was just wondering why the function does not work as
advertised
in help.

John

"Biff" wrote:

Why make if complicated:


It's a bad habit of mine! <g

Biff

"Bernard Liengme" wrote in message
...
Why make if complicated:
A1 = 10 (Gb)
A2 =A1*2^10 (=10240 Mb)
Merry Christmas (the turkey smells great!)
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email


"Biff" wrote in message
...
Hi!

Not sure how to do it using Convert.......I think Convert is referring
to
a base 10 system whe

giga = 10^9 = 1,000,000,000
mega = 10^6 = 1,000,000

Using a base 2 system:

A1 = 10

=A1*(2^30)/2^20 = 10,240 mb

gb = 2^30 = 1,073,741,824 bytes
mb = 2^20 = 1,048,576 bytes
kb = 2^10 = 1,024 bytes

Biff

"John Schneider" wrote in message
...
I'm playing around with the CONVERT function, trying to get it to
convert a
number from gigabytes to megabytes. It would appear, from the help
file,
that the function should work like this:
=CONVERT(A1,"G","M")
The value in A1, for this test, is 10. I get the error "#N/A" in the
cell
with the formula. Clicking on the error, then the information incon,
the
error at the top of the list is "Value Not Available Error", which
would
seem
to indicate that the "G" and/or "M" from/to units are not available.

I'm on Excel 2003 SP1 and have installed the Analysis ToolPak and
even
the
Analysis TookPak - VBA add-ins. Should these conversion values work?

Thanks









John Schneider

Convert Gig to Meg
 
Thank yolu Peo! Now I understand.

"Peo Sjoblom" wrote:

I don't think it's supposed to work that way. Note that the help file say
prefixes (as opposed to units) so it can be used to convert for instance a
meter to a mega meter, if you put

1000000 in A1 and use

=CONVERT(A1,"m","Mm")

it will return 1





--
Regards,

Peo Sjoblom

(No private emails please)


"John Schneider" wrote in message
...
Thanks Biff and Bernard. I don't have a problem doing the conversions the
long way, I was just wondering why the function does not work as
advertised
in help.

John

"Biff" wrote:

Why make if complicated:

It's a bad habit of mine! <g

Biff

"Bernard Liengme" wrote in message
...
Why make if complicated:
A1 = 10 (Gb)
A2 =A1*2^10 (=10240 Mb)
Merry Christmas (the turkey smells great!)
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email


"Biff" wrote in message
...
Hi!

Not sure how to do it using Convert.......I think Convert is referring
to
a base 10 system whe

giga = 10^9 = 1,000,000,000
mega = 10^6 = 1,000,000

Using a base 2 system:

A1 = 10

=A1*(2^30)/2^20 = 10,240 mb

gb = 2^30 = 1,073,741,824 bytes
mb = 2^20 = 1,048,576 bytes
kb = 2^10 = 1,024 bytes

Biff

"John Schneider" wrote in message
...
I'm playing around with the CONVERT function, trying to get it to
convert a
number from gigabytes to megabytes. It would appear, from the help
file,
that the function should work like this:
=CONVERT(A1,"G","M")
The value in A1, for this test, is 10. I get the error "#N/A" in the
cell
with the formula. Clicking on the error, then the information incon,
the
error at the top of the list is "Value Not Available Error", which
would
seem
to indicate that the "G" and/or "M" from/to units are not available.

I'm on Excel 2003 SP1 and have installed the Analysis ToolPak and
even
the
Analysis TookPak - VBA add-ins. Should these conversion values work?

Thanks











All times are GMT +1. The time now is 10:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com