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.

ABCDEFGHIJ
1
2
3
4
5Supply Chain
6
7
8CourseLiveCompLeaverBlankGreenAmberRedBlank
9Level 2 Ware


<tbody>
</tbody>

 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
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
Sorry about that, I have tried the above but it says that there is a problem with the formula.
 
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,214,978
Messages
6,122,545
Members
449,089
Latest member
davidcom

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