+ Reply to Thread
Results 1 to 11 of 11

Date and Text in one formula

  1. #1
    Registered User
    Join Date
    06-23-2006
    Posts
    34

    Talking Date and Text in one formula

    I am trying to write a formula which has text and then a date which is taken from a different sheet in the workbook.

    EG the text is "Nav as at 31st March 06"

    With 'Nav as at' being the text and the date 31st March being picked up from the other sheet.

    However the date on the other sheet is the following month, ie 30th June. SO I would need it to pick up the End of the month and minus it by one month and add it to the text.

    I have tried several methods but none seem to work!!

    Thanks

    Caroline

  2. #2
    Franz Verga
    Guest

    Re: Date and Text in one formula

    Nel post news:[email protected]
    *CarolineHedges* ha scritto:

    > I am trying to write a formula which has text and then a date which is
    > taken from a different sheet in the workbook.
    >
    > EG the text is "Nav as at 31st March 06"
    >
    > With 'Nav as at' being the text and the date 31st March being picked
    > up from the other sheet.
    >
    > However the date on the other sheet is the following month, ie 30th
    > June. SO I would need it to pick up the End of the month and minus it
    > by one month and add it to the text.
    >
    > I have tried several methods but none seem to work!!
    >
    > Thanks
    >
    > Caroline



    Hi Caroline,

    maybe (quite sure... ;-) ), you didn't tried this one:

    ="Nav at "&TEXT(EOMONTH(D3,-1),"dd mmmm yyyy")

    where D3 is the cell in which there is the date, so you have to arrange the
    reference as you need. Also "dd mmmm yyyy" is the formatting code for the
    date, you have to arrange this too as for your need.


    --
    Hope I helped you.

    Thanks in advance for your feedback.

    Ciao

    Franz Verga from Italy



  3. #3
    Toppers
    Guest

    RE: Date and Text in one formula

    If A1 contains 30/06/2006 then:

    ="Nav as at " & TEXT(DATE(YEAR(A1),MONTH(A1),0),"dd mmmm yy")

    will display "Nav as at 31 May 06"

    Does this help?


    "CarolineHedges" wrote:

    >
    > I am trying to write a formula which has text and then a date which is
    > taken from a different sheet in the workbook.
    >
    > EG the text is "Nav as at 31st March 06"
    >
    > With 'Nav as at' being the text and the date 31st March being picked up
    > from the other sheet.
    >
    > However the date on the other sheet is the following month, ie 30th
    > June. SO I would need it to pick up the End of the month and minus it
    > by one month and add it to the text.
    >
    > I have tried several methods but none seem to work!!
    >
    > Thanks
    >
    > Caroline
    >
    >
    > --
    > CarolineHedges
    > ------------------------------------------------------------------------
    > CarolineHedges's Profile: http://www.excelforum.com/member.php...o&userid=35705
    > View this thread: http://www.excelforum.com/showthread...hreadid=554904
    >
    >


  4. #4
    Franz Verga
    Guest

    Re: Date and Text in one formula

    Nel post news:%[email protected]
    *Franz Verga* ha scritto:

    > Nel post
    > news:[email protected]
    > *CarolineHedges* ha scritto:
    >> I am trying to write a formula which has text and then a date which
    >> is taken from a different sheet in the workbook.
    >>
    >> EG the text is "Nav as at 31st March 06"
    >>
    >> With 'Nav as at' being the text and the date 31st March being picked
    >> up from the other sheet.
    >>
    >> However the date on the other sheet is the following month, ie 30th
    >> June. SO I would need it to pick up the End of the month and minus it
    >> by one month and add it to the text.
    >>
    >> I have tried several methods but none seem to work!!
    >>
    >> Thanks
    >>
    >> Caroline

    >
    >
    > Hi Caroline,
    >
    > maybe (quite sure... ;-) ), you didn't tried this one:
    >
    > ="Nav at "&TEXT(EOMONTH(D3,-1),"dd mmmm yyyy")
    >
    > where D3 is the cell in which there is the date, so you have to
    > arrange the reference as you need. Also "dd mmmm yyyy" is the
    > formatting code for the date, you have to arrange this too as for
    > your need.


    Because the EOMONTH function need the Analysis Tool Pack (ATP) installed,
    you may also prefer to change the previous formula with this one:

    ="Nav at "&TEXT(DATE(YEAR(D3),MONTH(D3),0),"gg mmmm aaaa")

    which don't need ATP.

    --
    Hope I helped you.

    Thanks in advance for your feedback.

    Ciao

    Franz Verga from Italy



  5. #5
    Franz Verga
    Guest

    Re: Date and Text in one formula

    Nel post news:[email protected]
    *Franz Verga* ha scritto:

    [cut

    > ="Nav at "&TEXT(DATE(YEAR(D3),MONTH(D3),0),"gg mmmm aaaa")


    should be intende as:

    ="Nav at "&TEXT(DATE(YEAR(D3),MONTH(D3),0),"dd mmmm yyyy")

    --
    Hope I helped you.

    Thanks in advance for your feedback.

    Ciao

    Franz Verga from Italy



  6. #6
    Registered User
    Join Date
    06-17-2006
    Posts
    8

    Hello to all the expert

    I am trying to crack the code in my work place by making
    A rota for staff

    Here’s the implication and your help in this one is a huge blessing please help me here my email

    [email protected]


    LD is long day 12 hours
    N=night shift 12
    E=early shift 8
    L=late shift 8
    ENP=Emergency nurse practitioner 8
    EENP = early 8
    LENP= late 8
    LDENP=long day 12

    SD=study day 8 hrs

    SD needs to be calculated as 8 hrs on total hours row but on column number of employee in the dept is 0

    AL=annual leave 0
    BH=bank holiday 0
    ML=maternity leave 0
    S=off sick 0
    Peads=working in paediatric dept 12 on (total hours row) 0 hrs on column total number of staff because this person is not in adults dept

    Off=off duty 0
    LDCDU=Long day in clinical decision unit 12
    ECDU=8
    LCDU=8

    Column A

    From A4 to A68 the names of the staff

    Rows

    From b2 to ac2 days mon tue wed etc
    From b3 to ac3 dates 1 2 3 etc


    From b4 to ac65 shifts inserted i.e LD N E AL S off etc

    Rows
    From ad4 to ad65 each cell gives the total hours of each employe

    Column

    cel A66 l Early
    To calculate from b4 to b65 how many employee are in the dept from 8 am on to 8pm

    cell A67 Late
    to calculate from b4 to b65 how many employee are in the dept from mid-day to 8pm

    cell A68 night
    To calculate from b4 to b65 how many employee are in the dept on night shift

    then each column gives the number of staff working in the dept on each date i.e from c4:c65 d4:d65 up to ac4:ac65



    I hope all the details are easy to understand if not

    Please email me should you need any more details

    please help

    Many many thanks anticipated
    Last edited by Abanana; 06-23-2006 at 08:56 AM.

  7. #7
    Franz Verga
    Guest

    Re: Date and Text in one formula

    Nel post news:[email protected]
    *Abanana* ha scritto:

    > I am trying to crack the code in my work place by making
    > A rota for staff
    >
    > Here's the implication and your help in this one is a huge blessing
    > please help me here my email
    >
    > [email protected]
    >
    >
    > LD is long day 12 hours
    > N=night shift 12
    > E=early shift 8
    > L=late shift 8
    > ENP=Emergency nurse practitioner 8
    > EENP =8
    > LENP=8
    >
    > SD=study day 8 hrs
    >
    > SD needs to be calculated as 8 hrs on total hours row but on column
    > number of employee in the dept is 0
    >
    > AL=annual leave 0
    > BH=bank holiday 0
    > ML=maternity leave 0
    > S=off sick 0
    > Peads=working in paediatric dept 12 on (total hours row) 0 hrs on
    > column total number of staff because this person is not in adults dept
    >
    >
    > Off=off duty 0
    > LDCDU=Long day in clinical decision unit 12
    > ECDU=8
    > LCDU=8
    >
    > Column A
    >
    > From A4 to A68 the names of the staff
    >
    > Rows
    >
    > From b2 to ac2 days mon tue wed etc
    > From b3 to ac3 dates 1 2 3 etc
    >
    >
    > From b4 to ac65 shifts inserted i.e LD N E AL S off etc
    >
    > Rows
    > From ad4 to ad65 each cell gives the total hours of each employe
    >
    > Column
    >
    > A66 cell ealy
    > To calculate from b4 to b65 how many employee are in the dept from 8
    > am on to 8pm
    >
    > A67 cell Late
    > to calculate from b4 to b65 how many employee are in the dept from
    > mid-day to 8pm
    >
    > A68 night
    > To calculate from b4 to b65 how many employee are in the dept on night
    > shift
    >
    > I hope all the details are easy to understand if not
    >
    > Please email me should you need any more details
    >
    > please help
    >
    > Many many thanks anticipated



    May it could be better if you could post an example file on www.savefile.com
    (remembering to delete all personal/sensitive data).

    --
    (I'm not sure of names of menues, option and commands, because
    translating from the Italian version of Excel...)

    Hope I helped you.

    Thanks in advance for your feedback.

    Ciao

    Franz Verga from Italy



  8. #8
    Registered User
    Join Date
    06-17-2006
    Posts
    8

    Appreciation

    Thanks a lot Franz

    Quote Originally Posted by Franz Verga
    Nel post news:[email protected]
    *Abanana* ha scritto:

    > I am trying to crack the code in my work place by making
    > A rota for staff
    >
    > Here's the implication and your help in this one is a huge blessing
    > please help me here my email
    >
    > [email protected]
    >
    >
    > LD is long day 12 hours
    > N=night shift 12
    > E=early shift 8
    > L=late shift 8
    > ENP=Emergency nurse practitioner 8
    > EENP =8
    > LENP=8
    >
    > SD=study day 8 hrs
    >
    > SD needs to be calculated as 8 hrs on total hours row but on column
    > number of employee in the dept is 0
    >
    > AL=annual leave 0
    > BH=bank holiday 0
    > ML=maternity leave 0
    > S=off sick 0
    > Peads=working in paediatric dept 12 on (total hours row) 0 hrs on
    > column total number of staff because this person is not in adults dept
    >
    >
    > Off=off duty 0
    > LDCDU=Long day in clinical decision unit 12
    > ECDU=8
    > LCDU=8
    >
    > Column A
    >
    > From A4 to A68 the names of the staff
    >
    > Rows
    >
    > From b2 to ac2 days mon tue wed etc
    > From b3 to ac3 dates 1 2 3 etc
    >
    >
    > From b4 to ac65 shifts inserted i.e LD N E AL S off etc
    >
    > Rows
    > From ad4 to ad65 each cell gives the total hours of each employe
    >
    > Column
    >
    > A66 cell ealy
    > To calculate from b4 to b65 how many employee are in the dept from 8
    > am on to 8pm
    >
    > A67 cell Late
    > to calculate from b4 to b65 how many employee are in the dept from
    > mid-day to 8pm
    >
    > A68 night
    > To calculate from b4 to b65 how many employee are in the dept on night
    > shift
    >
    > I hope all the details are easy to understand if not
    >
    > Please email me should you need any more details
    >
    > please help
    >
    > Many many thanks anticipated



    May it could be better if you could post an example file on www.savefile.com
    (remembering to delete all personal/sensitive data).

    --
    (I'm not sure of names of menues, option and commands, because
    translating from the Italian version of Excel...)

    Hope I helped you.

    Thanks in advance for your feedback.

    Ciao

    Franz Verga from Italy

  9. #9
    Registered User
    Join Date
    06-23-2006
    Posts
    34

    Red face

    Thank you!!!

  10. #10
    Registered User
    Join Date
    06-23-2006
    Posts
    34

    Red face

    Having a problem re: my 1st email.

    I have renamed the module but now the macro is called for eg: cashflowscashflows. I think I just wanted to rename the macro rather than the module. As now in another sub part when I call this marco: call cashflows(), it wont work


    Please help!!

  11. #11
    Franz Verga
    Guest

    Re: Date and Text in one formula

    Nel post news:[email protected]
    *CarolineHedges* ha scritto:

    > Having a problem re: my 1st email.
    >
    > I have renamed the module but now the macro is called for eg:
    > cashflowscashflows. I think I just wanted to rename the macro rather
    > than the module. As now in another sub part when I call this marco:
    > call cashflows(), it wont work
    >


    Change back the name of the module.

    I think this sould solve your problem...

    --
    Hope I helped you.

    Thanks in advance for your feedback.

    Ciao

    Franz Verga from Italy



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1