View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic Domenic is offline
external usenet poster
 
Posts: 256
Default Summurising to Depots

Try...

=SUM(IF(ISNUMBER(MATCH(Kilometres!$C$6:$C$2000,{"S G220","SG242"},0)),IF(I
SNUMBER(MATCH(Kilometres!$D$6:$D$2000,{"SHORE DEPOT","OREWA
DEPOT"},0)),Kilometres!$G$6:$G$2000)))

....confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

In article ,
Steved wrote:

Hello from Steved

Below is my attempt and it does what it is designed to do.

Question is there away please to Shorten the formula, Thanks.

=SUM(IF(Kilometres!$C$6:$C$2000={"SG220","SG242"}, IF(Kilometres!$D$6:$D$2000="
SHORE
DEPOT",Kilometres!$G$6:$G$2000,0),0))+SUM(IF(Kilom etres!$C$6:$C$2000={"SG220",
"SG242"},IF(Kilometres!$D$6:$D$2000="OREWA
DEPOT",Kilometres!$G$6:$G$2000,0),0))