[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-326247-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-326247-en":131},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","excel-charting-automatic-harmonisation-of-scales-with-vba","Excel Charting - Automatic Harmonisation of Scales with VBA","","Excel’s automatic chart scaling can mislead comparisons when multiple charts use independent axis ranges. The article demonstrates this with survey data from chain-store locations, where different stores end up with different Y-scale start and end points. It then shows how to manually align scales and explains the drawbacks when new data arrives. A VBA approach is provided to compute a unified maximum from worksheet cells and force each chart’s Y axis to use the same harmonised bounds.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/excel-charting-automatic-harmonisation-of-scales-with-vba/326247/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/excel-charting-automatic-harmonisation-of-scales-with-vba/326247.png","ImageObject",300,407,{"name":42,"@type":43},"Logic","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-25","2026-09-21",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",16,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Why do Excel’s auto-scaled charts become unreliable for comparison?","Question",{"text":63,"@type":64},"Because each chart chooses its own Y-axis start and end based on its local data, so identical-looking plots can represent very different underlying values.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What is the manual method to harmonise the three charts’ Y scales?",{"text":68,"@type":64},"Double-click the Y axis, remove tick settings for Minimum and Maximum, and enter consistent values (e.g., 0 to 320) for each chart.",{"name":70,"@type":61,"acceptedAnswer":71},"How does the VBA code keep chart scales harmonised after new data is added?",{"text":72,"@type":64},"It calculates a shared upper bound in worksheet cells (using MAX and CEILING) and then forces each chart’s value axis MaximumScale to that computed value via a macro.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},326247,1791018749,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":97,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145,"preview_page_count":33,"preview_urls":146},1099513958762,"https://ap-avatar.wpscdn.com/avatar/1000023916a998db790?x-image-process=image/resize,m_fixed,w_180,h_180&k=1784791008015729253","Excel’s charting tools are pretty comprehensive, but there are some annoying features missing. This article will look at one of them – the automatic harmonisation of scales – and build some code to work around the issue. I will assume a good working knowledge of how charts are created and customised in Excel.  \nThroughout the article, we’ll be using the following data table, relating to survey data in a chain store:  \nAberdeen Edinburgh Glasgow  \nFairly unhappy customers 50  \n50  \n300  \nVery unhappy customers 55  \n120  \n140  \nWhen you autochart these numbers as a separate chart for each store, here is what you get:  \n\n| Aberdeen |  |\n| --- | --- |\n| 56\u003Cbr>55\u003Cbr>54\u003Cbr>53\u003Cbr>52\u003Cbr>51\u003Cbr>50\u003Cbr>49\u003Cbr>48\u003Cbr>47 | |\n\n\n| 140\u003Cbr>120\u003Cbr>100\u003Cbr>80\u003Cbr>60\u003Cbr>40\u003Cbr>20\u003Cbr>0 | Edinburgh\u003Cbr>\u003Cbr>Fairly unhappy customers Very unhappy customers |\n| --- | --- |\n\n\n| 350\u003Cbr>300\u003Cbr>250\u003Cbr>200\u003Cbr>150\u003Cbr>100\u003Cbr>50\u003Cbr>0 | Glasgow\u003Cbr>\u003Cbr>Fairly unhappy customers Very unhappy customers |\n| --- | --- |\n\nIf every picture tells a story, this is an odd one. Notice how Aberdeen’s and Edinburgh’s figures appear the same, whilst the latter has more than twice as many Very Unhappy Customers (VUCs) . Glasgow looks to be performing much better than either of the others, too, but it has the most VUCs of any of them, and some six times as many Fairly Unhappy Customers, too!  \nExcel has applied automatic scales. It has looked at the data you wanted to chart, and has made assumptions about where you want the Y scale to start and end. For instance, it has to chart for Aberdeen values of 50 and 55. It sets up a scale ranging from 47 to 56. When looking to chart values of 300 and 140 for Glasgow, though, it uses a scale of 0 to 350. If you don’t look carefully at the scales, you might draw an unwise conclusion when comparing these charts.  \nRight now, many of you will be wondering why I didn’t just show a single graph and plot all 3 sets of figures on the same one, like this:  \n\n| Overview |  |  |\n| --- | --- | --- |\n| 350\u003Cbr>300\u003Cbr>250\u003Cbr>200\u003Cbr>150\u003Cbr>100\u003Cbr>50\u003Cbr>0 | \u003Cbr>Aberdeen Edinburgh Glasgow |  Fairly unhappy customers\u003Cbr> Very unhappy customers |\n\nActually, there are a number of possible reasons. One might be that I want to copy and paste individual charts into letters to the store managers, but I might want each only to have access to the figures for his/her own store.  \nOne way I can solve the problem of different scales on the 3 graphs is to manually set the scales on each chart. Double-clicking on the Y axis line brings up the following dialog box:  \nIf I hit the‘Scale’ tab, I have access to these controls:  \nI can remove the ticks from ‘Minimum’ and‘Maximum’ and show their values as 0 and 320 respectively. If I do this for each of the 3 charts, here’s what I get:  \n\n| 300\u003Cbr>250\u003Cbr>200\u003Cbr>150\u003Cbr>100\u003Cbr>50\u003Cbr>0 | Aberdeen\u003Cbr>\u003Cbr>Fairly unhappy customers Very unhappy customers |\n| --- | --- |\n\n\n| 300\u003Cbr>250\u003Cbr>200\u003Cbr>150\u003Cbr>100\u003Cbr>50\u003Cbr>0 | Edinburgh\u003Cbr>\u003Cbr>Fairly unhappy customers Very unhappy customers |\n| --- | --- |\n\n\n| 300\u003Cbr>250\u003Cbr>200\u003Cbr>150\u003Cbr>100\u003Cbr>50\u003Cbr>0 | Glasgow\u003Cbr>\u003Cbr>Fairly unhappy customers Very unhappy customers |\n| --- | --- |\n\nThat’s more like it. You can make a reliable assessment now at a glance. But this comes at a price. By removing the automatic scaling, I have lost the ability to have the charts automatically cope with varying data. For instance, assume that some more data is added so that the figures are increased:  \nAberdeen Edinburgh Glasgow  \nFairly unhappy customers 160  \n70  \n500  \nVery unhappy customers 355  \n180  \n200  \nLook what happens to the charts:  \n\n| 300\u003Cbr>250\u003Cbr>200\u003Cbr>150\u003Cbr>100\u003Cbr>50\u003Cbr>0 | Aberdeen\u003Cbr>\u003Cbr>Fairly unhappy customers Very unhappy customers |\n| --- | --- |\n\n\n| 300\u003Cbr>250\u003Cbr>200\u003Cbr>150\u003Cbr>100\u003Cbr>50\u003Cbr>0 | Edinburgh\u003Cbr>\u003Cbr>Fairly unhappy customers Very unhappy customers |\n| --- | --- |\n\n\n| 300\u003Cbr>250\u003Cbr>200\u003Cbr>150\u003Cbr>100\u003Cbr>50\u003Cbr>0 | Glasgow\u003Cbr>\u003Cbr>Fairly unhappy customers Very unhappy customers |\n| --- ","cbCaitBFpJYdXrhp","https://ap.wps.com/l/cbCaitBFpJYdXrhp","pdf",161631,"English","# Problem: inconsistent automatic Y-axis scales\n## Example using survey data across stores\n# Manual fix and its drawback\n## Manually setting Minimum and Maximum\n# VBA solution to harmonise scales\n## Compute max using MAX and CEILING\n## Macro Sub UpdateScale\n## Triggering via Worksheet_Change event","[{\"question\":\"Why do Excel’s auto-scaled charts become unreliable for comparison?\",\"answer\":\"Because each chart chooses its own Y-axis start and end based on its local data, so identical-looking plots can represent very different underlying values.\"},{\"question\":\"What is the manual method to harmonise the three charts’ Y scales?\",\"answer\":\"Double-click the Y axis, remove tick settings for Minimum and Maximum, and enter consistent values (e.g., 0 to 320) for each chart.\"},{\"question\":\"How does the VBA code keep chart scales harmonised after new data is added?\",\"answer\":\"It calculates a shared upper bound in worksheet cells (using MAX and CEILING) and then forces each chart’s value axis MaximumScale to that computed value via a macro.\"}]","Excel Charting - Automatic Harmonisation of Scales with VBA | PDF",1789973752,13,[147,151,155,159],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/63f313ed9ae7ca2a814b9f52d788e476.webp",983,1390,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/6a0503888e29c4aa4f8a2bdae07148d5.webp",982,1389,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/f254a864cbe352bf14e5935afd102ec8.webp",981,1387,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/11b6f3f8b47aa463fe2f2d50caaf11cb.webp",980,1386]