?
Solved

Text and date formula

Posted on 2016-08-24
9
Medium Priority
?
61 Views
Last Modified: 2016-08-24
I have attached a spreadsheet that should explain what I am trying to do which is:

I want to concatenate text and date, but the date needs to be like 1st  Aug 16, 2nd, 3rd, 4th Aug 16 etc so not like 1/8/16, 1 Aug 16 or 1-8-16

So, Collections JK13 would become Collections BH13 24th Aug 16 after concatenation
dates-and-text.xlsx
0
Comment
Question by:Jagwarman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 26

Accepted Solution

by:
ProfessorJimJam earned 1000 total points
ID: 41768490
put this formula in G7

=F7&" "&DAY(G2)&IF(OR(DAY(A2)={1,2,3,21,22,23,31}),
CHOOSE(1*RIGHT(DAY(G2),1),"st","nd ","rd "),"th")&
" "&TEXT(G2,"mmmm, yyyy")
dates-and-text.xlsx
0
 
LVL 32

Assisted Solution

by:Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj) earned 1000 total points
ID: 41768558
@Professor
For some dates, date prefix is not working e.g. 21, 22,31 etc. Please revise the formula. :)

Or another formula could be this.....
In G7
=F7&" "&DAY(G2)&MID("thstndrdth",MIN(9,2*RIGHT(DAY(G2))*(ABS(MOD(DAY(G2),100)-12)>1)+1),2)&" "&TEXT(G2,"mmmm, yyyy")

Open in new window

0
 

Author Comment

by:Jagwarman
ID: 41768560
Superstar Thanks
1
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 32

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41768564
@Jagwarman
I assume that compliment is for both of us. Right? :)
0
 

Author Comment

by:Jagwarman
ID: 41768589
Subodh Tiwari (Neeraj) they all work for me and so do yours

thanks
0
 

Author Comment

by:Jagwarman
ID: 41768613
yes brilliant both of you many thanks
0
 

Author Closing Comment

by:Jagwarman
ID: 41768614
thanks guys
0
 
LVL 32

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41768633
You're welcome. Glad we could help.
0
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 41768648
thanks Jagwarman

thanks Neeraj :)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question