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>
ABCDEFGH
MONTHWEEKPAST DATE STARTPAST DATE ENDCURRENT DATE STARTCURRENT DATE ENDFUTURE DATE STARTFUTURE DATE END
Oct4Sun, Oct 1, 2017Mon, Oct 30, 2017
Oct4Sun, Oct 1, 2017Mon, Oct 30, 2017
Jan4Sun, Jan 1, 2017Tue, Jan 30, 2018
Jan4Sun, Jan 1, 2017Tue, Jan 30, 2018
Sep1Fri, Sep 1, 2017Sun, Sep 30, 2018
Jul2Sun, Jul 1, 2018

<tbody>
</tbody>

<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:

ABCD
1MONTHMONTHWEEK DAYWEEK DAY
2abrabrilquiquinta-feira
3maimaiosábsábado
4junjunhosegsegunda-feira
5juljulhoquaquarta-feira
6agoagostosexsexta-feira
7setsetembrodomdomingo
8
**********************************************

<tbody>
</tbody>

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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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:

ABCDEFGHI
1MONTHMONTHMONTHMONTHWEEK DAYWEEK DAYWEEK DAYWEEK DAY
2JanJaneirojanjaneiroQuiQuarta-feiraquiquinta-feira
3FevFevereirofevfevereiroSexQuinta-feirasexsexta-feira
4MarMarçomarmarçoSábSexta-feirasábsábado
5AbrAbrilabrabrilDomSábadodomdomingo
6MaiMaiomaimaioSegDomingosegsegunda-feira
7JunJunhojunjunhoTerSegunda-feiraterterça-feira
8
*************************************************************************************************

<tbody>
</tbody>

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,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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