ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   COUNT and OFFSET (https://www.excelbanter.com/excel-worksheet-functions/88245-count-offset.html)

edwardpestian

COUNT and OFFSET
 

I have a range of Data: F8:CT8

I need to count the 1st column in this data range with there being 3
columns.

I just need to count if there is data in the cell excluding zeros.

In other words F8 F9 F10 F11 F12 F13
12 17


I need to know if there is data in f8 and f11 and so forthe...

Expect result is 2

Thanks in advance.

Regards,

EP


--
edwardpestian
------------------------------------------------------------------------
edwardpestian's Profile: http://www.excelforum.com/member.php...o&userid=33809
View this thread: http://www.excelforum.com/showthread...hreadid=541381


Biff

COUNT and OFFSET
 
Hi!

Try this:

=SUMPRODUCT(--(MOD(ROW(F8:F100),3)=2),--(F8:F100<0),--(F8:F100<""))

Adjust for the end of the range.

If you might insert new rows before the start of the range:

=SUMPRODUCT(--(MOD(ROW(F8:F100)-ROW(F8),3)=0),--(F8:F100<0),--(F8:F100<""))

Biff

"edwardpestian"
wrote in message
news:edwardpestian.27o6yo_1147396205.3949@excelfor um-nospam.com...

I have a range of Data: F8:CT8

I need to count the 1st column in this data range with there being 3
columns.

I just need to count if there is data in the cell excluding zeros.

In other words F8 F9 F10 F11 F12 F13
12 17


I need to know if there is data in f8 and f11 and so forthe...

Expect result is 2

Thanks in advance.

Regards,

EP


--
edwardpestian
------------------------------------------------------------------------
edwardpestian's Profile:
http://www.excelforum.com/member.php...o&userid=33809
View this thread: http://www.excelforum.com/showthread...hreadid=541381




edwardpestian

COUNT and OFFSET
 

Changed ROW to COLUMN, and the Range to F8:CT8, and it worked like a
charm.

Thanks for the help.

Regards


--
edwardpestian
------------------------------------------------------------------------
edwardpestian's Profile: http://www.excelforum.com/member.php...o&userid=33809
View this thread: http://www.excelforum.com/showthread...hreadid=541381


Biff

COUNT and OFFSET
 
You're welcome. Thanks for the feedback!

Biff

"edwardpestian"
wrote in message
news:edwardpestian.27oobm_1147418701.949@excelforu m-nospam.com...

Changed ROW to COLUMN, and the Range to F8:CT8, and it worked like a
charm.

Thanks for the help.

Regards


--
edwardpestian
------------------------------------------------------------------------
edwardpestian's Profile:
http://www.excelforum.com/member.php...o&userid=33809
View this thread: http://www.excelforum.com/showthread...hreadid=541381





All times are GMT +1. The time now is 01:33 AM.

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