Need to stop my count If Formula Count Blanks from my main table.

Leicester City Fox

Board Regular
Joined
Oct 7, 2016
Messages
91
Office Version
  1. 2019
Platform
  1. Windows
Hi There

I have a formula that work fine but when I drag the formula down the column it returns the same number (4987) as shown example below:

It takes this information from the main table 1 and I believe it counting the blank cells in this table.

=COUNTIF(table1[RefNo.],A3)



Column A Column B

RefNo. No records

1234 2

4321 4

Blank 4987

Blank 4987

Blank 4987

I don’t want it to show a result (4987 or any number) if column A is Blank and only to count once a RefNo. has been added.

I would be grateful for any ideas to make my formula work or suggestions.

Many Thanks & Stay Safe

The Leicester Fox
 

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
How about
Excel Formula:
=if(a3="","",COUNTIF(table1[RefNo.],A3))
 
Upvote 0
How about
Excel Formula:
=if(a3="","",COUNTIF(table1[RefNo.],A3))
Hi Fluff

Afternoon

I am really grateful, I must of followed the wrong rabbit hole is was seeing signs to use "<>" for count if but your formula is a lot better and just what I needed.

Thanks again and stay safe

The Leicester Fox
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,986
Messages
6,122,611
Members
449,090
Latest member
vivek chauhan

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