Using the Symbol < for less than

Guzzlr

Well-known Member
Joined
Apr 20, 2009
Messages
946
Office Version
  1. 2016
Platform
  1. Windows
Hello all'
I have the following simple formula: =IF("<10",0,(MONTH(B2)))
which is giving me a "Value" error.
I'm trying to select from a range of cells 0-10 that if the range is less than 10 (for the month of October, than use the data from B2 which is formatted like this:

10/3/2016 10:18:59 AM

When I just use: =MONTH(B2) it works fine, the column returns a 10 for october. however. if there is a blank, it returns the number "1"

I like to attach a screen shot, or excel file for clarification, but I dont know how to do that...sorry
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Is your formula missing a cell reference, so you mean =IF(A1<10,0,MONTH(B2))

Wtach the quotes, if 0-10 are numbers, they dont need to be enclosed in quotes
 
Upvote 0
Do you want this?
Code:
=IF(MONTH(B2)<10,0,MONTH(B2))
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,520
Members
449,088
Latest member
RandomExceller01

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