ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Trying to count text for filtered column based on formula (https://www.excelbanter.com/excel-programming/337343-trying-count-text-filtered-column-based-formula.html)

dtg_denver

Trying to count text for filtered column based on formula
 
I'm using the formula below to count records based that are 0 . I need to do
the same in a column that has text. Need to count "Cash". Get error

=SUMPRODUCT(SUBTOTAL(3,OFFSET(date_new,ROW(date_ne w)-MIN(ROW(date_new)),,1)),--(date_new,"cash:))



Rowan[_2_]

Trying to count text for filtered column based on formula
 
try:

=SUMPRODUCT(--(SUBTOTAL(3,OFFSET(INDEX(date_new,1,1),ROW(date_ne w)-ROW(INDEX(date_new,1,1)),0))=1),--(date_new="cash"))

hope this helps
Rowan

"dtg_denver" wrote:

I'm using the formula below to count records based that are 0 . I need to do
the same in a column that has text. Need to count "Cash". Get error

=SUMPRODUCT(SUBTOTAL(3,OFFSET(date_new,ROW(date_ne w)-MIN(ROW(date_new)),,1)),--(date_new,"cash:))



dtg_denver

Trying to count text for filtered column based on formula
 
Rowan,
Thanks. That worked great.

"Rowan" wrote:

try:

=SUMPRODUCT(--(SUBTOTAL(3,OFFSET(INDEX(date_new,1,1),ROW(date_ne w)-ROW(INDEX(date_new,1,1)),0))=1),--(date_new="cash"))

hope this helps
Rowan

"dtg_denver" wrote:

I'm using the formula below to count records based that are 0 . I need to do
the same in a column that has text. Need to count "Cash". Get error

=SUMPRODUCT(SUBTOTAL(3,OFFSET(date_new,ROW(date_ne w)-MIN(ROW(date_new)),,1)),--(date_new,"cash:))



Rowan[_2_]

Trying to count text for filtered column based on formula
 
You're welcome. More detail at

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

"dtg_denver" wrote:

Rowan,
Thanks. That worked great.

"Rowan" wrote:

try:

=SUMPRODUCT(--(SUBTOTAL(3,OFFSET(INDEX(date_new,1,1),ROW(date_ne w)-ROW(INDEX(date_new,1,1)),0))=1),--(date_new="cash"))

hope this helps
Rowan

"dtg_denver" wrote:

I'm using the formula below to count records based that are 0 . I need to do
the same in a column that has text. Need to count "Cash". Get error

=SUMPRODUCT(SUBTOTAL(3,OFFSET(date_new,ROW(date_ne w)-MIN(ROW(date_new)),,1)),--(date_new,"cash:))




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

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