dates typed vs =month()

dmheller

Board Regular
Joined
May 26, 2017
Messages
156
Office Version
  1. 365
So this may be dumb but I type in January and then auto fill down and get to December. I think use that as a month ref in an equation
=month(a1) where January is typed and I get an error. What do I need to do so that I can type a month and have excel know that when I use the month function?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
The MONTH function pulls the month off a valid date entry.
But you do not have a valid date entry in A1, you just have a month name.

If you need to get the month, just use:
Code:
=A1
instead of
Code:
=MONTH(A1)
 
Upvote 0
So if I use a sumproducts and ref A1 instead of month(a1) will it sum January or will it not see it as a date because all other data is in date form
 
Upvote 0
Ok, that's what I thought excel does not see a typed month as a month but just text so I have to trick it
 
Upvote 0
Ok, that's what I thought excel does not see a typed month as a month but just text so I have to trick it
That is correct.

It is also important to see how Excel store dates. It actually stores them as numbers, the number of days since 1/0/1900 (time component is a fraction of a day, so shows up as decimals).
So a valid date entry is really just a number that has a date format on it. To see this, enter any date, and change the cell format to "General", and you will see the date as Excel sees it.

So, if you ever have a question regarding a date entry if it is really a date or text, you can either:
- change the cell format to "General" and see if it changes it to a number
or
- use the ISNUMBER function on it and see if it returns TRUE
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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