Text and date formula

Posted on 2016-08-24
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
Question by:Jagwarman
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
LVL 26

Accepted Solution

ProfessorJimJam earned 250 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")
LVL 31

Assisted Solution

by:Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj) earned 250 total points
ID: 41768558
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


Author Comment

ID: 41768560
Superstar Thanks
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

LVL 31

Expert Comment

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

Author Comment

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


Author Comment

ID: 41768613
yes brilliant both of you many thanks

Author Closing Comment

ID: 41768614
thanks guys
LVL 31

Expert Comment

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

Expert Comment

ID: 41768648
thanks Jagwarman

thanks Neeraj :)

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

691 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