# Excel: Chart – Histogram (Relative Frequency)

Please see me my other Excel articles.

## Histogram: Comparing Distributions with Relative Frequency

In my Histogram article I introduce a different version of the bar chart where instead of simply displaying ranges of values in each bar, you can display groups or categories of values (age groups and their diagnosis rates).

In this article I will demonstrate how you can create the same histogram, but instead of simply displaying a measure (x-axis) for values, you can display each value’s relative frequency when compared with the total of the data set. As you can see, the range of diagnosis values is indicated by the a-xis with the categories or Age Groups indicated along the y-axis.
While seeing the each age group’s range of values is helpful, I would like to understand each range of values when compared to the data set’s total value.

First, I’ll add a new column to my data set where for each value, I’ll compare with it with the total of all values. Note: In my forumla I used the ‘\$’ character to fix the range used for so as I copy the formula to other cells, the same range is used. With each diagnosis value having its relative frequency, I’ll update the cells’ format to use a percentage format.
The Relative Frequency column now displays the percentage of each diagnosis when compared to the total.
{"ft_lang_label":"__label__en","ft_lang_prob":0.82529616,"math_prob":0.85560626,"size":1315,"snap":"2021-31-2021-39","text_gpt3_token_len":269,"char_repetition_ratio":0.1266209,"word_repetition_ratio":0.0,"special_character_ratio":0.20152092,"punctuation_ratio":0.07782101,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97641206,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,5,null,5,null,5,null,5,null,5,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-24T06:19:27Z\",\"WARC-Record-ID\":\"<urn:uuid:a11b025f-fdfe-4f77-b8aa-9bd16f692d4c>\",\"Content-Length\":\"99362\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:fa1e4f0d-af2c-42e8-84c0-03e74d481edb>\",\"WARC-Concurrent-To\":\"<urn:uuid:2b96ec52-8a3f-4a4c-a856-41968ac3b121>\",\"WARC-IP-Address\":\"192.0.78.24\",\"WARC-Target-URI\":\"https://techmbabi.info/2019/03/16/excel-charthistogramrelativefrequency/\",\"WARC-Payload-Digest\":\"sha1:SK75HFSXNRHGXTGKM36ARMLRF27NFSFC\",\"WARC-Block-Digest\":\"sha1:NEG34BII6OVEJIXXRLRS7UJUKC2XWI4R\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057504.60_warc_CC-MAIN-20210924050055-20210924080055-00674.warc.gz\"}"}