COUNTIF based on two columns with one containing merged cells

smms1

New Member
Joined
Aug 28, 2013
Messages
7
I have two columns with one column having multiple merged cells and another with mixed of blank and non-blank cells.

I tried =COUNTIFS(D3:D14,"Red",E3:E14,"<>") but did not succeed. Any suggestion pls (merged cells are unavoidable)?

Here is the excel file Upload Files - Dropfiles.org

Thanks!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Please provide your sample layout using XL2BB (link in my signature below). Many people are not able to download files from share sites due to security restrictions.

With merged cells, (as an example) if you have E3:F4 merged, only E3 (the top left cell of the block that is merged) has a value, the other cells are all evaluated as empty. This prevents most formulas from working correctly.
 
Upvote 0
If in column E, those data are NOT the result of formulas, and the range in columns D and E have the same size, then it is easier to use the COUNTA function in column E.
=COUNTA(E3:E14),
=COUNTA(E15:E19)

It is good to avoid merged cells.
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,962
Latest member
Fenes

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