ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Changing contents of cell based on Cell Format (https://www.excelbanter.com/excel-worksheet-functions/251593-changing-contents-cell-based-cell-format.html)

HeatherJ

Changing contents of cell based on Cell Format
 
I have cells with individual dates-

Current contents Desired Contents
06/01/2009 June
06/14/2009 June
07/04/2009 July
07/31/2009 July

I know I can change the appearance to what I want using FORMAT CELL, but I
need to change the actual cell contents to the month rather than the
individual date. I used to do this using the TEXT to COLUMNS function, but
it's not working like it used to in my previous version.

Is there another way to do this?

Thanks,
Heather

Fred Smith[_4_]

Changing contents of cell based on Cell Format
 
It's the Text function you want (not Text-to-Columns). Use;
=Text(a1,"mmmm")

Regards,
Fred

"HeatherJ" wrote in message
...
I have cells with individual dates-

Current contents Desired Contents
06/01/2009 June
06/14/2009 June
07/04/2009 July
07/31/2009 July

I know I can change the appearance to what I want using FORMAT CELL, but I
need to change the actual cell contents to the month rather than the
individual date. I used to do this using the TEXT to COLUMNS function,
but
it's not working like it used to in my previous version.

Is there another way to do this?

Thanks,
Heather



HeatherJ

Changing contents of cell based on Cell Format
 
Fantastic, thank you!

"Fred Smith" wrote:

It's the Text function you want (not Text-to-Columns). Use;
=Text(a1,"mmmm")

Regards,
Fred

"HeatherJ" wrote in message
...
I have cells with individual dates-

Current contents Desired Contents
06/01/2009 June
06/14/2009 June
07/04/2009 July
07/31/2009 July

I know I can change the appearance to what I want using FORMAT CELL, but I
need to change the actual cell contents to the month rather than the
individual date. I used to do this using the TEXT to COLUMNS function,
but
it's not working like it used to in my previous version.

Is there another way to do this?

Thanks,
Heather


.


Fred Smith[_4_]

Changing contents of cell based on Cell Format
 
You're welcome. Thanks for the feedback.

Fred.

"HeatherJ" wrote in message
...
Fantastic, thank you!

"Fred Smith" wrote:

It's the Text function you want (not Text-to-Columns). Use;
=Text(a1,"mmmm")

Regards,
Fred

"HeatherJ" wrote in message
...
I have cells with individual dates-

Current contents Desired Contents
06/01/2009 June
06/14/2009 June
07/04/2009 July
07/31/2009 July

I know I can change the appearance to what I want using FORMAT CELL,
but I
need to change the actual cell contents to the month rather than the
individual date. I used to do this using the TEXT to COLUMNS function,
but
it's not working like it used to in my previous version.

Is there another way to do this?

Thanks,
Heather


.




All times are GMT +1. The time now is 07:03 AM.

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