Filter/search and count.

edsashley

New Member
Joined
Jun 11, 2024
Messages
20
Office Version
  1. 365
Platform
  1. Windows
morning,

I have been using a formula for a while now which works fine. =COUNTIFS(F:F,”Dave*”,H:H,”*”). This will count the cells in column F that have Dave in as long as column H is also filled. I have to do this for different names.

I am trying to streamline this by inputting names into a drop down list in cell ‘O9’ and using whatever is selected as my variable.

I have tried amending the formula to =COUNTIFS(F:F,”=O9*”,H:H,”*”) but this does not work.

Can anyone offer any suggestions please.
 
Just noting that all formula suggested above will need to have straight quote marks " not sloping ones ”
I also do not know what your names might be but if counting for "Fred" you would also get rows with "Frederick", "Freda" etc. Is that a possible problem?
 
Upvote 0
That is not a problem but I thought that was what the asterisk was for to make sure it was definitive ie “Fred*” would not result in Frederick.
 
Upvote 0
Here is my sheet and the formula in K6
 

Attachments

  • 1934239C-4C5C-48EF-AF1F-09FFFE968FE7.png
    1934239C-4C5C-48EF-AF1F-09FFFE968FE7.png
    18.6 KB · Views: 3
  • F784981D-8338-475B-8CCC-4A60ECA98340.png
    F784981D-8338-475B-8CCC-4A60ECA98340.png
    2.7 KB · Views: 3
Upvote 0
Here is my sheet and the formula in K6
From that image, how would we know know what is K6 or O9 or column F or column H?

I suggest that you investigate XL2BB for providing sample data & expected results to make it easier for helpers to understand just what you have & where it is and also what you want & where it is to be. We can also copy from it for testing.
(If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.)
 
Upvote 0
From that image, how would we know know what is K6 or O9 or column F or column H?

I suggest that you investigate XL2BB for providing sample data & expected results to make it easier for helpers to understand just what you have & where it is and also what you want & where it is to be. We can also copy from it for testing.
(If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.)
Apologies. I have only just realised this. Attached is a better screenshot. The search criteria table populates the drop down located at ‘O9’ highlighted green. Whichever is selected from here is what needs to be in the formula of K6.

Thanks for any help.
 
Upvote 0

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