Hi, For each product I have the date it was checked, and a value for if there
are any imperfections, I want a formula that works out how many products
there were with imperfections in any month. Products with any imperfections
have a 1 in that box, each colum represents a product checked.

Month May May May June
Product has imperfection? 1 1 0 1

So I want my formula to return that May has 2 wrong products, June has 1...
I thought it was going to be a simple countif, but i've tried =COUNTIF(B2:E2,
B1:E1="May") and it's just returning a blank! Please help!! I've tried so
many variations of formulas and not getting anywhere!
Thanks
Ceri

Re: Sum of values in row if they also correspond to a month? by Pete_UK

Pete_UK
Fri May 09 03:26:32 CDT 2008

Try it this way:

=3DSUMIF(B$1:E$1,"May",B2:E2)

Hope this helps.

Pete

On May 9, 9:13=A0am, ceri_m <ce...@discussions.microsoft.com> wrote:
> Hi, For each product I have the date it was checked, and a value for if th=
ere
> are any imperfections, I want a formula that works out how many products
> there were with imperfections in any month. Products with any imperfection=
s
> have a 1 in that box, each colum represents a product checked.
>
> Month =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
May =A0 =A0 May =A0 =A0 May =A0 =A0 June
> Product has imperfection? =A0 =A0 =A0 1 =A0 =A0 =A0 1 =A0 =A0 =A0 0 =A0 =
=A0 =A0 1
>
> So I want my formula to return that May has 2 wrong products, June has 1..=
.
> I thought it was going to be a simple countif, but i've tried =3DCOUNTIF(B=
2:E2,
> B1:E1=3D"May") and it's just returning a blank! Please help!! I've tried s=
o
> many variations of formulas and not getting anywhere!
> Thanks
> Ceri