Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Formula help - Sum results Pass or Fail

2,717 views
Skip to first unread message

Ron Coderre

unread,
Mar 4, 2008, 3:02:39 PM3/4/08
to
Try this:

=IF(SUM(J8:R8)<=8,"Fail","Pass")

Is that something you can work with?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)


"Nadine" <Nad...@discussions.microsoft.com> wrote in message
news:843C581C-9778-4AD4...@microsoft.com...
> Need help with a formula.
>
> Want to sum the total of a range of cells, then if it is less then a
> specific number the value should be "Fail", if greater then that number
> then
> value should be "Pass"
>
> I've used the And function True or False results. But they want the value
> in the cells to say either Pass or Fail.
>
> current formula: =AND(SUM(J8:R8)>0,SUM(J8:R8)<8)
>
> Thanks


Nadine

unread,
Mar 4, 2008, 3:48:06 PM3/4/08
to
Tried that originally, but at the bottom of the column want a count for all
that say Fail
Problem is when copy the formula down the column it sets all to Fail because
there isn't any data entered yet, so the count value is wrong. As data will
be entered daily, but there will be blank rows until the entire month is
filled in. But need the count to reflect current count for any day that
they look at it. So if the entire column says Fail, the count will be wrong.

Not too sure how to work around that unless I put in default values in all
the rows and columns, not wanting to do that as it will throw off the count
for all the other columns. And not giving true totals.
Is there a way to leave the pass/fail value blank until it has numbers in
the cells to sum?

Ron Coderre

unread,
Mar 4, 2008, 3:52:43 PM3/4/08
to
Perhaps this?
=IF(COUNT(J8:R8),IF(SUM(J8:R8)<=8,"Fail","Pass"),"no data")

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Nadine" <Nad...@discussions.microsoft.com> wrote in message

news:C8449109-FCF1-43D7...@microsoft.com...

Nadine

unread,
Mar 4, 2008, 4:08:02 PM3/4/08
to
YES :-) that did the trick perfectly. Thank you thank you.. Been at this
for awhile now. I'll be adding this to my list of formula tips.

Ron Coderre

unread,
Mar 4, 2008, 4:25:30 PM3/4/08
to
I'm so glad I could help, Nadine.

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Nadine" <Nad...@discussions.microsoft.com> wrote in message

news:64B1CC8B-127E-4986...@microsoft.com...

Gord Dibben

unread,
Mar 4, 2008, 5:11:55 PM3/4/08
to
For a blank look.

=IF(COUNT(J8:R8),IF(SUM(J8:R8)<=8,"Fail","Pass"),"")

Assumes the "Fail", "Pass" formulas are in column A

To count the occurences of Pass or Fail

=COUNTIF(A:A,"Fail")

=COUNTIF(A:A,"Pass")


Gord Dibben MS Excel MVP

On Tue, 4 Mar 2008 12:48:06 -0800, Nadine <Nad...@discussions.microsoft.com>
wrote:

Vitaliy Kozachuk

unread,
Jan 14, 2013, 11:07:23 AM1/14/13
to
What whould be a proper way to make a formula sum a total of pass/ fail results.
Let say i have Total Pass: on C2
and line of pass/fail on b14:b573
Thank you

maepa...@gmail.com

unread,
Aug 6, 2013, 5:20:22 AM8/6/13
to
this one works for school based users

Subject order: Home Lang, Sec Add Lang, Life Orient, Math/Mlit, PHS/ACC/HIST, Bust/Life Sc, Geog/ Econ. use excel.
=IF(AND(D2>39,E2>29,F2>39,OR(G2>29,OR(OR(J2>29,L2>29,K2>29),OR(I2>29,M2>29),OR(N2>29,H2>29)))),"PASS","FAIL")...

test with various marks according to the pass requirements. Hope this will be helpful

0 new messages