Nested IF Statement Resulting in #NAME?

davisshannon

New Member
Joined
Jun 20, 2018
Messages
16
I have a formula that is partially working. There are multiple IF statements nested, and the first two actually perform correctly. Once I get into a couple of layers it starts to result in #NAME?. When I click on the various statements within Excel it seems to work through the logic correct, so I'm at a loss as to why this isn't working. Here is my formula if anyone can pick out where I may have a syntax error. I've highlighted the level where it starts breaking.

=IF($D13>0,
IF($E13="yes",
HLOOKUP($L13,VGW_WAN,2,TRUE),
IF(($F13="no"),
IF(($I13=“no”),
IF($H13="no",
HLOOKUP($L13,SDI_WAN,5,TRUE),
HLOOKUP($L13,SDI_WAN,2,TRUE)),
HLOOKUP($L13,SDI_WAN,3,TRUE)),
HLOOKUP($L13,CX_WAN,2,TRUE)
)
),
""
)

Thanks
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
I've cleaned up my parentheses a bit, but still hitting the same error. New code here:

=IF($D13>0,
IF($E13="yes",
HLOOKUP($L13,VGW_WAN,2,TRUE),
IF($F13="no",
IF($I13=“no”,
IF($H13="no",
HLOOKUP($L13,SDI_WAN,5,TRUE),
HLOOKUP($L13,SDI_WAN,2,TRUE)),
HLOOKUP($L13,SDI_WAN,3,TRUE)),
HLOOKUP($L13,CX_WAN,2,TRUE))),
"")
 
Upvote 0
Just picked up my error once I pasted the code here. My "" in line 5 weren't correct for some reason. I retyped them and they appeared correctly now, and the code works.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,207
Members
452,618
Latest member
Tam84

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