Using the Symbol < for less than

Guzzlr

Well-known Member
Joined
Apr 20, 2009
Messages
957
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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,215,588
Messages
6,125,691
Members
449,250
Latest member
azur3

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