Confident CellsExcel practice Start free

Goal Seek and Consolidate: practice exercises

What-If Analysis, Goal Seek, Set cell, To value, By changing cell, Consolidate, Use labels, All references. 8 exercises on real-looking data, each checked as you go. The full lesson is part of Pro.

In the lesson

This lesson has Excel's Goal Seek and Consolidate boxes above a practice sheet, with tabs for the other sheets of the workbook: work backwards from an answer and bring sheets together as you would in Excel, and each task is checked as you go.

Open the Goal Seek and Consolidate lesson

How it works

Goal Seek works a formula backwards. You know the answer you want (a profit of £5,000) and Goal Seek finds the number that gets you there (the ticket price).

Consolidate brings several sheets together: a sheet for each branch, and a Summary that adds them up, matching the rows and columns by their labels.

Goal Seek: from the answer back

A club sells tickets: price in B1, tickets sold in B2, costs in B3, and the profit in B4 is =B1*B2-B3. With £6 tickets, 200 sold and £700 of costs, the profit is £500. The club wants £1,000. What price does that take?

Choose Data, What-If Analysis, Goal Seek and fill in three boxes:

  • Set cell: B4, the formula with the answer.
  • To value: 1000, the answer you want.
  • By changing cell: B1, the number Excel may change.

Excel tries prices until the profit comes to £1,000: £8.50. The Goal Seek Status box shows the target and the value it reached. OK keeps the new price in B1; Cancel puts £6 back.

Windows: Data, Forecast, What-If Analysis, Goal Seek.

Mac: Data, What-If Analysis, Goal Seek.

What Goal Seek needs

Set cell must hold a formula, and By changing cell must hold a typed number (not a formula) that the formula uses, directly or through other cells. Otherwise Excel says Cell must contain a formula or Cell must contain a value.

Goal Seek changes one cell only. It stops when it's within 0.001 of the target, so it may leave a long decimal such as 8.4999999; round it, or format the cell, if it should be a whole number of pence.

Exam tasks often don't say “Goal Seek”: change cell B1 so that B6 is exactly 5,000; do not change any other cells means Goal Seek.

Consolidate by position

A café keeps a sheet for each week, laid out the same way: items down column A, days along row 1, and the numbers in B2:D5. A Summary sheet has the same labels and needs the totals.

Click B2 on Summary and choose Data, Consolidate. Set Function to Sum. In Reference, select B2:D5 on Week 1 (click its tab and drag), then Add; do the same on Week 2 and Week 3. Each goes into All references. OK fills B2:D5 with the totals.

The results are values, not formulas. Tick Create links to source data for formulas that update instead (Excel then groups the rows; this site leaves that option out).

Windows: Data, Data Tools, Consolidate.

Mac: Data, Consolidate.

Consolidate by labels

When the sheets list different products, or the same ones in a different order, match them by their labels. Select each sheet's whole block, headings and all (North!$A$1:$D$5), and tick Top row and Left column under Use labels in.

Excel lists every product that's on any sheet down the left, every heading along the top, and adds up the numbers that share a label. The top-left corner is left blank. Capitals don't matter: pens and Pens are the same.

Function can be Sum, Count, Average, Max, Min and more: Average gives the average price of each product across the shops.

Scenarios: next

Goal Seek finds one number. The Scenario Manager (also under What-If Analysis) saves several sets of numbers, such as a best case and a worst case, and makes a summary sheet comparing their results.

Its scenarios are saved in the workbook, so you'll practise it in Excel itself in the next lesson, Scenarios in Excel, and drop the file back to have it checked.

What you'll practise

  1. The club wants a profit of £2,100. What ticket price does it need? Use Data, What-If Analysis, Goal Seek: Set cell B4, To value 2100, By changing cell B1. Then OK in the Goal Seek Status box.
  2. A student wants an average of 65 over four tests. What do they need in Test 4? Goal Seek: Set cell B6, To value 65, By changing cell B5.
  3. Sam can afford £300 a month. How much can they borrow? Use Goal Seek to make the monthly payment in B4 come to 300 by changing the loan in B1.
  4. The three week sheets (see the tabs under the sheet) have the same layout. Add them up on this Summary sheet, by position: with B2 selected, Data, Consolidate, Function Sum. Add 'Week 1'!$B$2:$D$4, then the same cells on Week 2 and Week 3, and leave the Use labels boxes unticked.
  5. Each branch sells different products, in a different order. Total them on this sheet by matching the labels: click A3, Data, Consolidate, Function Sum. Add each branch's whole block (such as North!$A$1:$D$4), and tick Top row and Left column.
  6. Find the average price of each product across the three shops: at A3, Consolidate with Function Average, each shop's block of data, and both Use labels boxes ticked.
  7. Change the value of cell B1 so that the profit in cell B6 is exactly £5,000. Do not change any other cells.
  8. On the Summary worksheet, starting in cell A3, consolidate the data on the Leeds, York and Hull worksheets to show the total of each product for each month. Use the labels in the top row and left column.