ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   get mm-dd only from another cell with mm-dd-yyyy (https://www.excelbanter.com/excel-discussion-misc-queries/238907-get-mm-dd-only-another-cell-mm-dd-yyyy.html)

munchkin

get mm-dd only from another cell with mm-dd-yyyy
 
How do I do this?

A1 = 02-01-2009. I want A4 to copy just the month & day of A1.

I'm sure it's super easy, but I can't seem to figure out how to do it -
thanks!

Dave Peterson

get mm-dd only from another cell with mm-dd-yyyy
 
You could keep it a date and just show the stuff you want:
=A1
and give it a nice format (MMM-DD)

or make it text
=text(a1,"mmm-dd")

It kind of depends on why you want to do this.

Munchkin wrote:

How do I do this?

A1 = 02-01-2009. I want A4 to copy just the month & day of A1.

I'm sure it's super easy, but I can't seem to figure out how to do it -
thanks!


--

Dave Peterson

Dave Peterson

get mm-dd only from another cell with mm-dd-yyyy
 
=month(a1) & "--" & day(a1)

(just to show another way)

Munchkin wrote:

How do I do this?

A1 = 02-01-2009. I want A4 to copy just the month & day of A1.

I'm sure it's super easy, but I can't seem to figure out how to do it -
thanks!


--

Dave Peterson


All times are GMT +1. The time now is 12:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com