Formula to extract month and day and convert to month abbreviation and week number

wmichael

Board Regular
Joined
Aug 26, 2014
Messages
113
Office Version
  1. 365
  2. 2019
  3. 2007
Platform
  1. Windows
  2. Mobile
Hello.

Seeking a formula to extract details from the CURRENT DATE START (E) cell to populate in the MONTH (A) cell and the WEEK (B) cell instead of me manually entering the month and week- appreciate your help in advance. Thank you.

--- Michael

<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>[TABLE="width: 0"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[/TR]
[TR]
[TD]MONTH[/TD]
[TD]WEEK[/TD]
[TD]PAST DATE START[/TD]
[TD]PAST DATE END[/TD]
[TD]CURRENT DATE START[/TD]
[TD]CURRENT DATE END[/TD]
[TD]FUTURE DATE START[/TD]
[TD]FUTURE DATE END[/TD]
[/TR]
[TR]
[TD]Oct[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD]Sun, Oct 1, 2017[/TD]
[TD]Mon, Oct 30, 2017[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Oct[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD]Sun, Oct 1, 2017[/TD]
[TD]Mon, Oct 30, 2017[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD]Sun, Jan 1, 2017[/TD]
[TD]Tue, Jan 30, 2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD]Sun, Jan 1, 2017[/TD]
[TD]Tue, Jan 30, 2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sep[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]Fri, Sep 1, 2017[/TD]
[TD]Sun, Sep 30, 2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jul[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]Sun, Jul 1, 2018[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
 
Re: Seeking formula to extract month and day and convert to month abbreviation and week number

Here more examples with the TEXT function:

[TABLE="class: grid, width: 265"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]MONTH[/TD]
[TD]MONTH[/TD]
[TD]WEEK DAY[/TD]
[TD]WEEK DAY[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]abr[/TD]
[TD]abril[/TD]
[TD]qui[/TD]
[TD]quinta-feira[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]mai[/TD]
[TD]maio[/TD]
[TD]sáb[/TD]
[TD]sábado[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]jun[/TD]
[TD]junho[/TD]
[TD]seg[/TD]
[TD]segunda-feira[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]jul[/TD]
[TD]julho[/TD]
[TD]qua[/TD]
[TD]quarta-feira[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]ago[/TD]
[TD]agosto[/TD]
[TD]sex[/TD]
[TD]sexta-feira[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]set[/TD]
[TD]setembro[/TD]
[TD]dom[/TD]
[TD]domingo[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]****[/TD]
[TD]********[/TD]
[TD]**********[/TD]
[TD]**********[/TD]
[TD]**************[/TD]
[/TR]
</tbody>[/TABLE]

Markmzz

Just out of curiosity, are the month and day names usually written in all lower case in your locale (not just in Excel, but in normal writing, such as a newspaper for example) ?
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Re: Seeking formula to extract month and day and convert to month abbreviation and week number

Just out of curiosity, are the month and day names usually written in all lower case in your locale (not just in Excel, but in normal writing, such as a newspaper for example) ?

Sometimes yes and sometimes no. Here is one for a Newspaper - Terça-feira, 20 de março de 2018

Markmzz
 
Last edited:
Upvote 0
Re: Seeking formula to extract month and day and convert to month abbreviation and week number

Sometimes yes and sometimes no. Here is one for a Newspaper - Terça-feira, 20 de março de 2018

Markmzz

I guess that is why Microsoft decided not to make the output for month (or day) names proper case for your locale... still, it might be nice if the documentation mentioned that there is a discrepancy on this depending on locale.
 
Last edited:
Upvote 0
Re: Seeking formula to extract month and day and convert to month abbreviation and week number

I guess that is why Microsoft decided not to make the output for month (or day) names proper case for your locale... still, it might be nice if the documentation mentioned that there is a discrepancy on this depending on locale.

I think that you are right. Now look at the Excel custom lists:

[TABLE="class: grid, width: 546"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]MONTH[/TD]
[TD]MONTH[/TD]
[TD]MONTH[/TD]
[TD]MONTH[/TD]
[TD]WEEK DAY[/TD]
[TD]WEEK DAY[/TD]
[TD]WEEK DAY[/TD]
[TD]WEEK DAY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Jan[/TD]
[TD]Janeiro[/TD]
[TD]jan[/TD]
[TD]janeiro[/TD]
[TD]Qui[/TD]
[TD]Quarta-feira[/TD]
[TD]qui[/TD]
[TD]quinta-feira[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Fev[/TD]
[TD]Fevereiro[/TD]
[TD]fev[/TD]
[TD]fevereiro[/TD]
[TD]Sex[/TD]
[TD]Quinta-feira[/TD]
[TD]sex[/TD]
[TD]sexta-feira[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Mar[/TD]
[TD]Março[/TD]
[TD]mar[/TD]
[TD]março[/TD]
[TD]Sáb[/TD]
[TD]Sexta-feira[/TD]
[TD]sáb[/TD]
[TD]sábado[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Abr[/TD]
[TD]Abril[/TD]
[TD]abr[/TD]
[TD]abril[/TD]
[TD]Dom[/TD]
[TD]Sábado[/TD]
[TD]dom[/TD]
[TD]domingo[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Mai[/TD]
[TD]Maio[/TD]
[TD]mai[/TD]
[TD]maio[/TD]
[TD]Seg[/TD]
[TD]Domingo[/TD]
[TD]seg[/TD]
[TD]segunda-feira[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Jun[/TD]
[TD]Junho[/TD]
[TD]jun[/TD]
[TD]junho[/TD]
[TD]Ter[/TD]
[TD]Segunda-feira[/TD]
[TD]ter[/TD]
[TD]terça-feira[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]****[/TD]
[TD]********[/TD]
[TD]**********[/TD]
[TD]**********[/TD]
[TD]**************[/TD]
[TD]**********[/TD]
[TD]**************[/TD]
[TD]**********[/TD]
[TD]**************[/TD]
[TD]***[/TD]
[/TR]
</tbody>[/TABLE]

Markmzz
 
Upvote 0
Re: Seeking formula to extract month and day and convert to month abbreviation and week number

You are all awesome!
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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