Multiple IFERROR(Index(Match

Kmitchell

Active Member
Joined
Feb 27, 2007
Messages
361
Office Version
  1. 365
Platform
  1. Windows
Good Morning,

The below calculation works except when it hits if($D293 ="PCP"... its returning $0 and it should return a value. Does it have something to do with my parenthesis placement? It works if $D293 = "SPEC"

=IFERROR(IFERROR(IFERROR(IF($D293="SPEC",INDEX('Community FS'!$F$5:$F$14281,MATCH($M293,'Community FS'!$R$5:$R$14281,0))),IF($D293="SPEC",INDEX('Community FS'!$F$5:$F$14281,MATCH($N293,'Community FS'!$S$5:$S$14281,0)))),IF($D293="PCP",INDEX('Community FS'!$H$5:$H$14281,MATCH($M293,'Community FS'!$R$5:$R$14281,0)))),IF($D293="PCP",INDEX('Community FS'!$H$5:$H$14281,MATCH($N293,'Community FS'!$S$5:$S$14281,0))))*K293
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Maybe
Excel Formula:
=IF($D293="SPEC",
    IFERROR(INDEX('Community fs'!$F$5:$F$14281,MATCH($M293,'Community fs'!$R$5:$R$14281,0)),INDEX('Community fs'!$F$5:$F$14281,MATCH($N293,'Community fs'!$S$5:$S$14281,0))),
IF($D293="PCP",
    IFERROR(INDEX('Community fs'!$H$5:$H$14281,MATCH($M293,'Community fs'!$R$5:$R$14281,0)),INDEX('Community fs'!$H$5:$H$14281,MATCH($N293,'Community fs'!$S$5:$S$14281,0)))))*K293
 
Upvote 0
cant decide why i think this is wrong
=IFERROR

(IFERROR

(IFERROR

(IF($D293="SPEC",INDEX('Community FS'!$F$5:$F$14281,MATCH($M293,'Community FS'!$R$5:$R$14281,0)))

,IF($D293="SPEC",INDEX('Community FS'!$F$5:$F$14281,MATCH($N293,'Community FS'!$S$5:$S$14281,0))))

,IF($D293="PCP",INDEX('Community FS'!$H$5:$H$14281,MATCH($M293,'Community FS'!$R$5:$R$14281,0))))

,IF($D293="PCP",INDEX('Community FS'!$H$5:$H$14281,MATCH($N293,'Community FS'!$S$5:$S$14281,0))))*K293

but you are only testing SPEC and PCP
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,409
Messages
6,124,743
Members
449,186
Latest member
HBryant

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top