Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Problems with IF statement

Unfortunately Excel won't accept below formula and I can't figure out why.
Any suggestions? I'm using a European version so I know the ; dividing the
criterias are correct.

IF(B12<B4;0;IF(B12=B4;IF(B12<=C4;((((B12-B4)/(C4-B4))*0,25)+0,25)));IF(B12C4;IF(B12<=D4;((((B12-C4)/(D4-C4))*0,5)+0,5)));IF(B12D4;1,0)

Many thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 268
Default Problems with IF statement

Try this one?

=IF(B12<G18;0;IF(B12=B4;IF(B12<=C4;(((B12-B4)/(C4-B4))*0,25)+0,25;IF(B12C4;IF(B12<=D4;(((B12-C4)/(D4-C4))*0,5)+0,5,IF(B12D4;1;0))))))

"Bell" wrote:

Unfortunately Excel won't accept below formula and I can't figure out why.
Any suggestions? I'm using a European version so I know the ; dividing the
criterias are correct.

IF(B12<B4;0;IF(B12=B4;IF(B12<=C4;((((B12-B4)/(C4-B4))*0,25)+0,25)));IF(B12C4;IF(B12<=D4;((((B12-C4)/(D4-C4))*0,5)+0,5)));IF(B12D4;1,0)

Many thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Problems with IF statement

Hi Belli

Maybe
IF(B12<B4;0;
IF(AND(B12=B4;B12<=C4);((B12-B4)/(C4-B4))*0,25)+0,25);
IF(AND(B12C4;B12<=D4);((B12-C4)/(D4-C4))*0,5)+0,5);
IF(B12D4;1,0,"something_else"))))

The "something_else" is to deal with a case where B12 is not less than
B4 and is not greater than D4

--
Regards

Roger Govier


"Bell" wrote in message
...
Unfortunately Excel won't accept below formula and I can't figure out
why.
Any suggestions? I'm using a European version so I know the ; dividing
the
criterias are correct.

IF(B12<B4;0;IF(B12=B4;IF(B12<=C4;((((B12-B4)/(C4-B4))*0,25)+0,25)));IF(B12C4;IF(B12<=D4;((((B12-C4)/(D4-C4))*0,5)+0,5)));IF(B12D4;1,0)

Many thanks in advance.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Problems with IF statement

t
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
SQL concatenation statement CLamar Excel Discussion (Misc queries) 0 June 29th 06 01:58 PM
Problems with IF statement terry_d Excel Worksheet Functions 4 April 5th 06 06:50 PM
Problems with an IF statement Amaloney Excel Worksheet Functions 3 September 15th 05 05:52 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM


All times are GMT +1. The time now is 12:27 PM.

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"