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

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try
Excel Formula:
=IF(AND(B1<A1,OR(A1<>"",B1<>"")),1,"")
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,042
Members
449,063
Latest member
ak94

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