Function Help

K

Karen

I have a log that keeps track of rejects.
In one row the word "Reject" can appear in 3 columns
(Column J, M or P)of any combination.
Example: Row 5 can have "reject" in column P.
Row 6 can have "reject" in column J or M.
Row 7 can have "reject" in column J, M & P.
If "reject" appears in any one of these columns, I want
to return the value of 1. So, at the bottom of the
report, I want to count each time the word "reject"
appears in that row. Even though it appears once, twice
or three times, I want it counted once.

Any suggestions?
Thank you and Happy Holidays
 
F

Frank Kabel

Hi
one way:
=SUMPRODUCT(--((J1:J100="reject")+(M1:M100="reject")+(P1:p100="reject)>
0))
 
J

JE McGimpsey

One way:

Assume your data goes from row 2 to row 51 (i.e, 50 rows):

=50-SUMPRODUCT(--(J2:J51<>"Reject"),--(M2:M51<>"Reject"),
--(P2:p51<>"Reject"))
 
G

Guest

If there can be no reject in K, L,N, O you can use

=(COUNTIF(J7:p7,"reject")>0)*1

if there can be reject in the other columns

=(SUMPRODUCT((MOD(COLUMN(J7:p7),3)=1)*(J7:p7="reject"))>0)*1



Regards,

Peo Sjoblom
 
K

Karen

I used your formula and adjusted the it with my ranges
and I'm getting the error #VALUE! Any suggestions?
Would it be easier to say that the range is J3:p57
instead of using the individual columns?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top