Numbers in Base 12

Written by Allen Wyatt (last updated October 16, 2021)
This tip applies to Excel 97, 2000, 2002, and 2003


For some professions or hobbies, it may be required to display information in "base 12." For instance, you may need to display the number of dozens of an item, followed by the number of singles of an item. If you had 15 items, for instance, you may want your display to be 1:03.

There are a couple of different ways to approach this problem. The first is to do the math and put together a string that represents the finished numbers. For instance, suppose the original number is in cell B7. In cell C9 you could place the following:

=INT(B7/12) & ":" & RIGHT("00" & MOD(B7,12),2)

In this instance, if B7 contained the number 345, C9 would contain the string 28:09. If you would rather work with straight numbers, you can use the following formula in cell C9:

=INT(B7/12)*100+MOD(B7,12)

In this case, cell C9 would contain 2809, which could be easily displayed in the final format by setting the custom number format for the cell as 0":"00.

Regardless of which approach you choose, you should know that you won't be able to use the results in any mathematical functions. The information displayed is done so solely for that purpose—display.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2540) applies to Microsoft Excel 97, 2000, 2002, and 2003.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Turning Off Automatic Numbered Lists

Type what Word thinks is a numbered list, and it will helpfully format the text to match what it thinks your numbered ...

Discover More

Searching for Borders

Want to find all the paragraphs in your document that have borders applied to them? The regular Find and Replace tool ...

Discover More

Checking if a Workbook is Already Open

Knowing if a workbook is already open can be a prerequisite to your macro working correctly. Here's how to check it out.

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (menu)

Functions Within Functions

Functions are the heart of Excel's power. The program allows you to compound that power by handily putting one function ...

Discover More

Converting Strings to Numbers

When working with data in a macro, there are two broad categories you can manipulate: numbers and text. Sometimes you ...

Discover More

Iterating Circular References

Does your data require that you perform calculations using circular references? If so, then you'll want to be aware of ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 - 0?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.