if " value in field name" is blank or under 100 return 0 otherwise return 1 - how do I get this formula to work

Cathy2304

New Member
Joined
Mar 21, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I have a spreadsheet with dates in see below - column M is the difference between G and F - if G is Blank then it returns a blank in M - what I want is for the value in column u to show a 1 if the the value in column n is more than 100 - at the moment it also returns a 1 if the value is blank so the formula i came up with is:

=if(isblank(m2),0,(if(M2)<=100,1,0))

obviously doesn't work - any suggestions please)

1711018995351.png
t
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Welcome to the Board!

That means that cell M2 is probably not blank, but rather a single space or something like that (a space is NOT the same a blank).
If it is a single space, try this:
Excel Formula:
=if(or(isblank(m2),m2=" "),0,if(M2<=100,1,0))

Or we might be able to address it by fixing the formula you have in cell M2, if you would post that formula for us.
 
Upvote 0
How about
Excel Formula:
=if(and(m2<>"",m2>100),1,0)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
M2 can't possibly be blank and greater than 100 at the same time, so that check is unnecessary:
=--(M2>100)
 
Upvote 0
But there is a formula in M2 which presumably returns "" which is greater than 100.
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,976
Members
449,095
Latest member
Mr Hughes

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