Getting a date while using Concatenate

treeleaf20

Board Regular
Joined
Mar 17, 2009
Messages
154
All,
I have the following formula that calculates the beginning of the month and the end of the month with a dash in between for invoicing purposes:

Excel Formula:
=CONCATENATE(EOMONTH(TODAY(),-1)+1,"-",EOMONTH(TODAY(),0))

This works and gives me the correct results in this format:
44105-44135

I want to be able to put this in the "mm/dd/yyyy" format but I can't since it also has text in it. Is there a way to print the dates with the dash in the middle after the beginning of the month and end of the month is calculated?
 

Excel Facts

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

="1 - "&DAY(EOMONTH(TODAY(),0))
 
Upvote 0
How about
Excel Formula:
=CONCATENATE(TEXT(EOMONTH(TODAY(),-1)+1,"mm/dd/yyyy"),"-",TEXT(EOMONTH(TODAY(),0),"mm/dd/yyyy"))
 
Upvote 0
ok, how about?

=TEXT(EOMONTH(TODAY(),-1)+1,"mm/dd/yyyy")&"-"&TEXT(EOMONTH(TODAY(),0),"mm/dd/yyyy")
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,053
Messages
6,122,882
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