Problems with IF formular

ENTERTAIN

New Member
Joined
Sep 6, 2017
Messages
29
Hi I am having problems coming up with the correct formula for something that I thought would be straight forward.
using 3 cells - A1 , B1 , C1
I want to return a value of 1 in cell C1 only if all the following are true.
A1 is not blank
B1 is not blank
B1 is less than the value of A1
Otherwise it can return a 0 or false or nothing even.
This is what I have tried

=IF(ISNUMBER(A1),ISNUMBER(B1),B1<A1)*1

As it stands, C1 returns a value of 1 whether the value of B1 is bigger or smaller than A1, but it does recognize blanks
Could someone advise me as to what I need to change?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Try
Excel Formula:
=IF(AND(B1<A1,OR(A1<>"",B1<>"")),1,"")
 
Upvote 0

Forum statistics

Threads
1,214,572
Messages
6,120,306
Members
448,955
Latest member
Dreamz high

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