SUMPRODUCT or COUNTIFS

nmss18

Active Member
Joined
Jun 28, 2011
Messages
312
Hello,
In the table below, in D2 what formula can I use to count the number of blank cells between L2 and S2 (which is when the user signed on as noted in columns B and C)?
and in D3 the formula should count the number of blank cells between F3 and M3.
So for User001, I would like to see 1 (as 2014 october is blank) and User002, there are 3 blank cells in F:M

I am using the countif formula =COUNTIF(E2:S2,"") but it is counting the entire range E:S and that is not what I want.

(I posted a similar posting earlier but I suspect it was too wordy and complex).

Any help would be appreciated.
nmss


Excel 2012
ABCDEFGHIJKLMNOPQRS
1UserLive DateCancel DateDormancy2014 January2014 February2014 March2014 April2014 May2014 June2014 July2014 August2014 September2014 October2014 November2014 December2015 January2015 February2015 March
2User0012014 August2015 March81111111
3user0022014 February2014 September1011111
Sheet3
Cell Formulas
RangeFormula
D2=COUNTIF(E2:S2,"")
D3=COUNTIF(E3:S3,"")
 
You're welcome.

As for the dates.
For Feb. 2013 to fall between Jan. 2013 and March 2015.
Jan. 2013 has to be less than or equal to Feb. 2013.
and
March 2015 has to be greater than or equal to Feb. 2013.

I had to think about it for awhile as I had it wrong the first time.
 
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,216,077
Messages
6,128,684
Members
449,463
Latest member
Jojomen56

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