end of the month formula with only year and month

jeongs1

New Member
Joined
May 23, 2017
Messages
44
Hello, my cell have "201801 Sale" in A1.
What is the formula that I can use in B1 so that I get the end of the month date? (i.e. 1/31/2018)

Thank you
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
=EOMONTH(A1,0)

apply a custom format to cell B1 if needed, "mm/dd/yyyy"
 
Upvote 0
Hi,

Cell B1 formatted as Date:


Excel 2010
AB
1201801 Sale1/31/2018
Sheet1
Cell Formulas
RangeFormula
B1=EOMONTH(DATE(LEFT(A1,4),MID(A1,5,2),1),0)
 
Upvote 0
jeongs1, Good evening.

Try to use:

B1 --> FORMULA -->
Code:
=EOMONTH(DATE(--LEFT(A1,4),--MID(A1,5,2),1),0)

Formata cell B1 as custom --> mm/dd/aaaa

Is that what you want?

I hope it helps.
 
Upvote 0

Forum statistics

Threads
1,226,730
Messages
6,192,708
Members
453,748
Latest member
akhtarf3

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