works for me
=COUNTA(B1:INDIRECT("B"&A1))
missing a bracket - but excel should have asked to autocorrect that for you
works for me
=COUNTA(B1:INDIRECT("B"&A1))
missing a bracket - but excel should have asked to autocorrect that for you
Last edited by etaf; 10-27-2022 at 03:27 PM.
Wayne
if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here
If you have a solution to your thread - Please mark your thread solved do the following: >
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
Thanks for the prompt reply, i had effectively over simplified my question without checking, apologies.
I'm effectively trying to Count unique values in a range with COUNTIF
Works
=SUMPRODUCT(1/COUNTIF('Sheet1 '!B1:B10,'Sheet1 '!B1:B10)). - the parts in bold i'd like to dynamically generate from cell A1.
Doesn't Work
=SUMPRODUCT(1/COUNTIF('Sheet1 '!B1:INDIRECT("B"&A1),'Sheet1 '!B1:INDIRECT("B"&A1)))
If I do this without the reference to another sheet i.e. the data and the total on the same sheet it works.
Works
=SUMPRODUCT(1/COUNTIF(B1: INDIRECT("B"&A1), COUNTIF(B1:INDIRECT("B"&A1))))
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks