countifs help

Techenthusiast

New Member
Joined
Nov 22, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
  2. Web
I am having trouble using COUNTIFS with UNIQUE and FILTER. I used COUNTA but it returns 1 because it's counting cells that are not empty.
 

Attachments

  • COUNTIFS.png
    COUNTIFS.png
    22.5 KB · Views: 15

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
NOT sure i follow
the result is 2 from the image - what are the cells that are empty you want to count
counta will count non empty cells

rows() is another option other than counta

Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
My IT would not allow download zip or file sharing otherwise so I will try to explain based on the image I shared earlier.
I want to count cells in column F that has "No" based on unique values in column C.
In the example, 4 cells has load number 1800213874 and column F has "No" for all those cells. Cell C9 has load number 1800213876 and a "No" value in F9.
In this scenario, count in J4 = 2 is correct. But when all cells in column F have "Yes" values, J4 still counts 1 because the cells have formula and they aren't empty.
So, I want to number of "No" in column F based on unique values in Column C when all cells in column F have formulas.
I hope it makes sense and thanks for your help.
 
Upvote 0
Hi & welcome to MrExcel.
Change the COUNTA to ROWS & then wrap the whole thing in IFERROR.
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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