formula IF non work

max_max

Board Regular
Joined
Jun 29, 2013
Messages
58
Hi to all,
this formula works

=IF(B4="","",IF(B4<d4,2,if(b4>D4,1,IF(B4=D4,"X")))) (english)

=SE(B4="";"";SE(B4<d4;2;se(b4>D4;1;SE(B4=D4;"X")))) (italiano)

this formula not work

=IF(B4="",D4="","",IF(B4<d4,2,if(b4>D4,1,IF(B4=D4,"X"))))

=SE(B4="";D4="";"";SE(B4<d4;2;se(b4>D4;1;SE(B4=D4;"X"))))

where am I wrong?
max_max</d4;2;se(b4></d4,2,if(b4></d4;2;se(b4></d4,2,if(b4>
 
Last edited:

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
are you trying to say
both B4 AND D4 = "" to be a ""
or
B4 OR D4 could = "" to be a ""

=IF(AND(B4="",D4=""),"",IF(B4<d4,2,if(b4 style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250);">D4,1,IF(B4=D4,"X"))))
</d4,2,if(b4>

=IF(OR(B4="",D4=""),"",IF(B4<d4,2,if(b4 style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250);">D4,1,IF(B4=D4,"X"))))

</d4,2,if(b4>what are you trying here
IF(B4<d4,2,if(b4 style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250);">D4

</d4,2,if(b4>can you explain what you want to happen
 
Upvote 0
Canceled
 
Last edited:
Upvote 0
Hi etaf,
my formula correct is:

= IF ( B4 = "" , "" , IF ( B4 > D4 , 1 , IF ( B4 = D4 , "X" ) ) ) )

your formula is correct

<d4,1,if(b4=d4,"x")))
<d4,1,if(b4=d4,"x"))))
= IF ( AND ( B4 = "" , D4 = "" ) , "" , IF ( B4 > D4 , 1 , IF ( B4 = D4 , "X" ) ) )
or </d4,1,if(b4=d4,"x"))))
</d4,1,if(b4=d4,"x")))

<d4,1,if(b4=d4,"x")))
<d4,1,if(b4=d4,"x"))))
= IF ( OR ( B4 = "" , D4 = "" ) , "" , IF ( B4 > D4 , 1 , IF ( B4 = D4 , "X" ) ) )

thanks you
max_max</d4,1,if(b4=d4,"x"))))





</d4,1,if(b4=d4,"x")))
 
Upvote 0
you should have a false for b4 < d4

= IF ( OR ( B4 = "" , D4 = "" ) , "" , IF ( B4 > D4 , 1 , IF ( B4 = D4 , "X" , "b4 is less d4")) ) )
 
Last edited:
Upvote 0
Copy an paste not work

correct is:
= IF ( OR ( B4 = "" , D4 = "" ) , "" , IF ( B4 > D4 , 1 , IF ( B4 = D4 , "X" , IF ( B4 < D4 , 2 ) ) ) )

max_max
 
Upvote 0
= IF ( OR ( B4 = "" , D4 = "" ) , "" , IF ( B4 > D4 , 1 , IF ( B4 = D4 , "X" , IF ( B4 < D4 , 2 ) ) ) )

you dont need the last if

= IF ( OR ( B4 = "" , D4 = "" ) , "" , IF ( B4 > D4 , 1 , IF ( B4 = D4 , "X" , 2 ) ) )

as if b4 does not = or is not > then
it must be less then

 
Upvote 0
Thanks etaf

= IF ( OR ( B4 = "" , D4 = "" ) , "" , IF ( B4 > D4 , 1 , IF ( B4 = D4 , "X" , 2 ) ) )

it is OK.
A greeting max_max
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top