Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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)) |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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)) |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thankyou.
"Domenic" wrote: 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)) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|