Count Number of Blank Cells between Cells

sforney123

New Member
Joined
Aug 23, 2012
Messages
8
Hello,

I'm running Excel Version 16 (believe that is the most current). I have a pivot table and I'm trying to count the number of blank cells between each entry. In the example from my screenshot I have highlighted the distance I'm trying to count.

Screen Shot 2022-02-07 at 2.01.14 PM.png


I would need to do this for a couple hundred lines. Basically I'm trying to count the number of days between entries.

Thank you in advance!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
This may be the wrong method for using Pivot table, which primarily summarizes data.
What does the 'Data' look like? it may be easier to sort the data by UserId then Date. Once in that format you could use a formula like
Excel Formula:
=IF(A4=A3,DATEDIF(B3,B4,"d"),"na")
which will calculate the number of days between 2 dates on the userid. the formula looks at the date (I have it in column A(UserId) & B(Date);
days betw date on Userid.JPG
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,865
Members
449,052
Latest member
Fuddy_Duddy

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