How to count the number of items through Spin Button in Excel?



Introduction

Excel is not limited solely; it empowers efficient collaboration when dealing with large volumes of interconnected data. By utilizing Form Controls and Active X controls functionality, several team members can link the cell reference, and populate the calculation through these interactive controls which ensures the integrity of the entire dataset. Better user interfaces, greater versatility, and improved application structure are also possible. Users may quickly add text boxes, a drop-down menu, a spin button, and other features to the worksheet using these controls.

In this article, we will learn how to count the number of items through the spin button in Excel 365.

Count the Number of Devices Through the Spin Button and Calculate Their Total Cost

Step 1

Assume the Excel worksheet where you have a sample dataset ?

Insert tab in Excel with Developer tools enabled for form controls

Step 2

Switch to the "Developer" tab and then click on the "Insert" tile and select the "Spin" button option as shown below image ?

Excel Developer tab showing Form Controls menu with Spin Button selected

Step 3

Drop the Spin button on the B2 cell as shown below image ?

Placing spin button control on Excel worksheet using Developer tab

Similarly copy the spin button from the B2 cell and paste it into the remaining cells of the B column as given below ?

Spin button inserted on Excel sheet with right-click to access format options Format Control dialog box for configuring spin button properties in Excel

Step 4

In the B2 cell, right-click on the spin button and choose the "Format control" option as given below ?

Setting minimum and maximum values in Excel spin button Format Control

Step 5

Another dialog box "Format Control" will appear and give the cell reference "C2" in the textbox in the front of the "Cell Link" label and then click on the "OK" button as highlighted below image ?

Excel cell linked to spin button for counting item quantity

Step 6

Repeat the same step for the remaining cells of the C column and link the spin button to the corresponding cells. Furthermore, when we click the upper arrow once in the B2 cell then the value in the C2 cells is automatically increased by 1 as given below ?

Formula applied to calculate item total based on spin button value

Step 7

If you click the upper arrow of the spin button, the value in the C column cells increases conversely, when the user clicks the spin button's lower arrow, the value drops. For example, if you click on the spin button's upper arrow thrice then the value in the C cell would be 3.

Demonstration of item count increasing using Excel spin button

Step 8

Enter the formula "=C2*D2" in the E2 cell to calculate the total cost of the devices and then press the Enter key as shown below ?

Real-time item count and calculation output in Excel using spin button Final Excel sheet with spin button controlling item count and formula results

Step 9

Simply drag the formula down to fill the remaining cells in the E3:E7 to calculate the Total cost of the corresponding network devices as given below ?

Excel worksheet with spin button used to count listed items dynamically

Conclusion

The given example provides a thorough step-by-step explanation to assist users in improving their Excel skills. The spin button allows users to swiftly count the number of network devices.

Updated on: 2023-12-22T11:11:14+05:30

555 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements