Hi Haseeb, I of course haven't seen every answer to every question on this forum, but your formula solution to finding the number of groups is one of the best I've seen. Regards - Dave.
Date: Thu, 21 Jul 2011 09:11:12 -0700 From: haseeb.avarak...@gmail.com To: excel-macros@googlegroups.com Subject: Re: RE: $$Excel-Macros$$ adding adjacent (contagious) cells only Thank you Dave for the last cell point & the correction. I didn't notice the last column being Yes. I think Column U don't have to be blank, because we have an additional column (A) without Yes or No, so If we change the formula without including column U, like, =SUMPRODUCT(--(B2:T2="Yes"),--(A2:S2<>"Yes")) Or, =COUNTIFS(B2:T2,"Yes",A2:S2,"<>Yes") Regards, Haseeb -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel