gtd526
Well-known Member
- Joined
- Jul 30, 2013
- Messages
- 696
- Office Version
- 2019
- Platform
- Windows
Hello,
I have a nested IF formula, if a cell contains an error, how can I ignore only that cell (and continue calculating the remaining cells)?
Column H:H contains the nestedIF statement. The error is AJ.
Thank you.
I have a nested IF formula, if a cell contains an error, how can I ignore only that cell (and continue calculating the remaining cells)?
Column H:H contains the nestedIF statement. The error is AJ.
Thank you.
NBA.xlsm | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | G | H | I | AD | AE | AF | AG | AH | AI | AJ | AK | AL | AM | ||||||||||||||||||||||||||
2 | 5/3/21 | ME | ALL W% | Bet W% | Avg | Ind % | ATS | vs All | Away vs | ||||||||||||||||||||||||||||||||
3 | Teams | ATS | 'W-L | Indicator | Pick | ATS | Favs | Inj's | Pts | G:G | Range | ATS | Home | Strk | |||||||||||||||||||||||||||
4 | ORL | 2 | 39% | 8 | 358 | 25% | 39.0% | 50.0% | W1 | ||||||||||||||||||||||||||||||||
5 | DET | -2 | R:T-M | DET | 52% | 100% | 7 | 558 | 72.2% | 100% | 52.0% | 57.0% | L2 | ||||||||||||||||||||||||||||
6 | IND | 4 | U:V-Y | 47% | 100% | 6 | 583 | 49.8% | 0% | 47.0% | 55.0% | W1 | |||||||||||||||||||||||||||||
7 | WAS | -4 | R:T-M | ##### | ###### | WAS | 65% | 100% | 2 | 243 | 72.2% | #VALUE! | 65.0% | 52.0% | L1 | ||||||||||||||||||||||||||
8 | GS | 2 | GS | 53% | 40% | 5 | 397 | 75% | 53.0% | 38.0% | W1 | ||||||||||||||||||||||||||||||
9 | NO | -2 | 55% | 33% | 4 | 430 | 17% | 55.0% | 46.0% | W2 | |||||||||||||||||||||||||||||||
Favs |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A2 | A2 | =TODAY() |
G4,G8,G6 | G4 | =I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AF$1,$G4<>""),$A4,""),"") |
I4:I9 | I4 | =IF($H4<>"",$B4,"") |
AD4 | AD4 | =IFS($AC4>$AC5,$A4,$AC4<$AC5,"",AND($AC4=0,$AC5=0),"",$AC4=$AC5,"Tie") |
AE4:AE9 | AE4 | =IFERROR(VLOOKUP($A4,$BU$6:$BX$35,4,0),"") |
AF4:AF9 | AF4 | =IFERROR(VLOOKUP(A4,'C:\Users\Greg\Documents\Sports-Wagering\[Wagers.xlsm]NBA'!$N$9:$Q$42,4,0),"") |
AG4:AG9 | AG4 | =IFERROR(INDEX(Injuries!$2:$2,MATCH($A$4:$A$33,Injuries!$1:$1,0)),"") |
AH4:AH9 | AH4 | =IFERROR(INDEX(Injuries!$B$16:$EQ$16,MATCH($A4,Injuries!$B$1:$EQ$1,0)+4),"") |
AI4:AI9 | AI4 | =IF($G4="","",SUMIFS($AR$7:$BL$142,$AN$5:$BH$140,$G4)) |
AJ4:AJ9 | AJ4 | =IF($B4>=1,ROUND(VLOOKUP($A4,$DU$6:$DY$35,5,0),2),IF(AND($B4<=-1,$B4>=-4.5),ROUND(VLOOKUP($A4,$DH$6:$DL$35,5,0),2),IF(AND($B4<=-5,$B4>=-9.5),ROUND(VLOOKUP($A4,$CU$6:$CY$35,5,0),2),IF($B4<=-10,ROUND(VLOOKUP($A4,$CH$6:$CL$35,5,0),2),"")))) |
AK4:AK9 | AK4 | =IFERROR(ROUND(VLOOKUP($A4,$BU$6:$BX$35,4,0),2),"") |
AL4:AL9 | AL4 | =IFERROR(IF(MOD(ROW(),2)=0,ROUND(VLOOKUP($A4,TeamRankings!$DY$36:$EB$65,4,0),2),ROUND(VLOOKUP($A4,TeamRankings!$DY$3:$EB$32,4,0),2)),"") |
AM4:AM9 | AM4 | =IFERROR(VLOOKUP($A4,TeamRankings!$AT$3:$BC$33,10,0),"") |
G5,G9,G7 | G5 | =IF(AND($R5>$R4,$S5>$S4,$T5>$T4,$U5>$U4,$V5>$V4,$W5>$W4,$X5>$X4,$Y5>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