Formula Help: Counting Blanks

PixieCat

New Member
Joined
Aug 21, 2019
Messages
1
Hi

I am struggling with writing a formula to achieve the following:

We want to count how many times there are two or more consecutive blanks.

Below is a snapshot of what the data looks like.

https://imgur.com/a/SP7Ojyz

In addition, while we are here -

We have the following formula:

=(IF((INDEX($K$3:$CD$3,MATCH(CR3,$K$2:$CD$2,0)))="","",MATCH(TRUE,(OFFSET((INDEX($K$3:$CD$3,MATCH(CR3,$K$2:$CD$2,0))),0,1)):CD3<>"",0)))-1

This is counting how many "blanks" are following a "Y" on a set date, this works for the first 10 rows but for some reason it stops working and returns N/A for no reason?

Thanks in advance

Cat

SP7Ojyz
 

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
Hi,

Try this:

=SUMPRODUCT(--(FREQUENCY(IF(NOT(ISBLANK(A$2:CD$2)),"",COLUMN(A$2:CD$2)),IF(ISBLANK(A$2:CD$2),"",COLUMN(A$2:CD$2)))>=2))

enter it as an array formula by using <CTRL-Shft-Enter> to onfirm.
 
Upvote 0

Forum statistics

Threads
1,213,539
Messages
6,114,221
Members
448,554
Latest member
Gleisner2

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