Please advise on what to add to the below string to retain the 0 in the dd field:
=CONCATENATE(AA2,"GT-H,T2," ",(DAY(AC2&UPPER(TEXT(AC2,"mmm"))&YEAR(AC2)),".pdf"
Where AC2 is the date (eg. 01JUN2010). The concatenated cells will not retain the 0 in the dd value of AC2.
James
Perhapes: instead of AC2 write TEXT(AC2, "00")
"Relax. What is mind? No matter. What is matter? Never mind!"
I can't quite figure out what you want the end result of your formula to be,
but this structure:
TEXT(AC2,"ddmmmyyyy")
returns a text string like this: 01Jan2011
Is that something you can work with?
I need the date to return with the zero, if the day contains one. So, I need all days to be double digit. And, I need the month to be capitalized (Jun = JUN). When I replace AC2 with TEXT(AC2,"00") I get numbers in the value, for example I get 40330 from 1JUN2010.
If you want cell AC2 to display as ddmmmyyyy, that's easy enough using that as a custom number format. However, you won't get AC2 to display as upper case.
Be aware, though, that changing the format of a referenced cell will have no impact on cells that refer to that cell. For instance, if AC2 contains: =TODAY() formatted as ddmmmyyyy...it will display as: 17Jul2011
But, this formula: =LEFT(AC2,2) will display 40...not 17, because the underlying value of the cell is the date serial number of 40741.
If you want your formula to display the date section in upper case,
just change that section to this:
UPPER(TEXT(AC2,"ddmmmyyyy"))
So the entire formula would be something like this:
=CONCATENATE(AA2,"GT-H",T2," ",UPPER(TEXT(AC2,"ddmmmyyyy")),".pdf")
or...since CONCATENATE is too much typing for me:
=AA2&"GT-H"&T2&" "&UPPER(TEXT(AC2,"ddmmmyyyy"))&".pdf"
Does that help?
I stand corrected, that appears to have worked. Thank you!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks