[Solved] In excel, add the text name/location in graph

chili

New member
i need the prepare the chart including the mentioned the location name of the required format. Its should be prepare the excel sheet. how to include the location name on the chart.

Highly appreciate if you all can provide the answer for that.
 

Attachments

Hello chili,
Thanks for sharing your problem with us. I understand you want to add the Tenure Location names to a chart. Based on the type of chart you require, there are multiple ways to incorporate the Tenure Location names into the chart. Here, I will add a 2-D Column Chart for Total Count values and a Scatter Chart with Smooth Lines and Markers for the Highest Count.

First, I have added a new column named “All Locations”. I used the following formula in Cell E16 and dragged down the Fill Handle icon.​

=TEXTJOIN(",",TRUE,B3:E3)

_p_xeCkYD4rvQno4Rfch9sw9_2RgtOglCQUGoumpOni9tyo6FvyVIy3zDW6c86L5hRfFFJpabU2HbVolOAQoLbTFNCwul47Szvtb-HGDbUCT34GOhOhiujHmSqe2WTU1nub8xqWGuvpAK0PNl7ARXZA

Here, the TEXTJOIN function joins all the locations of January to April with a Comma (,) in one cell so that we can apply it as a Data Label.

After that, select the range A15:B25 >> go to the Insert tab >> click the Column or Bar Chart drop-down >> select the Clustered Column chart option.​

fgszM-Zos2ksH-38mW1kwq-aCqbPjb_McsGs4pggLARJf-m2VPaaWuLGa93se4X-AQW7xyNud8mKOcnazk7RFifI-h4pBIfaN2lXyyI_cDquqLKpv2YFq4JBG0L2VUWCyXgUEXyRF0h9oeGp6z9X9zY

The following chart will appear.

43cE3ykRKgLcp-TvRvkZT6EbRZWuSlg6iCLfRruzkFVuRmCIrak2cjI76XHQe5zt8etV5qWk3Wugv6Mwub01tnckn030VAomG4izhRYDBG8R835xqICcIw1JPduXAAQD1aSZs33CJABNon_rQ9Wmc2M

Select any column in the Highest series >> right-click on your mouse >> select Change Series Chart Type from the right-click menu.​

DcLPIvpd7bTJFybyTPTGTI91JnL_LrLrpYyyl_x6dY4-xjAc6R8umEbuG93SvKrh4dCeHRSWNw4QK_RMWj8oxj4FSD8Jhxzf3OPTTprr7SHBnsARrpKT4klEquMOkb-Y5XFyCwNVOvQvS3lRoN4kf8A

In the Change Chart Type pop-up window, click the drop-down of the Chart Type option for the Highest series >> scroll down and select the Scatter with Smooth Lines and Markers chart option >> click the OK button.​

GiBY86hfRkmXiFFqr706dtgJdzjC-_NkXaGw1WcTx3jJWfINUZmqFUg-IcAn9xawrCelfNGLEJndVcpXMfkrRnpQy4YekKWuVJUxsrER_bIq9hLM62oxbBllVRMNJjkkR0-JB41mdR3sLZbrHRkXL5M

Now, select the chart >> click the Plus (+) button >> hover the mouse pointer on the right side of the Axes option >> disable the Secondary Horizontal option >> disable the Chart Title option >> enable the Data Labels option >> disable the Gridlines option.​

uVSteVefcJXZFA6vXt8pkblmMq_z6wfpNLDaR0RmsTam-zZIK7NXKouNOhbbOwv5WEPDBRBzxw-D_kTd9rcEZIhiEMLyA7q-kPQbsnc0f7OyS9nmRS7V9W0h6kwqDZ2MUPWDK0HzPN5BAtNYWzSoAVM

Next, double-click on any of the Highest series Data Labels, and in the Format Data Labels pane, enable the Value From Cells option.​

ZlX0_DamBGX2ltK6DNCsMa7nC4WQfUhnH5_z1QcNwTIqv8RgNs3NyerAkh5vRbX0TVRddw3Px8A48ZSe-Zl_MkK9dWhf7E7DVqwUPM-JsVlOX6GtvKkNpIHwTX5-2oMw5f6RJGiVCVBfxBsLwB8l0MQ
Set the Select Data Label Range to range D16:D25 and click the OK button.

etDlq4W1CsTQOKt3rRefW3w2sYfYoLsosH7VAZwMtehZS5U6aj5oLIhz2ElUqvQKQBoC8IFxYY1aFF7po7EQ7Gy2lzNe-nnsW64J0I4VgyqPf8f-ts8qQHYyI0CpfQyB5AcsYSCQMJ7yW5d18A-4a8M

Disable the Y Values option and select the Above option for Label Position.

Rs1InizLppA4tunrOgqFYLeyASK18QPuKFUox56krUNDYRev2WtGnY9l_m3xin82Ai-uI-2gLw-Zm4eGGZry9Gmq0U1YZCShPp7AIiPcAAGt2xf3NxuebbUJaHUZGARn2wR0KNMdK-UGNxre00dZ2vY

Similarly, double-click on any of the Data Labels of the Total Count series, and in the Format Data Labels pane, enable the Value From Cells option.​

zCaGbQJelcR-EAdTiR_98kwMkjy33kzm93yzJ4mpEJDHCwDyLi691jDH4NP8Z23wDrqcrA-RDP98AjOluQUIplkm7L3kklBH0p3KZgqUkX9CQ5tL0zcTGWf2ZYaOInvRZhhEZPr8L89jspW3tykEcH8

Set the Select Data Label Range to range E16:E25 and click the OK button.

tw1bfSj2b-nSDJ2PulR_MxZcwxVz5hX4UFjZz9iRwpOgT8Cc2AQIMgjAMltxsT7vUzpE8VL2Cq0smrA3A79eTLp2bzj6NHqlck1ihwBBUKfC_qnMakmHFKfIDizu-P3XBfTDd04ir1ydlSsKM2HX5YQ

Disable the Y Values option and select the Center option for Label Position.

tFXsyhvAwOUQxbnwlQsmISZAE-8u1UreUGF_l7-5HgDGPCEM1ffA5G2pkWbh3biheKBwolw_fCYsi4cIcTFLWK7qkmLa2Fw_Z9CvdCdydyutF9WBabsaZTqrCqWvZAPlXD_HuhprxgWTG0T5-94Tqmw

Here is the final view of the chart. As you can see, all the required locations are added to the subsequent Columns or Markers as Data Labels.​

m93c4XkqQ4pldmeuHpo_oK0vabzv8-wjr0zynGtneNKYv0jjzDPRDkpwNnawke_at_JyswOPLUcjsrYDCs-vhDlrEhH3imwZxQiK9lsB38htwtf0vJAW4hp3OA_n1-_h1XVimcgLflmTAjLbZVoJ8U0

I hope this solution will help you get an understanding of how we can add any type of Data Labels to a chart.

Let us know your feedback. The workbook used for the solution of this problem is attached below.
Regards,
Seemanto Saha
ExcelDemy
 

Attachments

Online statistics

Members online
0
Guests online
157
Total visitors
157

Forum statistics

Threads
460
Messages
2,044
Members
2,319
Latest member
bin88pub
Back
Top