What do I add to formula to only show current month?

MHurtares

New Member
Joined
Jun 11, 2022
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I have a simple date formula: A1+1, A+2, A1+3, etc., where A1 is the first of the month. How do I stop this formula from displaying dates in the next month, since I am using 31 cells. In other words, if a date has less than 31 days, I would like a Blank result.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(ROWS(A$1:A2)>DAY(EOMONTH($A$1,0)),"",A1+1)
 
Upvote 0
Screenshot 2022-06-11 15.29.42.png
Hi & welcome to MrExcel.

The formula in each cell after A2 references the previous cell +1, not +2, +3, as previously stated.
Do I add the formula to each cell after A2?
 
Upvote 0
You should get rid of those merged cells, they are an abomination & should be avoided like the plague.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,901
Members
449,097
Latest member
dbomb1414

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