ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   How to display month in a column based on a value in a cell (https://www.excelbanter.com/new-users-excel/213769-how-display-month-column-based-value-cell.html)

Panchi

How to display month in a column based on a value in a cell
 
I am a novie excel user, I would like to request a reolve of 2 issues which
may seem easy :

D1 has a date for which I want the first 3 characters of the month to be
displayed in column A1

I want to have the date formatted as 01.01.08 only no matter what the user
would enter in the sheet....

Thanks in advance

Rick Rothstein

How to display month in a column based on a value in a cell
 
Put this in A1... =TEXT(D1,"mmm")

Select the cell, click Format/Cell on the menu bar... on the Number tab,
select Custom in the Category listing and put this in the Type field...

mm.dd.yy

assuming the first 01 is the month and the second one is the day (terrible
example by the way). If the month and day are the reverse of that, then put
this in the Type field instead...

dd.mm.yy

--
Rick (MVP - Excel)


"Panchi" wrote in message
...
I am a novie excel user, I would like to request a reolve of 2 issues which
may seem easy :

D1 has a date for which I want the first 3 characters of the month to be
displayed in column A1

I want to have the date formatted as 01.01.08 only no matter what the user
would enter in the sheet....

Thanks in advance



Max

How to display month in a column based on a value in a cell
 
D1 has a date for which I want the first 3 characters of the month to be
displayed in column A1


Assuming D1 down contains real dates
In A1, copied down: =IF(D1="","",TEXT(D1,"ddd"))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:370 Subscribers:66
xdemechanik
---

Max

How to display month in a column based on a value in a cell
 
Correction, it should have read:
In A1, copied down: =IF(D1="","",TEXT(D1,"mmm"))

"mmm" returns it as: Jan, Feb, etc
"ddd" returns it as: Mon, Tues, etc
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:370 Subscribers:66
xdemechanik
---

Panchi

How to display month in a column based on a value in a cell
 

Thankyou al for the response.


"Max" wrote:

Correction, it should have read:
In A1, copied down: =IF(D1="","",TEXT(D1,"mmm"))

"mmm" returns it as: Jan, Feb, etc
"ddd" returns it as: Mon, Tues, etc
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:370 Subscribers:66
xdemechanik
---


Max

How to display month in a column based on a value in a cell
 
Welcome. Pl press the YES buttons (like the ones below) in ALL responses
which helped to answer your query
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:370 Subscribers:66
xdemechanik
---
"Panchi" wrote:
Thankyou all for the response




All times are GMT +1. The time now is 04:23 AM.

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