Countif not working when data filtered

SSCOB

New Member
Joined
Sep 12, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi, I have a countif formula, and when I filter the data the countif counts don't update. But I would like it to. What do I need to do to show the counts when I filter the data please?

I've *think* I've attached the mini sheet, but added image too.

The data is on the left, and the countif formula is: =COUNTIF(Sheet1!E:I,Sheet1!K2) - which counts all of the data to the left, but I then also want to show that data filtered on 'Type' (highlighted yellow), in the subsequent columns. Is this possible please?

example.xlsx
F
58
Sheet1
 

Attachments

  • Screenshot (3).png
    Screenshot (3).png
    222 KB · Views: 10

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
The mini sheet only shows one cell. You need to highlight the entire range before copying into xl2bb.
 
Upvote 0
How about
Excel Formula:
=LET(a,TOCOL(FILTER($E$2:$I$1000,MAP($D$2:$D$1000,LAMBDA(m,SUBTOTAL(3,m))))),IFERROR(ROWS(FILTER(a,a=K2)),0))
 
Upvote 0

Forum statistics

Threads
1,216,759
Messages
6,132,556
Members
449,735
Latest member
Gary_M

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