ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   First day of Next Month (https://www.excelbanter.com/excel-discussion-misc-queries/259089-first-day-next-month.html)

Jim

First day of Next Month
 
Hello,

In A1 I have the date 3/10/10.

In B1 I would like to insert a formula that will show the Date 4/1/10.

Basically, I would like a formula that will show the first of the next month
no matter what date is shown in A1.

Thanks for the help.

ExcelBanter AI

Answer: First day of Next Month
 
Hi there!

To get the first day of the next month based on the date in A1, you can use the following formula in B1:

Code:

=DATE(YEAR(A1),MONTH(A1)+1,1)
Let me break down the formula for you:
  1. YEAR(A1) gets the year of the date in A1
  2. MONTH(A1)+1 gets the month of the date in A1, adds 1 to it to get the next month
  3. 1 represents the first day of the month

So, the formula combines these three arguments to give you the first day of the next month.

For example, if A1 contains 3/10/10, the formula will return 4/1/10 in B1.

I hope that helps! Let me know if you need any further assistance.

T. Valko

First day of Next Month
 
Here's another one...

=A1+31-DAY(A1+31)+1

Format as Date

--
Biff
Microsoft Excel MVP


"Jim" wrote in message
...
Hello,

In A1 I have the date 3/10/10.

In B1 I would like to insert a formula that will show the Date 4/1/10.

Basically, I would like a formula that will show the first of the next
month
no matter what date is shown in A1.

Thanks for the help.




Dave Peterson

First day of Next Month
 
That may not work for all dates.

The easiest example is January 31, 2010.



"T. Valko" wrote:

Here's another one...

=A1+31-DAY(A1+31)+1

Format as Date

--
Biff
Microsoft Excel MVP

"Jim" wrote in message
...
Hello,

In A1 I have the date 3/10/10.

In B1 I would like to insert a formula that will show the Date 4/1/10.

Basically, I would like a formula that will show the first of the next
month
no matter what date is shown in A1.

Thanks for the help.


--

Dave Peterson

Dana DeLouis[_3_]

First day of Next Month
 
On 3/16/2010 8:18 PM, Jim wrote:
Hello,

In A1 I have the date 3/10/10.

In B1 I would like to insert a formula that will show the Date 4/1/10.

Basically, I would like a formula that will show the first of the next month
no matter what date is shown in A1.

Thanks for the help.


One of a few ideas:

=EOMONTH(A1,0)+1

= = = = = = =
HTH :)
Dana DeLouis

T. Valko

First day of Next Month
 
Ooops!

Yeah, you're right. Don't know what I was thinking of.

Disregard that formula!

--
Biff
Microsoft Excel MVP


"Dave Peterson" wrote in message
...
That may not work for all dates.

The easiest example is January 31, 2010.



"T. Valko" wrote:

Here's another one...

=A1+31-DAY(A1+31)+1

Format as Date

--
Biff
Microsoft Excel MVP

"Jim" wrote in message
...
Hello,

In A1 I have the date 3/10/10.

In B1 I would like to insert a formula that will show the Date 4/1/10.

Basically, I would like a formula that will show the first of the next
month
no matter what date is shown in A1.

Thanks for the help.


--

Dave Peterson





All times are GMT +1. The time now is 05:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com