Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to combine 2 or more chart types in a single chart in Excel
  • How To Load Analysis ToolPak in Excel
  • How to calculate correlation coefficient Correlation in Excel
  • Chart Axes in Excel
  • Excel Bar Chart

References

  • Two-column Lookup in Excel
  • Merge tables with VLOOKUP in Excel
  • Last row number in range
  • How to use Excel OFFSET function
  • How to create dynamic named range with OFFSET in Excel

Data Validations

  • Excel Data validation don’t exceed total
  • Prevent invalid data entering in specific cells
  • Excel Data validation number multiple 100
  • Excel Data validation allow weekday only
  • Excel Data validation date in next 30 days

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)

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.

Alternatively, Conditional formattingĀ can be used

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

Post navigation

Previous Post:

How to calculate project complete percentage in Excel

Next Post:

Popularly Used Excel Functions and their examples

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

Logical Functions

  • IF with boolean logic in Excel
  • SWITCH function example in Excel
  • How to use Excel XOR Function
  • Invoice status with nested if in Excel
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Find Last Day of the Month in Excel
  • Calculate time difference in hours as decimal value in Excel
  • Display the current date and time in Excel
  • Get days between dates ignoring years in Excel
  • How to calculate most recent day of week in Excel

Grouping

  • Group times into 3 hour buckets in Excel
  • Group arbitrary text values in Excel
  • Map text to numbers in Excel
  • Running count group by n size in Excel
  • Group numbers at uneven intervals in Excel

General

  • How to count total number of cells in a rectangular range in Excel
  • How to generate random date between two dates in Excel
  • How to calculate percent sold in Excel
  • How to calculate percent of students absent in Excel
  • Basic error trapping example in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning