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

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,224,823
Messages
6,181,180
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