Help with nested IF with text data

Executioner

Board Regular
Joined
Sep 26, 2005
Messages
166
I'm having an issue getting the correct format for a nested IF statement.

In Cell C are text values such as:
EDD2059308
18676
N1878
EDD2067899
15678
12487
N0899

In H2, I have the following nested IF statement:
=IF(LEFT(C2,3)="EDD",1,0,IF(LEFT(C2,1)="N",3,0))))

If it's EDD it should return a value of 1
If it's a number it should return a value of 0
If its N it should return a value of 3

The error I get "you've entered too many arguments for this function"

I'm using excel 2003.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
=IF(LEFT(C2,3)="EDD",1,IF(LEFT(C2)="N",3,0))

Thanks. Works great. So it looks like I was close but my value for determining false should have been at the end?
 
Upvote 0
Executioner;2859713So it looks like I was close but my value for determining false should have been at the end?[/QUOTE said:
Yep.

=IF(Test,Value_if_True,IF(Test,Value_if_True,Value_if_False))
 
Upvote 0

Forum statistics

Threads
1,224,538
Messages
6,179,412
Members
452,912
Latest member
alicemil

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