Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Formula If statement.

I would like to get a formula
=IF((B1=X),(Value=0),IF(B2=X,(Value=5),IF(B3=X,(Va lue=10)))
I keep getting an error telling me that I am missing a parenthesis.

I would also like to add in the fomula that if it is blank do not calculate
the value.

Thank you in advance for your help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Formula If statement.

=IF(COUNTIF(B1:B3,"x"),(MATCH("x",B1:B3,0)-1)*5,"")


"C Kreig" wrote:

I would like to get a formula
=IF((B1=X),(Value=0),IF(B2=X,(Value=5),IF(B3=X,(Va lue=10)))
I keep getting an error telling me that I am missing a parenthesis.

I would also like to add in the fomula that if it is blank do not calculate
the value.

Thank you in advance for your help.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Formula If statement.

"C Kreig" wrote:
I would like to get a formula
=IF((B1=X),(Value=0),IF(B2=X,(Value=5),IF(B3=X,(Va lue=10)))
I keep getting an error telling me that I am missing a parenthesis.


First, it might be easier for you to spot your error if you eliminate
unneeded parentheses.

Second, I suspect you do not really have "Value=0" etc, unless you truly
intend the result to be TRUE or FALSE. And I suspect you do not have "X"
and "Value" verbatim, unless they are named references.

So I presume your intention is a formula of the form (including your syntax
error):

=IF(B1=1,0,IF(B2=2,5,IF(B3=3,10))

Now can you see the syntax error? You need one more right parenthesis to
close the first IF function.


I would also like to add in the fomula that if it is blank do not
calculate
the value.


I don't know what "it" is; you reference three different cells: B1, B2 and
B3.

Perhaps you mean: if none of the conditions is true, you want to display a
blank cell. Then:

=IF(B1=1,0,IF(B2=2,5,IF(B3=3,10,"")))


PS: For future reference, if you are asking for help with a syntax error,
it is prudent to copy-and-paste exactly what you are typing into Excel. If
you retype it, you are likely to obscure the original syntax error, either
creating new ones or even unconsciously correcting the original one.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Formula If statement.

You formula and the accompaning description don't make sense.

1. First, can only one cellin the range B1:B3 contain X?
2. You say add in a formula if it is blank - if what is blank? what is "it"
3. Is X a range name or a text entry?
4. by Value=0 do you mean that if B1=X then return 0? If so what do you
want to do if B1:b3 ALL = x - SUM them Average them, take the largest result?

In general a formula might look like:

=IF(B1="X",0,IF(B2="X",5,IF(B3="X",10,"")))


--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"C Kreig" wrote:

I would like to get a formula
=IF((B1=X),(Value=0),IF(B2=X,(Value=5),IF(B3=X,(Va lue=10)))
I keep getting an error telling me that I am missing a parenthesis.

I would also like to add in the fomula that if it is blank do not calculate
the value.

Thank you in advance for your help.

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
if statement in formula Derrick Excel Discussion (Misc queries) 7 July 8th 09 06:16 PM
IF THEN statement - Formula walkerT Excel Discussion (Misc queries) 3 March 13th 07 07:20 PM
IF statement formula JaB Excel Worksheet Functions 4 September 15th 06 04:12 PM
Can I use IF statement with a formula? Michael NYC Excel Worksheet Functions 1 October 1st 05 04:45 AM
If statement formula lintan Excel Worksheet Functions 6 November 22nd 04 10:29 PM


All times are GMT +1. The time now is 07:24 AM.

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

About Us

"It's about Microsoft Excel"