Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default Logical Functions

I am confused as to why I'm getting a "FALSE" from 3 IF Statements. Here is
my function:

=IF(Combo_4_000664!C11="All","1",IF(Combo_4_000664 !C11="quota","0",IF(Combo_4_000664!C11="222","1")) )

but I am getting a "FALSE" when I enter 222 in my linked spreadsheet. I
believe it's because I am already using a "1" for my "All" case, so does
anyone
know how to rewrite this to clean it up. I really appreciate this help,
everyone.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Logical Functions

if the 222 you enter is a number, it will not match the "222" text in the
equation
try getting rid of the Quote marks in the equation.

"Eden397" wrote:

I am confused as to why I'm getting a "FALSE" from 3 IF Statements. Here is
my function:

=IF(Combo_4_000664!C11="All","1",IF(Combo_4_000664 !C11="quota","0",IF(Combo_4_000664!C11="222","1")) )

but I am getting a "FALSE" when I enter 222 in my linked spreadsheet. I
believe it's because I am already using a "1" for my "All" case, so does
anyone
know how to rewrite this to clean it up. I really appreciate this help,
everyone.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Logical Functions

Maybe this might be an easier alternative:
=VLOOKUP(Combo_4_000664!C11,{"All",1;"quota",0;"22 2",1},2,0)

Above assumes that you want real numbers (ie: 0,1) and not text, as the
actual returns
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Eden397" wrote:
I am confused as to why I'm getting a "FALSE" from 3 IF Statements. Here is
my function:

=IF(Combo_4_000664!C11="All","1",IF(Combo_4_000664 !C11="quota","0",IF(Combo_4_000664!C11="222","1")) )

but I am getting a "FALSE" when I enter 222 in my linked spreadsheet. I
believe it's because I am already using a "1" for my "All" case, so does
anyone
know how to rewrite this to clean it up. I really appreciate this help,
everyone.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Logical Functions

=IF(OR(Combo_4_000664!C11={"All","222"}),"1",IF(Co mbo_4_000664!C11="quota","0","else..."))


"Eden397" wrote:

I am confused as to why I'm getting a "FALSE" from 3 IF Statements. Here is
my function:

=IF(Combo_4_000664!C11="All","1",IF(Combo_4_000664 !C11="quota","0",IF(Combo_4_000664!C11="222","1")) )

but I am getting a "FALSE" when I enter 222 in my linked spreadsheet. I
believe it's because I am already using a "1" for my "All" case, so does
anyone
know how to rewrite this to clean it up. I really appreciate this help,
everyone.

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
Logical Functions Eden397 Excel Worksheet Functions 10 June 11th 07 04:06 PM
logical functions Ali Akbar Excel Worksheet Functions 3 February 11th 07 08:00 PM
using logical functions civilized_engr Excel Worksheet Functions 3 June 10th 06 05:41 PM
logical functions wiz546 Excel Worksheet Functions 1 February 1st 05 09:42 AM
logical functions wiz546 Excel Worksheet Functions 1 February 1st 05 03:02 AM


All times are GMT +1. The time now is 11:57 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"