Count items from a dropdown list

ricardobrat

New Member
Joined
Aug 4, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi there.

Im having a bit struggle with Excel at the moment as Im trying to count how many items there are in a dropdown menu. Creating the list in a second sheet and using the list to make a dropdown list in the first sheet does not work as I need a lot of dropdown menus and I would need to create countless lists in the second sheet.

I want to count all the things in the list without the first one as I will be using it as a Title. Picture attached.

If we count the list in the example picture, it should say that I have 4 items.

I would appreciate any help!
 

Attachments

  • image_2022-08-04_193729997.png
    image_2022-08-04_193729997.png
    1.8 KB · Views: 10

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Is this a Data Validation drop-down? Are you planning on using the count with a Formula or with VBA? Are you expecting the number of items to be variable?
 
Upvote 0
Hi. It is a Data Validation drop-down, yes. Im planning to use it as a list of items which will eventually be removed 1 by 1 manually by me, so yes, it will be variable. Not sure what the second question is but basically, I need the drop down menu to see what current available items I got from this specific list and I want to know exactly how many items are left on the list, that's it.
 
Upvote 0
Book1
BCDE
2Title
36One
4Two
5Three
6Four
7Five
8Six
Sheet1
Cell Formulas
RangeFormula
B3B3=COUNTA(ListRange)-1
Named Ranges
NameRefers ToCells
ListRange=INDIRECT("Sheet1!" & ADDRESS(2,5) & ":" & ADDRESS(COUNTA(Sheet1!$E:$E)+1,5))B3
Cells with Data Validation
CellAllowCriteria
C3List=ListRange
 
Upvote 0
Thank you for this. Is it possible to not use a different sheet to store the data? I have a lot of dropdown menus and I will have to create countless sheets or lists in a different sheet that way. Is it possible to count the list directly from the dropdown list?
 
Upvote 0
If you are creating a dropdown list for data validation, you will need a source for the data. It will need to be SOMEWHERE on a sheet; you could have the data in the same sheet as everything else in a far distant column, or you could have all the data in a dedicated sheet for data validation only.

The formula in B3 was available if you wanted the count of how many there are in the list.

The named range is an example of how to create a dynamic range to create a dropdown list with only as many items as there are in the given column.

You said you wanted a count of how many items are in the dropdown; the best way to do that is a COUNTA of the reference list contained in the sheet.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top