#NAME? Error

Chris72

Board Regular
Joined
Jun 11, 2007
Messages
115
Hi,

I have the following as part of a larger nested IF statement:

IF(AND(GU31='Drop Downs'!E5,OR(GZ31=A2,NOT(LEN(SUBSTITUTE(GZ31," ",""))=11),NOT(ISNUMBER(SUBSTITUTE(GZ31," ","")+0)))),A8&" - "&GZ27&" - MUST BE 11 DIGITS",

Where:
GU31='Drop Downs'!E5 -> GU31="Yes"
GZ31=A2 -> GZ31="No Input"

GZ31 can be either A2 or a Number... when seperated from the nested IF as above the formula works perfectly... but when added to the Nested If statement it returns #NAME?

Is there a solution?

Chris...
 
Last edited:

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
I would suggest posting the formula that Does Not work, not a part of it that does...
 

Chris72

Board Regular
Joined
Jun 11, 2007
Messages
115
Johno,

Thank you... I did an Error Check and the ERROR kept pointing at that particular line of the equation so I kept referring to it again and again... When I started to break down the equation line by line without using Error checking I found the bracket missing error.

Thank you

Chris...
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,871
Messages
5,834,150
Members
430,261
Latest member
quangtinator

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
Top