Countif conditionally?

spacely

Board Regular
Joined
Oct 26, 2007
Messages
248
Hi,

I have 2 columns of text. There may or may not be empties in either column. And some rows may be hidden. So, I need to count up the number of times when there IS an entry in the 1st column (A) but NO entry in the next column over (B).

Thanks in advance...

Dave
 
Yes, but now use excel's filters to filter out row 4 with dave3. What's the answer? And then use the filters to filter out row 6 with dave5. What's the answer then? Answer should depend on the filter...so it works only on what's visible....

Try...

=SUMPRODUCT(SUBTOTAL(3,OFFSET($A$2,ROW$A$2:$A$7)-ROW($A$2),0)),1-($A$2:$A$7=""),--($B$2:$B$7=""))
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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