Hi Dickinson:Dickison said:Thanks. That worked great for GB. Is there a way to get it to put in GB, MB, KB as the size of the number changes?
Book1 | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | |||||||
2 | 18 | 18000 | 18000000 | ||||
3 | 18KB | 18000MB | 18000000GB | ||||
4 | CustomNumberFormat[<1000]#"KB";[>1000000]#"GB";#"MB" | ||||||
5 | |||||||
Sheet3 |
Hi Dickison:Dickison said:Sorry about not posting all the details. What I'm doing is keeping track of disk space on all our servers. I have a utility, Dameware, that I export the disk sizes and free space for all the servers. I then import the .csv file created from Dameware, which shows disk info in bytes. I then use the info imported in a weekly report that lists the servers, disk size, free space, and percent free.
This is the format of the import file:
ServerName, Drive, Format, Size Free, Used, PercentFree, PercentUsed
Server1, C: NTFS, "36,314,603,050", "26,413,903,780", "9,901,709,870", 72.73, 27.27
Server1, D: NTFS, "181,819,397,078", "173,242,532,804", "8,567,761,834", 95.29, 4.71
Let me know if you need additional info.
Book1 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | ||||||||||
2 | ServerName, | Drive, | Format, | Size | Free, | Used, | PercentFree, | PercentUsed | ||
3 | Server1 | C: | NTFS | 36314603050 | 26413903780 | 990170987 | 72.73 | 27.27 | ||
4 | Server1 | D: | NTFS | 36.315GB | 26.414GB | 990.171MB | 95.29 | 4.71 | ||
5 | CustomNumberFormat[>1000000000]0.000,,,"GB";[>1000000]0.000,,"MB";0.000,"KB" | |||||||||
6 | ||||||||||
Sheet3 (2) |
Hi Dickison:Dickison said:I copied and pasted this
[>1000000000]0.000,,,"GB";[>1000000]0.000,,"MB";0.000,"KB"
It gives an error saying that this format cannot be used. I am using Excel 2003.
Looking in the help file it shows '>' instead of '>'. I replaced those and the   with a space but it's not quite working yet. I'm trying to get TB in also. This is what I have:
[>1000000000000]0.000,,," TB";[>1000000000]0.000,,," GB";[>1000000]0.000,,," MB"
What's wrong with it?
Book1 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | ||||||||||
2 | ServerName, | Drive, | Format, | Size | Free, | Used, | PercentFree, | PercentUsed | ||
3 | Server1 | C: | NTFS | 1000000000000 | 26413903780 | 990170987 | 72.73 | 27.27 | ||
4 | Server1 | D: | NTFS | 1.000TB | 26.414GB | 990.171MB | 95.29 | 4.71 | ||
5 | CustomNumberFormat[>999999999999]0.000,,,,"TB";[>999999999]0.000,,,"GB";0.000,,"MB" | |||||||||
6 | ||||||||||
Sheet3 (3) |
[>999999999999]0.000,,,,"TB";[>999999999]0.000,,,"GB";0.000,,"MB"