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

Defining a Single Conditional Formatting Condition

Conditional formatting is a powerful tool you can use to dynamically adjust the formatting of your worksheet. This tip ...

Discover More

Changing Label Printing Order

If you want to change the order in which labels are printed when doing a mail merge, Word doesn't provide many options. ...

Discover More

An Automatic Two Spaces after a Period

Should you put two spaces after a sentence or just one? Ask different people and you will get different answers. To Word ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (menu)

Working with Roman Numerals

Understanding and using a function to replace an Arabic number with Roman numerals. And, as a bonus, how to change them back.

Discover More

Using the WEEKNUM Function

Need to know which week of the year a particular date falls within? Excel provides the WEEKNUM function so you can easily ...

Discover More

Selecting Random Names

Got a tone of names from which you need to select a few random names? There are several ways you can extract what you ...

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 1 + 1?

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.