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: 26

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
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,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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