Count balnks except ones in certain columns

blossomthe2nd

Active Member
Joined
Oct 11, 2010
Messages
450
Hi Guys

Im trying to write a formula that coounts blanks in a row, except if its blank in the Column V W X

HTML:
=SUM(COUNTBLANK(A3:AE3))+(IF(ISBLANK(V3),-1,0)-(IF(ISBLANK(W3),-1,0)-(IF(ISBLANK(X3),-1,0))))

I have tried the following but its not working very well, plus its kinda cumbersome , can anyone help please ?

Thanks
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
=sum(if(isblank(a3:ae3),1,0))-sum(if(isblank(v3:x3),1,0))
(confirm with ctrl+shift+enter)
 
Upvote 0
Hi guys

Thanks for that , I should have clarified , I will have additional columns that I would not like to count ( they wont all be in a sequence)

So if blank between A : AE unless the blanks are in V W X S or U ?

Is there a way to do multiple ifs on this ?

Thanks
 
Upvote 0
Modifying Neil's suggestion slightly, array confirm with Shift Ctrl Enter

=SUM(--ISBLANK(A3:AE3),-ISBLANK(S3),-ISBLANK(U3:X3))

edit:-

alternatively, if the columns to ignore change, insert a new row at row1 and enter 1 at the top of each column to be excluded.

Hide the new row if desired.

Use the formula

=SUM(IF($A$1:$AE$1,0,--ISBLANK(A4:AE4))) Array confirmed with shift ctrl enter.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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