+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    06-21-2007
    Posts
    3

    Headers referencing text from cells

    Good day,
    This is my first post on this forum so a quick hello from me

    I've quite hastily been learning excel over the past few days (managed to go 23 years without really using it) and am finding a few difficulties.

    At the moment i'm trying to set the header of my document to be a concatination of the text from several cells.

    i.e. Project Name = A14, Project Number = B14, Project Date = C15

    I would like the header to be something along the lines of:

    B14 & " " & A14 & " on " & C15

    I hope this makes sense, as i say i have little knowledge on excel at the moment but am eager to learn quickly Thank you in advance.

    Spunky

  2. #2
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    How I suggest you do this is by putting this in A1

    =B14&" "&A14&" on "&TEXT(DATE(YEAR(C15),MONTH(C15),DAY(C15)),"dd/mm/yyyy")
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    06-21-2007
    Posts
    3
    Thank you, i had a feeling i might have to do it like that.

    If i can ask another quesiton, the cells i'm referencing are on another static named sheet "Details". Is there a way to reference things like Sheets("Details").cells(B15) and such to give the same header as you have provided?

  4. #4
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    Yes you can do that to with this, just add the sheet name followed by !

    =Details!A14&" "&Details!B14&" on "&TEXT(DATE(YEAR(Details!C15),MONTH(Details!C15),DAY(Details!C15)),"dd /mm/yyyy")
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  5. #5
    Registered User
    Join Date
    06-21-2007
    Posts
    3
    Had some trouble with some merged fields but just worked out how to get around that. Thanks alot, looks the part now

  6. #6
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    Glad to hear you're sorted - thanks for the feedback
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

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.2.0