Using the Symbol < for less than

Guzzlr

Well-known Member
Joined
Apr 20, 2009
Messages
918
Office Version
  1. 365
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

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Momentman

Well-known Member
Joined
Jan 11, 2012
Messages
4,142
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
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

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
18,067
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Do you want this?
Code:
=IF(MONTH(B2)<10,0,MONTH(B2))
 
Upvote 0

Forum statistics

Threads
1,190,558
Messages
5,981,688
Members
439,730
Latest member
gjvv

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
Top