Dates to number in edit line

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In cell A:1 I have 15/05/1974 which is formatted as 19740515

I want to see 19740515 in the edit line as I need to create a csv with
19740515 and not 27164

Any ideas?
 
WORK ON A COPY OF YOUR FILE

You'll need to use a helper column in which you put a text formula along the
lines of this (assuming your first date is in A1)

=year(A1)&text(month(a1),"00")&text(day(a1),"00")

When all is as you want, then convert the formulas to values and delete the
column with the actual dates
 
Perfect! thanks Duke

Duke Carey said:
WORK ON A COPY OF YOUR FILE

You'll need to use a helper column in which you put a text formula along the
lines of this (assuming your first date is in A1)

=year(A1)&text(month(a1),"00")&text(day(a1),"00")

When all is as you want, then convert the formulas to values and delete the
column with the actual dates
 
Duke Carey said:
You'll need to use a helper column in which you put a text formula along the
lines of this (assuming your first date is in A1)

=year(A1)&text(month(a1),"00")&text(day(a1),"00")

=TEXT(A1,"yyyymmdd")
 
Bob -

Yeah, sure, that is clearly easier, better, etc., but the OP didn't ask for
the 'best' idea, just for 'any' ideas. Still not enough sleep last night.
 
The more the merrier IMO

Duke Carey said:
Bob -

Yeah, sure, that is clearly easier, better, etc., but the OP didn't ask for
the 'best' idea, just for 'any' ideas. Still not enough sleep last night.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top