SOLVED

Need excel formula

Copper Contributor

 If B5 is <= to "22" then B1/2, If B5 is > to "22"then B1 will remain same

 

3 Replies
best response confirmed by Rushk0209 (Copper Contributor)
Solution

@Rushk0209 

=IF(B5<=22,B1/2,B1)

or

=B1/IF(B5<=22,2,1)

or

=B1/((B5<=22)+1)

@Rushk0209 

Depends on where the result shall be. If in some other cell, when as suggested. If B1 shall be changed depends on B5, when VBA. 

Working.
Thanks..!
1 best response

Accepted Solutions
best response confirmed by Rushk0209 (Copper Contributor)
Solution

@Rushk0209 

=IF(B5<=22,B1/2,B1)

or

=B1/IF(B5<=22,2,1)

or

=B1/((B5<=22)+1)

View solution in original post