Count based on two columns, skipping blanks

PrivateVenue

New Member
Joined
Apr 5, 2016
Messages
17
Alright, so what I've been trying to figure out for an embarrassingly long amount of time is how to count different values based on two columns, skipping blanks.

I've tried a variety of COUNTIF/S and SUMPRODUCT formulas. This is the closest I've come, but it doesn't take into account what is in column L, so it's continuing the count instead of starting over each month. The formula is column P is =IF($O3="","",SUMPRODUCT(--(O$3:O3<>"")))

LOP
311/16Riverfront1
411/16616 Lofts2
511/16
611/16Alta3
711/16
811/16
911/16
1011/16
1111/16Rocky Vista4
1212/16616 Lofts5
1312/16Alta6
1412/16Rocky Vista7
151/17Hyatt8
161/17RC Condos9

<tbody>
</tbody>

This is how I would like it to look, the count starts over with each month and skips the blanks.

LOP
311/16Riverfront1
411/16616 Lofts2
511/16
611/16Alta3
711/16
811/16
911/16
1011/16
1111/16Rocky Vista4
1212/16616 Lofts1
1312/16Alta2
1412/16Rocky Vista3
151/17Hyatt1
161/17RC Condos2

<tbody>
</tbody>

Any help is greatly appreciated!
 
Last edited:

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Are your entries in column L text or dates?
 
Upvote 0
Enter this formula in P3 and copy down for all rows:
Code:
=IF(O3="","",COUNTIFS(L$3:L3,L3,O$3:O3,"<>" & ""))
 
Upvote 0
You are welcome.
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,109
Members
449,205
Latest member
ralemanygarcia

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