Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • LOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • Offset in Excel
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • Find closest match in Excel
  • How to use Excel MATCH Function

Data Analysis Examples

  • How To Sort One Column or Multiple Columns in Excel
  • Excel Frequency Function Example
  • Number and Text Filters Examples in Excel
  • How to Create Area Chart in Excel
  • How to create Gauge Chart in Excel

Data Validation Examples

  • Excel Data validation specific characters only
  • Excel Data validation must not contain
  • Excel Data validation must contain specific text
  • Excel Data validation date in specific year
  • Data validation must not exist in list

How to create simple in-cell histogram in Excel

by

To create a simple in-cell histogram, you can use a formula based on the REPT function. This can be handy when you have straightforward data, and want to avoid the complexity of a separate chart.

Formula

=REPT(barchar,value/100)

Explanation

In the example shown, the formula is:

=REPT(CHAR(110),C11/100)

Worked Example:   Highlight row and column intersection exact match in Excel

How this formula works

The REPT function simply repeats values. For example, this formula outputs 10 asterisks:

=REPT("*",10) // outputs **********

You can use REPT to repeat any character(s) you like. In this example, we use the CHAR function to output a character with a code of 110. This character, when formatted with the Wingdings font, will output a solid square.

CHAR(110) // square in Wingdings

To calculate the “number of times” for REPT, we scale values in column C by dividing each value by 100.

C11/100 // scale values down

This has the effect of outputting one full square per 100 dollars of sales. Increase or decrease the divisor to suit the data and available space.

Worked Example:   Highlight dates in the next N days in Excel

Alternatively, Conditional formatting can be used

You can also use the “data bars” feature in conditional formatting to display an in cell bar.

Worked Example:   Conditional Formatting Color Scales Examples in Excel

Post navigation

Previous Post:

Create hyperlink with VLOOKUP in Excel

Next Post:

Basic error trapping example in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • NUMBERVALUE function: Description, Usage, Syntax, Examples and Explanation
  • How to convert text string to array in Excel
  • EXACT function: Description, Usage, Syntax, Examples and Explanation
  • LEN, LENB functions: Description, Usage, Syntax, Examples and Explanation
  • Convert Text to Numbers in Excel
  • Display Days until expiration date in Excel
  • How to show last updated date stamp in Excel
  • Convert date to text in Excel
  • Get project midpoint in Excel
  • Pad week numbers with zeros in Excel
  • ISPMT function: Description, Usage, Syntax, Examples and Explanation
  • TBILLPRICE function: Description, Usage, Syntax, Examples and Explanation
  • COUPPCD function: Description, Usage, Syntax, Examples and Explanation
  • Calculate payment for a loan in Excel
  • ODDLYIELD function: Description, Usage, Syntax, Examples and Explanation
Acronyms, Abbreviations, Initialism & What They Stand For
© 2022 xlsoffice . All Right Reserved. | Teal Smiles