Ravindra BagaleCourses & study guides मराठी Track your progress

8. Charts

Excel

8.2 Column and Bar Charts

1. Compare category amounts with lengths you can trust

A campus festival organiser wants to know which desk handled the most check-ins. Five labels are long enough to crowd the bottom of a chart. One label, Merchandise collection, leaves a narrow gap beside Volunteer desk. A horizontal bar chart can keep those names readable while still letting you compare totals along the same scale. The orientation helps reading. It does not change the underlying difference between categories.

For the second exercise, think about a fictional side project inspired by shopping through Amazon. Its organisers receive orders on their own website and on a marketplace. They want to compare both the volume of orders and the channel mix across four cities. The examples are invented to teach chart choices and describe no company's systems or real figures. A chart that compares counts and a chart that compares percentages should make those different purposes visible.

Use length for a fair comparison. Give comparable bars one unit and a shared zero. Choose side-by-side or stacked marks based on what your reader needs to compare.

Recognise the jobs of four related charts

  • Column chart. Vertical columns place categories along the bottom and their quantities on a vertical scale. It works well for short labels or a small number of ordered periods where each column represents a distinct interval.
  • Bar chart. Horizontal bars place categories on the side and lengths along a horizontal value scale. A ranked order and readable category labels can help readers scan a long list. For unordered categories, choose sorting based on the purpose.
  • Clustered variant. Different series sit beside each other within each category. For example, put Website and Marketplace adjacent within each city to compare the two values on one unit scale.
  • Stacked variant. Add positive component lengths within a category to show the total and its parts. The first segment starts at zero, while a later segment starts at the previous segment's endpoint. That affects how easy it is to compare one component across groups.
  • 100 percent stacked variant. The total displayed length for each qualifying category is the same. Each segment uses its fraction of that category's own total. A city with 50 orders can have the same mix bar length as one with 100. Keep counts on hand if volume matters too.

Use actual counts or a consistently defined rate in each chart. Keep track of which length a viewer is reading. A stacked column endpoint represents a total. Its top segment begins above the zero line, so its height is the length between two ends. A viewer who reads only its top coordinate may mistakenly use the total as that segment's value.

2. Lab. Rank the festival desks without breaking ties

Goal. Build a descending horizontal comparison of five source categories. Record the largest value, the gap to second and one tie. Open a sheet named Desk Counts and enter A1:B6 in the original order shown. Name the measure Recorded check-ins, so its scope is clear. One check-in is assigned to one desk in this exercise.

Fictional festival check-ins during one event
DeskRecorded check-ins
Book swap pickup36
Stage check-in84
Volunteer desk48
Workshop admissions72
Merchandise collection48
Ranked horizontal zero-based chart. Stage check-in 84, Workshop admissions 72, Merchandise collection 48 and Volunteer desk 48 tied, Book swap pickup 36.
Descending order draws attention to the ranking. Equal bars for the two 48 values show the tie.

Make the ranking match the exact records

  1. Prepare a sorted copy

    Copy both columns to a separate area or sheet. Sort the whole copied range by Recorded check-ins largest to smallest. Use Desk from A to Z as a secondary sort if you want a consistent display order within ties. That puts Merchandise collection before Volunteer desk at the same value.

  2. Pick a clustered bar chart

    Select the heading and the five copied rows, and insert a two-dimensional clustered bar chart. With one measure, you should see one bar per category. Verify the source includes both the labels and the associated numeric values.

  3. Read the chart from top to bottom

    Some standard layouts place the first category at the bottom. In a supporting build select the category axis and use its reverse-order control if needed. Then check where the value axis crosses. If the zero-based value scale appears at an unexpected edge, adjust the crossing setting where available or use a copied ordering that produces the intended result.

  4. Format for reading

    Check a numeric minimum of zero. Use a light reference scale and precise labels such as Outside End if there is room. Gap Width settings adjust spacing in supporting desktop layouts. Try a moderate value, then check all label and point sizes where the chart will be shown.

  5. Reconcile ranking and total

    Stage leads Workshop by 12. The 48 values tie. Book swap recorded 36. The original rows add to 288, which is an audit amount and must stay separate from the bars. Confirm that the sort retained the right desk for each value.

Compare ranking order with an order required by the data

Sorting by size is helpful when the actual question is ranking. If the categories are event hours, day of the week or process stages, their natural order may carry information. Sorting 9 a.m., 10 a.m. and 11 a.m. by attendance would remove the sequence. If readers need both the sequence and the peak, keep time order and label the peak. Design for the question, and leave the source untouched while trying alternative display orders.

Store the tie-breaking rule separately from the numeric ranking. The chart places Merchandise collection before Volunteer desk alphabetically. That does not make one larger. Use equal values and equal visible lengths. If presenting the top three under a rule that includes ties, a cutoff at 48 could show four desks. State whether top three means three records or all records with a value at least as high as the third-ranked amount. The two choices answer slightly different questions.

Calculate an apparent difference caused by scale

On a test copy, imagine a common visible starting point of 40. A bar for 84 extends 44 units past 40. Each bar for 48 extends only 8 units. The visible length ratio is 5.5, while the actual ratio is 84 divided by 48, or 1.75. The 36 value would also fall below the visible starting bound. Restore zero for this comparison. A reference line can add context, but shifting the baseline to the target can misrepresent the original values. A chart that explicitly plots differences from a target is a separate measure and can use a zero line to mean exactly on target.

3. Lab. Separate order volume from channel mix

Goal. Use the same counts to build three views and explain which question each can answer. Open a new sheet named Channel Mix. Put the first three columns of the table in A1:C5. The remaining values are checks; calculate the total in D and the two shares in E and F. Each order in this sample is assigned to exactly one of the two channels and one city. The figures measure orders, so they are directly comparable within the stated time window.

Fictional order counts and shares for one reporting week
CityWebsite ordersMarketplace ordersTotal ordersWebsite shareMarketplace share
Pune802010080%20%
Nagpur455510045%55%
Nashik40105080%20%
Solapur20608025%75%
Pune has 80 website and 20 marketplace orders, compared with Nashik 40 and 10. Absolute stacks have lengths 100 and 50 orders. Normalised stacks both show 80 percent website and 20 percent marketplace.
The two cities have the same mix and different volumes. The exact counts and their percentages are both true.

Use these formulas in D2:F2, then fill through row 5. The input fixture has numeric nonnegative counts for both channels. A real export needs its own check for missing source records before that assumption applies. Format the share columns as percentages. The formula test avoids dividing by zero if you add a practice category with no recorded orders.

D2 =SUM(B2:C2)
E2 =IF(D2>0,B2/D2,"")
F2 =IF(D2>0,C2/D2,"")
  1. Build the clustered view. Select A1:C5. Insert a clustered column chart. Confirm Website and Marketplace are the two series and the four cities are categories. Which city recorded the most Website orders? Pune, 80. Which recorded the most Marketplace orders? Solapur, 60. The common zero lets you compare each mark's length.
  2. Build the stacked count view. On another chart built from A1:C5, choose a two-dimensional stacked column or bar. Confirm Pune and Nagpur each end at 100, Nashik at 50 and Solapur at 80. The endpoint is a total, and each segment length represents its individual count. Do not include the already calculated D totals in the plot. They would add the components twice.
  3. Build the 100 percent stacked view. On a third copy choose the appropriate 100 percent variant. Verify the axis shows the normalized scale. Pune and Nashik both show 80 percent Website, while Nagpur shows 45 and Solapur 25. All four valid totals appear at the same full extent because the scale represents shares. Cross-check against columns E and F.
  4. Read a segment with no shared start. In the count stack, Nagpur's Marketplace segment ends at 100 but begins at 45, yielding 55. Solapur ends at 80 and begins at 20, yielding 60. The higher endpoint belongs to Nagpur even though Solapur's Marketplace count is higher. Use the clustered view or exact labels if comparing Marketplace across cities is central.
  5. Compare levels and mix. Pune has double Nashik's total, double its Website count and double its Marketplace count. Their shares are equal. A useful note can state both facts and keep the comparison clear. Verify the denominator before calling a whole column a percentage.

Change the selection and see the denominator move

The full set has 185 Website orders and 145 Marketplace orders, or 330 orders. The proportion of all those orders from Website is 185 divided by 330, about 56.1 percent. Compare that with the simple average of the four Website percentages. That average is 57.5 percent. The average gives each city equal weight, while the pooled percentage gives each order equal weight. Both are calculable. Only the latter answers what share of all orders came from Website.

Now ask an analyst to report on just Pune and Nashik. Their combined Website count is 120, out of 150 total orders, which is 80 percent. If that analyst adds Nagpur, the combined Website count becomes 165 of 250, or 66 percent. The chart's visible subset should match the summary denominator. A filtered chart with an overall share label can mix different populations. Keep the share caption anchored to the same selection as its values.

Separate zero totals and unknown measurements

Try adding a test city in the copied table with zero in both order fields. A count chart could show a zero quantity. The 100 percent mix is undefined because no orders provide a denominator. Mark it No orders in an accompanying table and keep it outside the validated share chart. If one channel has missing data because its file failed to arrive, the denominator is also incomplete. Do not replace the missing channel with zero to make a normalized bar appear. Confirm the source before comparing its share with cities that have complete data.

For this lab, a city with 100 Website orders and zero Marketplace orders is different from a city with zero in both. The first has a valid total of 100 and a complete 100 percent Website share. The second has no defined shares. Verify these examples by changing one cell at a time on a copy. If a source column is a percentage already, do not normalize a set of overlapping rates as if they were mutually exclusive counts. One customer might use both channels during a period, even though each order is assigned to exactly one channel in our exercise.

4. Arrange categories and series for the comparison you actually need

Choose what belongs together in each cluster

Start with one row per city and one numeric column per channel. When the two channels are series and the cities are categories, a reader can look at two nearby bars to compare Website versus Marketplace in each city. If the main task is comparing cities within a channel, another valid arrangement makes the two channels the categories and contains four city series in each cluster. That could put too many colors and labels into a small space. Try it on a copy and read the chart with the exact question in hand. The two layouts use the same measures but group them differently at a glance.

For instance, Nagpur has 45 Website and 55 Marketplace orders. With the first arrangement, its two bars are adjacent, and the ten-order difference is easy to see. For a comparison of Website across four cities, put the four Website values in their own sorted chart and use a shared unit. Each bar can have one label. You can place a second chart for Marketplace beside it with the same scale if across-channel length comparisons are part of the task. A chart with several small panels is valid when the names, scope and numerical domains are explicit.

Check the plotted series names after a switch. If you started with A1:C5, a city label should not enter the data numbers. On a supporting desktop build use Chart Design and Select Data to inspect what is included. If the report uses one row per observation rather than one row per city, create a summary first. For example, a row per order could be grouped by city and channel using a PivotTable or other validated summary. The sum or count needed should agree with your measure's definition. Confirm grand totals and see which repeated categories belong to distinct orders.

Set the plot to support actual label sizes

Test a horizontal layout when labels are awkward to scan bottom to top. Give a long label enough width and avoid turning it into an abbreviation nobody can match. If you do use shorter labels, provide the full label in the table or caption. You can also move exact values outside bars. Leave enough axis space to show the label for the largest bar without clipping it. The numeric bar length remains authoritative, so do not make any bar longer just to hold a label.

Gap width changes the spaces between columns or bars relative to their thickness in supporting chart types. A small gap can make adjacent groups look continuous. A large gap can make the data marks very thin. Examine the chart at its real output size. A wider format may work on an Excel tab but turn into tiny gaps on a mobile-sized article. The baseline excerpt gives 60 percent as a sample adjustment. Treat it as a test choice. The desired grouping and readable spacing matter more than a universal value.

When multiple bars cluster within one category, apply the same ordering of Website and Marketplace in every group. Use consistent legend text, and define the series through label or pattern as well as color where feasible. A color that represents Website in both views is easier to follow. Do not distinguish two series only by nearby shades of green. Identify each with words in the caption or a key, and check the output when printed or read on a narrow screen.

Check the effect of sorting when several fields travel together

A sorting error can pair a number with the wrong label. If you sort just the check-in column and leave the desk column in original order, Stage's value may appear beside the wrong desk. Select the copied table as one range and confirm headers. After sorting verify two pairs from the original. Do that even if the chart appears to be descending. A descending list with a bad label association is easier to scan and still wrong.

When the underlying category order has meaning, keep it. A diagram of budgets split by category may be better sorted by size. A diagram of ticket scans Monday through Friday needs a weekday order even if Friday is largest. A chart of ordered service statuses may need its process order. Sorting is a visual choice that should follow the question. You can build two separate summaries on one source and label exactly why each has its own order.

5. Plot signed differences around a visible zero

Use a different zero meaning when displaying change

For an additional practice copy use the Channel Mix totals as earlier values. Enter the next week's combined city totals as Pune 94, Nagpur 110, Nashik 50 and Solapur 72. Keep them as numbers. Calculate New minus Prior in a new column. The four city differences are -6, +10, 0 and -8 orders. The four new totals sum to 326. The prior totals sum to 330, so the city changes should sum to -4. Check that balance before plotting. A city with zero change still has an order count; the zero stands for the difference between its two periods.

Insert a separate bar chart for the signed changes. Choose an axis that covers both negatives and positives and keeps a clearly visible zero reference. Positive bars extend in the increasing direction and negative bars in the opposite direction. This use of zero differs from cropping bars at a target. The plotted variable here is already change in orders. A title such as Weekly change in orders by city tells the reader what the sign means. An explicit label like -8 should accompany the negative reading if direction is not obvious on a small screen.

If you switch from absolute change to relative change, divide each city's difference by its own initial count. Your expected changes are Pune -6 percent, Nagpur +10 percent, Nashik 0 percent and Solapur -10 percent. If you calculate an overall percent change, use the aggregate difference -4 over the initial aggregate 330, about -1.21 percent. Do not sum the four percentages to report an overall change. Use units in the charts so the reader knows when the axes measure orders and when they measure percentage change.

Choose a symmetric comparison range if it helps with direction and magnitude. For this dataset, -12 through +12 covers the four absolute changes. Then an eight-unit loss has the same distance from zero as an eight-unit gain would have. Negative values in a chart do not mean bad data by themselves. They may be meaningful refunds or decreases. A total with mixed signs may need a waterfall or two explicit measures if you want people to see additions and reductions separately. Do not re-express signed changes as 100 percent stacked parts of a positive whole unless you have defined a sensible denominator.

Separate level, difference and target attainment

Imagine the team decides that each city should reach 80 orders. On the first-week data, Pune and Nagpur exceed it by 20, Nashik is below by 30, and Solapur meets it exactly. Plotting orders from zero and adding a separately labeled target reference answers a level question. Plotting signed orders minus target around zero answers an attainment question. Both use the number 80, but the plotted values are different. A cropped chart that simply starts the axis at 80 would hide Nashik and change what bar lengths mean without showing the signed differences.

Protect the reference's meaning when you change inputs. Suppose the target is different in each city because staffing differs. One shared line at 80 is now wrong. Make a new target column and compute each difference using the matching city's rate or count. Check whether the goal and measure refer to the same period and units. Choose a source range that stores the city beside its target and actual, so a sorting action cannot detach them.

6. Confirm the intended comparison before sharing

Read across the shared baseline and label the unit

Look at the smallest value and a middle value rather than reviewing only the leading bar. Verify each starts from the intended reference. A horizontal ranking can show an axis marked count, or exact values with a clear visible zero line and nearby table. Remove heavy gridlines if the mark lengths and labels already do the work. Avoid hiding the whole reference scale if that makes the chart's numeric meaning unclear. A plot can be readable and spare while keeping useful guides.

Use a 100 percent stack only for categories with comparable definitions. If one team calls a browser purchase Website and another assigns it to Marketplace, the channel definition is not consistent enough to compare proportions. If a merchant can appear in both channels, use a count of orders with one channel per row or state that these are overlapping metrics. Adding overlapping groups to create one denominator can overstate the population. The unit is not just a label. It tells you what can be added and which chart interpretation is valid.

Prepare the chart along with its supporting data

  1. Confirm labels, order and scope. Identify the visible categories and time window in the title or caption. If you ranked only selected desks, say which desks were eligible. Distinguish any tie from an artificial rank number.
  2. Verify exact numeric controls. For a comparison, check a large value and a tied value. For a stack, add segments and compare with the end of the bar. For a normalized stack, calculate at least one share from the original city counts.
  3. Check style at output size. Keep category text and units readable. Use labels, a legend or different mark patterns in addition to color. Make sure a point label remains attached to the correct bar when the values change.
  4. Test a source change on a copy. Change Pune Website orders from 80 to 60 while keeping Marketplace 20. The total becomes 80 and Website share falls to 75 percent, which is different from Nashik's unchanged 80 percent. Confirm the revised count and mix charts answer their own questions.
  5. Give a text route to the answer. Add concise alt text explaining the comparison, and keep an exact-value table. For the desk chart, mention the leaders and the two values that tie. For channel mix, say which view uses counts and which shows normalized city shares.

Try a relevant comparison exercise in the Excel Task Hub. Before drawing bars, write the unit and the exact top two answers. If you need a trend rather than a comparison across categories, continue to Line and Area Charts. Use the same process of checking source and visual scope.

Make the top group reproducible when a cutoff ties

On a copy of Desk Counts, add Rank in C1. In C2 enter =RANK.EQ(B2,$B$2:$B$6,0) and fill to row 6. This uses the whole reference for each row and ranks larger counts first. In the order shown by the sorted chart, the ranks are 1, 2, 3, 3 and 5. This ranking convention leaves no rank 4 because two entries share rank 3. An alphabetical order among tied names does not change their rank values.

Compare two versions of a short slide. If you require a strict maximum of three bars, explain the tie-breaking rule and show Stage, Workshop and whichever tied desk the rule selects. With the stated alphabetical rule, the shown bars sum to 204 and the remaining two sum to 84. If the intended chart shows every desk ranked third or better, include both ties. Then four shown categories total 252, and Book swap at 36 is left out. Exact chart labels such as Three displayed desks or Rank 3 and higher, ties included say which choice was used. Keep the full total of 288 beside either selection when a coverage summary is needed.

If you combine omitted categories into an Other bar, its value is a group rather than a single desk. In the strict three-bars selection, Other would be 84, which equals Stage. That does not create a new tie for the leading individual desk. Separate it visually or provide it as a note instead of sorting it among the individual rankings without explanation. In a pie chart it might make sense to keep Other so all slices add to the stated denominator. A ranked desk chart should preserve the meaning of each compared row.

Try two common ordering controls before changing the source

On an active chart view, look for the format control for category order. Changing it will reorder labels and their marks without editing source cell values. Check the placement of the other axis after a reversal. Alternatively, keep both fields in a separately ordered source area and let the chart read it in the appropriate direction. If the workbook may refresh, a manual sort is a momentary snapshot. Confirm whether it needs to run again after changes, or use worksheet logic that intentionally recalculates the presentation order on supported versions. An automatic re-sort should still follow the tie rule.

Renaming a desk on a source sheet can alter its alphabetical position among ties. For example, changing Volunteer desk to Admissions volunteers would place it before Merchandise collection under the same tie-breaking rule. With the tie-inclusive rank filter, both still belong in the chart. With a strict three-entry rule, the new displayed third location could change while no check-in amount changes. Write whether the chart shows relative ranking, chosen order or a named list so readers know how to interpret such a change.

Match count and share definitions after changing the inputs

Consider a channel export that uses several rows for one order because it stores one row per item. Counting the rows and calling them orders would inflate both volume and possibly share. Establish whether the measure should count distinct order IDs or sold units. Use a suitable summary step and run a check with a known multi-item order before selecting your chart range. A 100 percent scale can hide an inflated absolute total: if every count doubled evenly, the entire chart of shares would look the same. Keep a pair of known source records and totals available as independent evidence.

When an analyst adds another period, keep its unit and boundaries beside the old report. If one week includes a special event with more days, a count chart can show total activity while a per-day comparison might use a different measure. Define the denominators and data coverage for the new question. Recalculate a chart label only after the measure is ready. The ability to change chart types quickly should make it easier to test an interpretation, rather than replacing those checks.

7. Interview questions with worked answers

When do you prefer horizontal bars to vertical columns?

Choose bars for a ranked list with long labels such as Merchandise collection. They provide room for the names and let readers scan the ordering. Columns are useful for short categories or a small set of ordered periods. In both cases use comparable units and a shared zero so length has a consistent meaning.

Why shouldn't an ordinary count bar chart start at 40 in the desk example?

It truncates lengths. Stage 84 and a 48 desk would appear 44 and 8 units long on a cropped scale, a 5.5 ratio rather than the actual 1.75 ratio. It would also hide the below-bound value 36. Start at zero so readers can compare original magnitudes.

How does a normal stack differ from a 100 percent stack?

A normal stack shows combined absolute amounts. A normalized stack sets each qualifying category to a full length and shows its composition. Pune total 100 and Nashik total 50 have the same 80 percent Website share. They appear different in a count stack and equal in a share chart.

Why is a clustered chart useful for comparing a later stack segment?

Several segments higher in a stack start at different values. A Marketplace segment may end higher even though its own count is smaller. In the lab Nagpur reaches 100 from 45, so its segment is 55. Solapur ends at 80 from 20 and has 60. Cluster the values at zero for easier cross-city count comparison.

How do you verify that a ranking did not break its category labels?

Sort the whole copy so labels and values travel together. Read the sorted result against the raw source by matching at least the leader, runner-up and a tie. Then check the category axis orientation. If the chart displays the first row at the bottom, reverse the category view or change the copied ordering as intended.

8. Predict the match or the changed denominator

Which two desks tie at 48 check-ins?

Merchandise collection and Volunteer desk. The shared length means a tie even if a secondary alphabetical rule places Merchandise first on the screen.

Which city has the highest Marketplace count?

Solapur with 60. Nagpur's absolute stack ends higher at 100, but its Marketplace contribution is 55. Read the part length or its exact label.

Can an all-zero order city show a valid channel mix?

Its volume is zero, so the mix has no denominator. Mark No orders and exclude it from the share view. A different city with 100 Website and zero Marketplace has a valid 100 percent Website share.

Which result answers share of all four cities' orders from Website?

185 divided by 330, about 56.1 percent. The simple mean of 57.5 percent gives equal weight to each city rather than to each order. Choose the calculation for the question.

Why does the signed change chart contain a zero for Nashik?

Orders stayed at 50 between weeks, so its change is zero. That does not mean it had no orders. The axis measures New minus Prior and zero means unchanged.

9. Six reminders

  • Give long names room.

    Use horizontal bars for readable labels and ranking.

  • Protect the common zero.

    Read lengths on one unit scale, with zero visible for signed comparisons.

  • Cluster for direct comparisons.

    Show contributing counts beside each other when a shared baseline matters.

  • Stack verified components.

    Use an absolute stack for levels and a normalized stack for shares.

  • Check the denominator.

    An order-weighted share differs from an average of city shares.

  • Keep the tie and totals.

    Equal values stay equal. Totals remain audit evidence outside category plots.

Microsoft references