Formula Error When Sorting

C

carl

I have this formula:

=(SUMPRODUCT(--($E$43:$E$30001=549);--($J$43:$J$30001=$N2);--($G$43:$G
$30001="SailDirectedOrderAcceptation");--(LEFT($C$43:$C$30001;2)=C$5);
$A$43:$A$30001))/(SUMPRODUCT(--(MID($F$43:$F$30001;2;3)="549");--($J
$43:$J$30001=$N2);--($G$43:$G$30001="SailDirectedOrderNotice");--
(LEFT($C$43:$C$30001;2)=C$5);$A$43:$A$30001))

When I sort my data in Col N, I get a #REF! Error


=(SUMPRODUCT(--($E$43:$E$30001=549);--($J$43:$J$30001=#REF!);--($G
$43:$G$30001="SailDirectedOrderAcceptation");--(LEFT($C$43:$C
$30001;2)=C$5);$A$43:$A$30001))/(SUMPRODUCT(--(MID($F$43:$F
$30001;2;3)="549");--($J$43:$J$30001=#REF!);--($G$43:$G
$30001="SailDirectedOrderNotice");--(LEFT($C$43:$C$30001;2)=C$5);$A
$43:$A$30001))

Is there any way to avoid this ?
 
D

Don Guillett

I have this formula:

=(SUMPRODUCT(--($E$43:$E$30001=549);--($J$43:$J$30001=$N2);--($G$43:$G
$30001="SailDirectedOrderAcceptation");--(LEFT($C$43:$C$30001;2)=C$5);
$A$43:$A$30001))/(SUMPRODUCT(--(MID($F$43:$F$30001;2;3)="549");--($J
$43:$J$30001=$N2);--($G$43:$G$30001="SailDirectedOrderNotice");--
(LEFT($C$43:$C$30001;2)=C$5);$A$43:$A$30001))

When I sort my data in Col N, I get a #REF! Error

=(SUMPRODUCT(--($E$43:$E$30001=549);--($J$43:$J$30001=#REF!);--($G
$43:$G$30001="SailDirectedOrderAcceptation");--(LEFT($C$43:$C
$30001;2)=C$5);$A$43:$A$30001))/(SUMPRODUCT(--(MID($F$43:$F
$30001;2;3)="549");--($J$43:$J$30001=#REF!);--($G$43:$G
$30001="SailDirectedOrderNotice");--(LEFT($C$43:$C$30001;2)=C$5);$A
$43:$A$30001))

Is there any way to avoid this ?
Perhaps $N$2
 

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