Formula to count "blank" learners with reference to other cells

LisaCol

New Member
Joined
Jan 21, 2019
Messages
6
I have currently got a table that refers to a data spreadsheet to count learners, I have got the formula set up when a column contains Green, Amber or Red but I can't figure out what the formula should be if the column is blank.

The formula I currently have in J9 is:=COUNTIFS(Learners!$K:$K,Summary!I$8,Learners!$T:$T,Summary!$B9,Learners!$A:$A,">=2018-2019",Learners!$AY:$AY,Summary!$B$5), where Summary is the spreadsheet below and Learners is the spreadsheet with the data.

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD]Supply Chain[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD]Course[/TD]
[TD]Live[/TD]
[TD]Comp[/TD]
[TD]Leaver[/TD]
[TD]Blank[/TD]
[TD]Green[/TD]
[TD]Amber[/TD]
[TD]Red[/TD]
[TD]Blank[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD]Level 2 Ware[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]

[/TD]
[/TR]
</tbody>[/TABLE]

 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
have you tried the =countblank() function?
 
Upvote 0
could you post the formula used here?
 
Upvote 0
=COUNTIFS(Learners!$K:$K,Summary!I$8,Learners!$T:$T,Summary!$B9,Learners!$A:$A,">=2018-2019",Learners!$AY:$AY,Summary!$B$5)

Summary is the spreadsheet with the table and Learners is the spreadsheet with the data.

Thank you
 
Upvote 0
actually i was asking the formula got you the error.
never mind, lets try the sumproduct() instead

the sumproduct equivalent of your formula is

Code:
=SUMPRODUCT(--(Learners!K:K=Summary!I8),--(Learners!T:T=Summary!B9),--(Learners!A:A=">=2018-2019"),--(Learners!AY:AY=Summary!B5))

so, to include the check on blank on Col B, say

Code:
=SUMPRODUCT(--(Learners!K:K=Summary!I8),--(Learners!T:T=Summary!B9),--(Learners!A:A=">=2018-2019"),--(Learners!AY:AY=Summary!B5)[COLOR="#FF0000"],--(ISBLANK(Learners!B:B))[/COLOR])
 
Upvote 0
the only thing i can think of is the cells in Learners!A:A, could you post a small sample of them here please

it would be easier if you can share the excel sheet on google drive or similar
 
Last edited:
Upvote 0
I deleted that part of the formula to see if that helped and now the formula works, but the output is #N/A. Unfortunately I can't upload the spreadsheet as the data is protected under GDPR, the only thing I could do is upload a anonymised dataset which I could sort out tomorrow.
 
Upvote 0
i created a mock up sheets, have a look to see if that make any sense


Book1
ABKTAXAY
1RED
2RED
3REDLevel 2 Ware
42018REDLevel 2 WareSupply Chain
52018xxxxREDLevel 2 WareSupply Chain
62019REDLevel 2 WareSupply Chain
7REDLevel 2 Ware
8REDLevel 2 Ware
9RED
10RED
Learners



Book1
ABCDEFGHIJ
1
2
3
4
5Supply Chain
6
7
8CourseLiveCompLeaverBlankGreenAmberRedBlank
9Level 2 Ware1
Summary
Cell Formulas
RangeFormula
I9=SUMPRODUCT(--(Learners!K:K=Summary!I8),--(Learners!T:T=Summary!B9),--(Learners!A:A=2018),--(Learners!AY:AY=Summary!B5),--(ISBLANK(Learners!B:B)))
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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