Formula in google sheet >>>
=IF(G4="";"";IF(M4="";"";IF(S4="";"";IF(S4=“normal”;vlookup(F4;
sort(filter(‘პრაისი’!$C$3:$G;‘პრაისი’!$B$3:$B = M4); 2; true); 3;
true);IF(S4=“sale”;vlookup(F4;
sort(filter(‘პრაისი’!$C$3:$G;‘პრაისი’!$B$3:$B = M4); 2; true)...