#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default Nesting 7 statements

The cell W2 has the option of being 7 different text variables. I want to do
an if/then formula but can't seem to next it appropriately. Can anyone help?
Thanks.

=IF(W2="BP","N/A",0),IF(W2="DM F","F",0),IF(W2="DM M","M",0),IF(W2="1
week","U",0),IF(W2="0 week","U",0),IF(W2="DG F","UNK",0),IF(W2="DG M",
"UNK",0)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Nesting 7 statements

For what you are doing you are better off with a vlookup or similar type of
formula.
--
HTH...

Jim Thomlinson


"Eden397" wrote:

The cell W2 has the option of being 7 different text variables. I want to do
an if/then formula but can't seem to next it appropriately. Can anyone help?
Thanks.

=IF(W2="BP","N/A",0),IF(W2="DM F","F",0),IF(W2="DM M","M",0),IF(W2="1
week","U",0),IF(W2="0 week","U",0),IF(W2="DG F","UNK",0),IF(W2="DG M",
"UNK",0)

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default Nesting 7 statements

=LOOKUP(W2,{"BP","DM F","DM M","1 WEEK","0 WEEK","DG F","DG
M"},{"N/A","F","M","U","U","UNK","UNK"})

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Jim Thomlinson" escreveu:

For what you are doing you are better off with a vlookup or similar type of
formula.
--
HTH...

Jim Thomlinson


"Eden397" wrote:

The cell W2 has the option of being 7 different text variables. I want to do
an if/then formula but can't seem to next it appropriately. Can anyone help?
Thanks.

=IF(W2="BP","N/A",0),IF(W2="DM F","F",0),IF(W2="DM M","M",0),IF(W2="1
week","U",0),IF(W2="0 week","U",0),IF(W2="DG F","UNK",0),IF(W2="DG M",
"UNK",0)

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
Workaround for nesting more than 7 statements campka Excel Discussion (Misc queries) 2 August 15th 06 02:39 PM
Nesting IF statements [email protected] Excel Discussion (Misc queries) 2 March 7th 06 07:43 AM
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 09:51 AM.

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"