Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Excel Problem

Thread Tools
 
Search this Thread
 
Old Apr 20, 2007 | 03:02 PM
  #1  
T4molie's Avatar
T4molie
Thread Starter
Scooby Regular
 
Joined: Dec 2002
Posts: 2,617
Likes: 0
From: Dum dum de dum....
Default Excel Problem

Guys,

If I've got "JAN" in cell A2 and "2007" in cell C2 and in cell E2 I want to it to have "JAN-07". Is there a way of doing this?

Using Excel 97

Cheers

Andy
Reply
Old Apr 20, 2007 | 03:09 PM
  #2  
MrShades's Avatar
MrShades
Scooby Regular
 
Joined: Aug 2002
Posts: 1,167
Likes: 0
From: Sunny Swindon
Default

Try putting this in cell E2

=CONCATENATE(A2,"-",C2)
Reply
Old Apr 20, 2007 | 03:17 PM
  #3  
T4molie's Avatar
T4molie
Thread Starter
Scooby Regular
 
Joined: Dec 2002
Posts: 2,617
Likes: 0
From: Dum dum de dum....
Default

MrShades,

That does kind of work but it gives me "JAN-2007". I'm looking for it to create "JAN-07"

Andy
Reply
Old Apr 20, 2007 | 03:21 PM
  #4  
GazTheHat's Avatar
GazTheHat
Scooby Regular
 
Joined: Aug 2005
Posts: 7,638
Likes: 0
From: 392/361 MY04 STi
Default

Try:

=CONCATENATE(A2,"-",RIGHT(C2,2))

Reply
Old Apr 20, 2007 | 03:30 PM
  #5  
T4molie's Avatar
T4molie
Thread Starter
Scooby Regular
 
Joined: Dec 2002
Posts: 2,617
Likes: 0
From: Dum dum de dum....
Default

Nice one Cheers Gaz

Andy
Reply
Old Apr 20, 2007 | 06:27 PM
  #6  
Frosty The Snowman's Avatar
Frosty The Snowman
Scooby Regular
 
Joined: Jun 2004
Posts: 528
Likes: 0
From: Bedfordshire
Default

A quick on topic question about this for me too, can you actually get the result to read as a proper date, for formatting purposes. Sure I had problems trying to do this when I had a cell with 1061231 in representing the date
backwards with a 1 in front.

Thanks
Reply
Old Apr 22, 2007 | 08:42 PM
  #7  
michaelro's Avatar
michaelro
Scooby Regular
 
Joined: Jan 2006
Posts: 897
Likes: 0
Default

Assuming your date is in Cell A1 and looks like this 1061231 then the following should work:

=DATEVALUE(MID(A1,6,2) & "/"& MID(A1,4,2)& "/"&MID(A1,2,2))

Go to Format Cells and select a Date category.
Reply
Old Apr 22, 2007 | 09:18 PM
  #8  
dsmith's Avatar
dsmith
Scooby Regular
 
Joined: Mar 1999
Posts: 4,518
Likes: 0
Default

just to say - there is an alternative to concatenate - you can us "&" to "add" strings.

i.e.

+A2&"-"&RIGHT(C2,2)
Reply
Old Apr 23, 2007 | 06:13 PM
  #9  
Frosty The Snowman's Avatar
Frosty The Snowman
Scooby Regular
 
Joined: Jun 2004
Posts: 528
Likes: 0
From: Bedfordshire
Default

Originally Posted by michaelro
Assuming your date is in Cell A1 and looks like this 1061231 then the following should work:

=DATEVALUE(MID(A1,6,2) & "/"& MID(A1,4,2)& "/"&MID(A1,2,2))

Go to Format Cells and select a Date category.
Thank you very much sir

That will no doubt make my life just that little bit easier
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
Dec 28, 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
Nov 18, 2015 07:03 AM
leg200
Subaru Parts
5
Oct 7, 2015 07:31 AM
has-scooby
Subaru Parts
4
Oct 6, 2015 03:47 PM
bluebullet29
General Technical
9
Oct 5, 2015 02:17 PM




All times are GMT +1. The time now is 10:28 AM.