![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 13
|
I am using the following function in a cell(A2)
=LEFT(A1,5), where I am trying to return the first 5 characters from A1, however I am unable to formatt cell A2. Anyone know how to format a cell that uses the LEFT function? |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Posts: 64
|
What type of format; the text itself, or the cell? (E.g. $1.23 or align right)
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 13
|
If I undertand your question correctly, I want to format the text, in my case I want to convert to a date.
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Posts: 363
|
To format the result as date you should convert it to a value by using the value command. Your formula would be:
=Value(Left(a1,5)) Ricky |
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Post some sample data, for clarification.
|
|
|
|
|
|
#6 |
|
New Member
Join Date: Mar 2002
Posts: 13
|
Thanks for responses, The VALUE function Ricky recommended did the trick.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|