Sum IF Frequency blank cells calculation

Weeble

Board Regular
Joined
Nov 30, 2016
Messages
95
Office Version
  1. 365
I'm trying out this formula
Code:
{=SUM(IF(FREQUENCY(IF(Blad2!$N:$N="<"">",Blad2!$B:$B),IF(Blad2!$N:$N="<"">",Blad2!$B:$B))>0,1))}
To try and get all the unqie values in column B when column N is blank.
I have similar code for when N is not blank, it it works fine.
Code:
{=SUM(IF(FREQUENCY(IF(Blad2!$N:$N="IS",Blad2!$B:$B),IF(Blad2!$N:$N="IS",Blad2!$B:$B))>0,1))}

Anyone able to tell me another way I can do this?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I'm assuming column B contains numbers, not texts. If so try something like this

=SUM(IF(FREQUENCY(IF(Blad2!$N$2:$N$1000="",IF(Blad2!$B$2:$B$1000<>"",Blad2!$B$2:$B$1000)),IF(Blad2!$N$2:$N$1000="",IF(Blad2!$B$2:$B$1000<>"",Blad2!$B$2:$B$1000))),1))
Ctrl+Shift+enter

Remark: for the sake of performance avoid references to entire columns like $N:$N in array formulas. Adjust the ranges to suit the expected/likely/desired number of rows.

M.
 
Upvote 0
It still does not count the blank row on my sheet.
ABCDEFGHIJKLMN
2017-09-118313...........
2017-09-128398...........IS
2017-09-128397...........IS

<tbody>
</tbody>

I have a summary field that sais
Amount of unique "IS" based of the B column
Amount of unique " " basesd of the B column

So the summary should pickup that I have 1 from B.

Thank you very much for the information on Array formulas. A followup question. Even if my rows can add up to 15 000, it's still better have it ranged? The thing that i'm afraid of is if I DL a new query and it exceeds 15k rows, someone will not pay attention to it and miss valuable information. Would it be better to try and VBA the entire thing?
 
Upvote 0
Try this - observe that i used a big range 2:30000

=SUM(IF(FREQUENCY(IF(Blad2!$N$2:$N$30000="",IF(Blad2!$B$2:$B$30000<>"",Blad2!$B$2:$B$30000)),IF(Blad2!$N$2:$N$30000="",IF(Blad2!$B$2:$B$30000<>"",Blad2!$B$2:$B$30000))),1))
Ctrl+Shift+Enter

M.
 
Upvote 0

Forum statistics

Threads
1,215,494
Messages
6,125,137
Members
449,207
Latest member
VictorSiwiide

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