ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Befuddled by Count blank cells Formula! (https://www.excelbanter.com/excel-worksheet-functions/144479-befuddled-count-blank-cells-formula.html)

[email protected]

Befuddled by Count blank cells Formula!
 
Hi all,

Can anybody please help... i'm really struggling here!

I need to count the number of blank cells (in a row) that occurs
between 2 words S and C. I have the formula below and i cant get the
damn thing to work!


=SUMPRODUCT(--(G5:AX5="S"),--(G5:AX5="C"))


Any help GREATLY appreciated..

Cheers

P :-)


Peo Sjoblom

Befuddled by Count blank cells Formula!
 
Try

=COUNTBLANK(INDEX(G5:AX5,MATCH("S",G5:AX5,0)):INDE X(G5:AX5,MATCH("C",G5:AX5,0)))



--
Regards,

Peo Sjoblom





wrote in message
oups.com...
Hi all,

Can anybody please help... i'm really struggling here!

I need to count the number of blank cells (in a row) that occurs
between 2 words S and C. I have the formula below and i cant get the
damn thing to work!


=SUMPRODUCT(--(G5:AX5="S"),--(G5:AX5="C"))


Any help GREATLY appreciated..

Cheers

P :-)




[email protected]

Befuddled by Count blank cells Formula!
 
Peo,

You are a super star - worked liked a treat - many many many
thanks :-)

Cheers

P



All times are GMT +1. The time now is 10:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com