Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Excel Number Format Shortcuts: Currency, Percent, Time and Borders

Format Cells has every number format you could want, which is exactly why finding the right one takes a while. The formats you use every day have shortcuts, and they're easier to remember once you notice which key each symbol sits on. TL;DR: Ctrl+Shift+$ currency, Ctrl+Shift+% percent, Ctrl+Shift+@ time, Ctrl+B / I / U, Ctrl+Shift+& outside border. The shortcuts Ctrl+Shift+$ applies currency…

Navigating Excel's Format Cells can be a lengthy process, but there are shortcuts that make it easier. These shortcuts are easier to remember once you know which key each symbol sits on. The Ctrl+Shift+$ shortcut applies the currency format. For instance, the number 1234567 becomes ₩1,234,567 in the test sheet, depending on the regional settings. The $ symbol is on the 4 key.

Similarly, the Ctrl+Shift+% shortcut applies percentage format. So, 0.12 changes to 12%. The % symbol is on the 5 key. The Ctrl+Shift+@ shortcut applies a time format. For example, 0.5625 is displayed as 13:30:00. The @ symbol is on the 2 key.

To make text bold, you can use Ctrl+B. Clicking the header row and pressing Ctrl+B will apply bold formatting. To remove bold, press Ctrl+B again. To make text italic, use Ctrl+I. For underlining, Ctrl+U is used. Press Ctrl+U again to remove underline formatting. The & shortcut adds an outside border to selected cells. For a border around the entire table, Ctrl+Shift+& is used. The & symbol is on the 7 key.

Each shortcut was tested and verified in Excel for the web. However, it's important to note that number formats only change how a value is displayed. The actual value remains the same. For instance, a cell with 0.12 retains the value of 0.12 even when shown as 12%. This is also why 0.5625 can display as 13:30. Excel stores times as fractions of a day, with 0.5625 representing 13.5 hours.

Common errors include typing 12 and then formatting it as a percentage, which results in 1200%. To avoid this, type 0.12 or directly type 12%. Also, remember that the currency format only adds a symbol and separators, it does not convert money. The shortcuts follow the symbols above the 4, 5, 2, and 7 keys on a US-style keyboard layout.

If you're using a different layout, you'll need to find the key that produces the desired symbol. In code, when creating workbooks with openpyxl, these shortcuts translate to format strings. Percent is cell.number_format = 0%, and time format looks like hh:mm:ss.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Connect Microsoft Excel to InterSystems IRIS via ODBC (Windows)

How to create an ODBC connection on your native Windows laptop to IRIS running on a Windows VM on the same computer, test the connection, and pull data from IRIS into Excel.

  • Install latest InterSystems ODBC driver on Windows
  • Note Windows VM's IP address and Web Server Port
  • Create ODBC data source in System DSN tab

File Naming Conventions That Sort by Date: 4 Simple Rules

Every shared folder seems to have a "report_final_REALLY_final.xlsx" somewhere. Nobody is sure which file is current, and sorting by name doesn't help, because the names were never written to be…

  • Begin every file name with date in year-month-day format
  • Use two digits for months and days to avoid sorting errors
  • Apply these rules to shared folders accessed by multiple people

Log Files Are Untrusted Input - A Red Team Found Out the Hard Way

A team red-teaming their own log-reading AI assistant found something that should worry anyone who's bolted an LLM onto an internal tool: planted instructions inside log lines could get the model to…

  • Red team exploited log-reading AI assistants
  • Inserted commands into log lines to reveal passwords
  • AI lacked safeguards to distinguish malicious input

More from Tuesday 13 October →