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 20 April 2007, 03:02 PM
  #1  
T4molie
Scooby Regular
Thread Starter
 
T4molie's Avatar
 
Join Date: Dec 2002
Location: Dum dum de dum....
Posts: 2,617
Likes: 0
Received 0 Likes on 0 Posts
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
Old 20 April 2007, 03:09 PM
  #2  
MrShades
Scooby Regular
 
MrShades's Avatar
 
Join Date: Aug 2002
Location: Sunny Swindon
Posts: 1,167
Likes: 0
Received 0 Likes on 0 Posts
Default

Try putting this in cell E2

=CONCATENATE(A2,"-",C2)
Old 20 April 2007, 03:17 PM
  #3  
T4molie
Scooby Regular
Thread Starter
 
T4molie's Avatar
 
Join Date: Dec 2002
Location: Dum dum de dum....
Posts: 2,617
Likes: 0
Received 0 Likes on 0 Posts
Default

MrShades,

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

Andy
Old 20 April 2007, 03:21 PM
  #4  
GazTheHat
Scooby Regular
 
GazTheHat's Avatar
 
Join Date: Aug 2005
Location: 392/361 MY04 STi
Posts: 7,638
Likes: 0
Received 0 Likes on 0 Posts
Default

Try:

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

Old 20 April 2007, 03:30 PM
  #5  
T4molie
Scooby Regular
Thread Starter
 
T4molie's Avatar
 
Join Date: Dec 2002
Location: Dum dum de dum....
Posts: 2,617
Likes: 0
Received 0 Likes on 0 Posts
Default

Nice one Cheers Gaz

Andy
Old 20 April 2007, 06:27 PM
  #6  
Frosty The Snowman
Scooby Regular
 
Frosty The Snowman's Avatar
 
Join Date: Jun 2004
Location: Bedfordshire
Posts: 528
Likes: 0
Received 0 Likes on 0 Posts
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
Old 22 April 2007, 08:42 PM
  #7  
michaelro
Scooby Regular
 
michaelro's Avatar
 
Join Date: Jan 2006
Posts: 897
Likes: 0
Received 0 Likes on 0 Posts
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.
Old 22 April 2007, 09:18 PM
  #8  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Default

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

i.e.

+A2&"-"&RIGHT(C2,2)
Old 23 April 2007, 06:13 PM
  #9  
Frosty The Snowman
Scooby Regular
 
Frosty The Snowman's Avatar
 
Join Date: Jun 2004
Location: Bedfordshire
Posts: 528
Likes: 0
Received 0 Likes on 0 Posts
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
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
leg200
Subaru Parts
5
07 October 2015 07:31 AM
has-scooby
Subaru Parts
4
06 October 2015 03:47 PM
bluebullet29
General Technical
9
05 October 2015 02:17 PM



Quick Reply: Excel Problem



All times are GMT +1. The time now is 06:44 AM.