Ok, I have used sumproduct before with a lot of success but today it is not working and I cannot work out why.
I have two columns I want to count in SHEET A
I want the sum product if column M= TRUE and column BB= Case Control
I am counting on a separate sheet so the forumula I have used is
=SUMPRODUCT(--(A!M2:M2500="TRUE"), --(A!BB2:BB2500="Case Control"))
It just returns a value of 0 which I know to be false.
I may have isolated the problem. The COUNTIF formula will count the number of TRUE in column M. It will not however count the number of Case Controls in Column BB. The actual sheet has been an export from an access database. When I go into the cell of Column BB, there is a apostrophe before each 'Case Control or 'Cohort. However when I add this apostrophe to the formula I get an error. I have tried finding and replace to delete the apostrophe but it is not found by excel.
There are some blank cells in the BB column but that should not make difference should it?
Been at this for hours and getting really frustrated, help would be really appreciated.
Cheers
Steve
Bookmarks