Thread: [Solved] Countifs and Sumproduct
View Single Post
 
Old 11-08-2012, 08:19 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

It might make things easier if you could attach the workbook concerned, with some sample data (delete anything sensitive).

FWIW, it seems to me that, as coded, your formula couldn't possibly work, as:
=countifs(I4:I80,"=F", I4:I80,"=sumproduct(--(colorindex(I4:I80)=colorindex(I87)))")
says the third expression has to be, not the calculated result, but the literal string:
"=sumproduct(--(colorindex(I4:I80)=colorindex(I87)))"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote