Excel 2007 - COUNTIFS with nested OR and Cell References.

Doge Robert

New Member
Joined
Jan 10, 2017
Messages
14
Greetings all.

I have a list of data, where I need to count the number of replies based on certain criteria.

It looks something like this:

=countifs(Answers!$O:$O;J16;Answers!$C:$C;OR(C16;D16;E16);Answers!$M:$M;OR(F16;G16;H16))

(Please forgive any errors. I am translating from a danish version of Excel. (Hence the semicolons))

What I need the formula to do:
Look in Answers column O and count if the value equals cell J16.
Look in Answers column C and count if the value is equal to either the cell-value in c16, d16 or e16. - There may be multiple hits, each need to count
Look in Answers column M and count if the value is equal to either the cell-value in f16, g16 or h16. - There may be multiple hits, each need to count

If all these criteria are met, add 1 to the count, or more, if there are more than one hit with the or-fomulas.


How would you go about doing this?


Thanks in advance.

Robert.


- Sadly, I cannot upload an Excel-sheet, as I am writing from a business pc, where such is not permitted.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,215,593
Messages
6,125,715
Members
449,254
Latest member
Eva146

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