Please, I have 5 types of cooffe to be sold through many stores. Sell any 2 or more packages and delivery time about 30 days, then breakeven. In Excel, I have one formula:
=IF(IF(F287=G287,1,0)+IF(G287=H287,1,0)+IF(H287=F287,1,0)>=1,"", IF(AND(COUNTIF(F286:AP286,F287)>0,COUNTIF(F286:AP286,G287)>0,COUNTIF(F286:AP286,H287)>0),A287-A286&"-t", IF(AND(COUNTIF(F285:AP285,F287)>0,COUNTIF(F285:AP285,G287)>0,COUNTIF(F285:AP285,H287)>0),A287-A285&"-t", ………………………………………………………………………………………………………………………………………………………………,A287-A227&"-t,"")))…)))…))))))))))))))))& IF(IF(F287=G287,1,0)+IF(G287=H287,1,0)+IF(H287=F287,1,0)>=1,"", IF(IF(COUNTIF(F286:AP286,F287)>0,1,0)+IF(COUNTIF(F286:AP286,G287)>0,1,0)+IF(COUNTIF(F286:AP286,H287)>0,1,0)=2,A287-A286&"-v", IF(IF(COUNTIF(F285:AP285,F287)>0,1,0)+IF(COUNTIF(F285:AP285,G287)>0,1,0)+IF(COUNTIF(F285:AP285,H287)>0,1,0)=2,A287-A285&"-v", ………………………………………………………………………………………………………………………………………………………………,A287-A227&"-,“v”)))…)))…))))))))))))))))& IF(IF(F287<>G287,1,0)+IF(G287<>H287,1,0)+IF(H287<>F287,1,0)=2,"", IF(AND(COUNTIF(F286:AP286,F287)>0,COUNTIF(F286:AP286,G287)>0,COUNTIF(F286:AP286,H287)>0),A287-A286&"-n", IF(AND(COUNTIF(F285:AP285,F287)>0,COUNTIF(F285:AP285,G287)>0,COUNTIF(F285:AP285,H287)>0),A287-A285&"-n", ………………………………………………………………………………………………………………………………………………………………,A287-A227&"-,“n”)))…)))…))))))))))))))))
I want to shortcut that formula, or change with a shorter. Help me, please! Very thanks!