Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Nesting IF statements

I have a series of numbers representing sixteen bit binary:

0010110110001001
0011111110001001
0100000100010001
0100010011010000
In the next column I have a formula: =IF(BIN2DEC(MID(A1,2,1))=1, "NET",
"OpID")

The contents of the third column would depend on the result of this formula
such that if the second contains "OpID" this one will contain "Private".
However, if the second column value is "NET" then I need to look at
BIN2DEC(MID(A1,3,2))) and make the third column value "National" if this
evaluates to 1 or 2 but "Private" if any other value is returned.

Is it possible to nest If statements to do this or would I have to evaluate
it in separate steps?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Nesting IF statements

=IF(B1="NET",IF(OR(BIN2DEC(MID(A1,3,2))=1,BIN2DEC( MID(A1,3,2))=2),"National"
,"Private"),"Private")

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

wrote in message
...
I have a series of numbers representing sixteen bit binary:

0010110110001001
0011111110001001
0100000100010001
0100010011010000
In the next column I have a formula: =IF(BIN2DEC(MID(A1,2,1))=1, "NET",
"OpID")

The contents of the third column would depend on the result of this

formula
such that if the second contains "OpID" this one will contain "Private".
However, if the second column value is "NET" then I need to look at
BIN2DEC(MID(A1,3,2))) and make the third column value "National" if this
evaluates to 1 or 2 but "Private" if any other value is returned.

Is it possible to nest If statements to do this or would I have to

evaluate
it in separate steps?



  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Nesting IF statements


On 6-Mar-2006, "Bob Phillips" wrote:

"
,"Private"),"Private")


Many thanks Bob.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDFunctions and nested If-the-else statements JDB Excel Worksheet Functions 1 January 25th 06 03:29 PM
Nesting IF statements, Conditional Formatting Nick Danger Excel Discussion (Misc queries) 2 September 26th 05 10:31 PM
nesting if statements tjb Excel Worksheet Functions 4 September 9th 05 11:43 PM
Nesting more than nine IF statements in Excel Alexander Walsh via OfficeKB.com Excel Worksheet Functions 13 June 1st 05 06:31 PM
Nesting IF Statements Based on Same Cell Value Cheryl B. Excel Worksheet Functions 4 May 26th 05 08:24 PM


All times are GMT +1. The time now is 04:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"