srizki
Well-known Member
- Joined
- Jan 14, 2003
- Messages
- 1,860
- Office Version
- 365
- Platform
- Windows
I have this mega formula, but it is just repetitive of IFS. I want to see if it can be more efficient?
=IF(OR($A14="4 NET_ INCOME ',$A14="ECCS Net Income") ,SUMIFS(PGL!K:K,PGL!$E:$E,"NET
INCOME (Excl Non-Ctrl)"),IF($A14="4_ NET INCOME_ INCL NC" ,SUMIFS(PGL!K:K,PGL!$E:$E,"NET
INCOME (Incl Non-
Ctrl)"),IF($A14="4_NI BEF SUB INCL NC",SUMIFS(PGL!K:K,PGL!$E:$E,"INCOME BEFORE SUBS
(Incl Non-Ctrl)"),IF($A14="4_NI_ BEF _TAX SUB",SUMIFS(PGL!K:K,PGL!$E:$E,"INCOME BEFORE TAX
& SUBS (Incl Non-Ctrl)"),IF($A14="41 INTRST INC",SUMIFS(PGL!K:K,PGLI$E:$E, "INTEREST
INCOME") ),IF($A14="41 NET INTRST INC" ,SUMIFS(PGL!K:K,PGLI$E:$E,"NET INTEREST
INCOME"),IF($A14="42 INTEREST _EXP",SUMIFS(PGL!K:K,PGLI$E:$E. "INTEREST
EXPENSE"),IF($A14="44 LOAN LOSS PRV",SUMIFS(PGL!K:K,PGL!$E:$E,"LOAN LOSSES
PROV/(REVERSAL)") ),IF($A14="45 NII NON INTINC",SUMIFS(PGL!K:K,PGLI$E :$E "NON-INT
INCOME"),IF($A14="5 NON INTR EXP",SUMIFS(PGL!K:K,PGL!$E:$E, "NON-INTEREST
EXPENSE"),IF($A14="7 INCOME_ _TAX",SUMIFS(PGL!K:K,PGL!$E:$E "INCOME
TAX"),IF($A14="70 INCOME SUBS" ,SUMIFS(PGL!K:K,PGL!$E:$E, "INCOME FROM
SUBS"),IF($C14<>"" ,SUMIFS(PGL!K:K,PGL!$F:$E!Compare (Rollup)'!$C14),SUMPRODUCT(--
(CONCATENATE("%,N",$A14)=PGL!$A$17.$A$ 1000),PGL!K$17:K$ 1000)+SUMPRODUCT(--
(CONCATENATE("%,R," ,$A14)=PGL !.$A$17:$A$1000),PGL!K$17:K$ 1O0O))))))))))))))
Best Regards
=IF(OR($A14="4 NET_ INCOME ',$A14="ECCS Net Income") ,SUMIFS(PGL!K:K,PGL!$E:$E,"NET
INCOME (Excl Non-Ctrl)"),IF($A14="4_ NET INCOME_ INCL NC" ,SUMIFS(PGL!K:K,PGL!$E:$E,"NET
INCOME (Incl Non-
Ctrl)"),IF($A14="4_NI BEF SUB INCL NC",SUMIFS(PGL!K:K,PGL!$E:$E,"INCOME BEFORE SUBS
(Incl Non-Ctrl)"),IF($A14="4_NI_ BEF _TAX SUB",SUMIFS(PGL!K:K,PGL!$E:$E,"INCOME BEFORE TAX
& SUBS (Incl Non-Ctrl)"),IF($A14="41 INTRST INC",SUMIFS(PGL!K:K,PGLI$E:$E, "INTEREST
INCOME") ),IF($A14="41 NET INTRST INC" ,SUMIFS(PGL!K:K,PGLI$E:$E,"NET INTEREST
INCOME"),IF($A14="42 INTEREST _EXP",SUMIFS(PGL!K:K,PGLI$E:$E. "INTEREST
EXPENSE"),IF($A14="44 LOAN LOSS PRV",SUMIFS(PGL!K:K,PGL!$E:$E,"LOAN LOSSES
PROV/(REVERSAL)") ),IF($A14="45 NII NON INTINC",SUMIFS(PGL!K:K,PGLI$E :$E "NON-INT
INCOME"),IF($A14="5 NON INTR EXP",SUMIFS(PGL!K:K,PGL!$E:$E, "NON-INTEREST
EXPENSE"),IF($A14="7 INCOME_ _TAX",SUMIFS(PGL!K:K,PGL!$E:$E "INCOME
TAX"),IF($A14="70 INCOME SUBS" ,SUMIFS(PGL!K:K,PGL!$E:$E, "INCOME FROM
SUBS"),IF($C14<>"" ,SUMIFS(PGL!K:K,PGL!$F:$E!Compare (Rollup)'!$C14),SUMPRODUCT(--
(CONCATENATE("%,N",$A14)=PGL!$A$17.$A$ 1000),PGL!K$17:K$ 1000)+SUMPRODUCT(--
(CONCATENATE("%,R," ,$A14)=PGL !.$A$17:$A$1000),PGL!K$17:K$ 1O0O))))))))))))))
Best Regards