Hi
A column contains a header which is a named Cell.
I want to return number of Items in the entire worksheet column (the column containing the named Cell).
I'm using the count to create dynamic ranges, it's all automated and needs to be reliable...
CountA is not returning correct answers, it's including some cells with no content.
(unless I Select them first and hit delete, yes they are empty before I delete them, weird -move on),
SUM Product works reliably so this is my workaround, I need this to work.
=SUMPRODUCT(--('Sheet Name'!BJ:BJ<>""))
works
=SUMPRODUCT(--(INDIRECT("BJ:BJ")<>""))
works
=SUMPRODUCT(--(INDIRECT("'Sheet Name'!BJ:BJ")<>""))
works
=SUBSTITUTE(ADDRESS(1,COLUMN('Sheet Name'!Header_aNamedCell),4),"1","")&":"&SUBSTITUTE(ADDRESS(1,COLUMN('Sheet Name'!Header_aNamedCell),4),"1","")
works
Returns the needed Address Correctly "BJ:BJ"
=SUMPRODUCT(--(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(Header_aNamedCell),4),"1","")&":"&SUBSTITUTE(ADDRESS(1,COLUMN(Header_aNamedCell),4),"1",""))<>""))
fails
#Value! Error
=SUMPRODUCT(--(INDIRECT("'Sheet Name'!"&SUBSTITUTE(ADDRESS(1,COLUMN(Header_aNamedCell),4),"1","")&":"&SUBSTITUTE(ADDRESS(1,COLUMN(Header_aNamedCell),4),"1",""))<>""))
fails
#Value! Error
I need the last 2 items to work and can't work it out..
All help appreciated, thanks in advance..
A column contains a header which is a named Cell.
I want to return number of Items in the entire worksheet column (the column containing the named Cell).
I'm using the count to create dynamic ranges, it's all automated and needs to be reliable...
CountA is not returning correct answers, it's including some cells with no content.
(unless I Select them first and hit delete, yes they are empty before I delete them, weird -move on),
SUM Product works reliably so this is my workaround, I need this to work.
=SUMPRODUCT(--('Sheet Name'!BJ:BJ<>""))
works
=SUMPRODUCT(--(INDIRECT("BJ:BJ")<>""))
works
=SUMPRODUCT(--(INDIRECT("'Sheet Name'!BJ:BJ")<>""))
works
=SUBSTITUTE(ADDRESS(1,COLUMN('Sheet Name'!Header_aNamedCell),4),"1","")&":"&SUBSTITUTE(ADDRESS(1,COLUMN('Sheet Name'!Header_aNamedCell),4),"1","")
works
Returns the needed Address Correctly "BJ:BJ"
=SUMPRODUCT(--(INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(Header_aNamedCell),4),"1","")&":"&SUBSTITUTE(ADDRESS(1,COLUMN(Header_aNamedCell),4),"1",""))<>""))
fails
#Value! Error
=SUMPRODUCT(--(INDIRECT("'Sheet Name'!"&SUBSTITUTE(ADDRESS(1,COLUMN(Header_aNamedCell),4),"1","")&":"&SUBSTITUTE(ADDRESS(1,COLUMN(Header_aNamedCell),4),"1",""))<>""))
fails
#Value! Error
I need the last 2 items to work and can't work it out..
All help appreciated, thanks in advance..