Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I always have to re-write the formula to convert kilobytes to megabytes to
gigabytes. It would be nice if excel had this availible out of the box, maybe in the convert function. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/office/comm...et.f unctions |
#2
![]() |
|||
|
|||
![]()
It shouldn't be that hard, multiply by increasing powers of 1024 (2^10) for
going up in memory, and divide by increasing powers of 1024 going backwards. For example: 5402 Kilobytes in Gigabytes is equal to: 5402/1024^2 = 0.005151 GB 1 Gigabyte in Kilobytes is equal to: 1*1024^2 = 1,048,576 KB -- Regards, Dave "Matt Thompson" wrote: I always have to re-write the formula to convert kilobytes to megabytes to gigabytes. It would be nice if excel had this availible out of the box, maybe in the convert function. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/office/comm...et.f unctions |
#3
![]() |
|||
|
|||
![]()
Here is a UDF you could use as well:
Function ConvertMem(n As Double, from_mem As String, to_mem As String) from_mem_num = getMemNum(from_mem) to_mem_num = getMemNum(to_mem) ConvertMem = n * 1024 ^ (from_mem_num - to_mem_num) End Function Function getMemNum(mem_string As String) getMemNum = Switch(mem_string = "b", 1, mem_string = "k", 2, mem_string = "m", 3, mem_string = "g", 4, mem_string = "t", 5) End Function -- Regards, Dave "David Billigmeier" wrote: It shouldn't be that hard, multiply by increasing powers of 1024 (2^10) for going up in memory, and divide by increasing powers of 1024 going backwards. For example: 5402 Kilobytes in Gigabytes is equal to: 5402/1024^2 = 0.005151 GB 1 Gigabyte in Kilobytes is equal to: 1*1024^2 = 1,048,576 KB -- Regards, Dave "Matt Thompson" wrote: I always have to re-write the formula to convert kilobytes to megabytes to gigabytes. It would be nice if excel had this availible out of the box, maybe in the convert function. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/office/comm...et.f unctions |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA function for "Mean" using Array as argument | Excel Worksheet Functions | |||
IF function to blank without getting #value in sum function | Excel Worksheet Functions | |||
CONVERT Function Disappered in Excel | Excel Discussion (Misc queries) | |||
Need a ISWorkday Function -- Any Ideas | Excel Worksheet Functions | |||
How do I use Excel's convert function for apothecary weight? | Excel Worksheet Functions |