+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Merge cells & todays age/ date of birth

  1. #1
    Registered User
    Join Date
    03-04-2010
    Location
    INDIA
    MS-Off Ver
    Excel 2003
    Posts
    24

    Merge cells & todays age/ date of birth

    Hi All,

    I am facing a 2 problems .. can any one help me out in same ?????

    1) Problem # 1

    Is there any way to merge 3 different cells without losing "word" of each cell.

    The things will get more clear if you see the attached excel sheet.

    2) Problem # 2

    Its a list of employees, where age is written at the time of joining. so is there any way to find today's age ? Is there any formula that picks any random date as per today's age ????

    Please help me out...

    Thnax,

    Andy...
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Merge cells & todays age/ date of birth

    If you have birth date in F6 you can get age in years today with this formula

    =DATEDIF(F6,today(),"y")

    Where you don't have a birth date you can get an approximate age by adding the age at column A date to the years from that date, i.e.

    =DATEDIF(A6,Today(),"y")+G6

    so you could combine those to work in either situation like this

    =DATEDIF(IF(ISNUMBER(F6),F6,A6),today(),"y")+IF(ISNUMBER(F6),,G6)
    Audere est facere

  3. #3
    Registered User
    Join Date
    03-04-2010
    Location
    INDIA
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Merge cells & todays age/ date of birth

    Wht abt the 1st Problem ?????

    I want to merge Column c , D & E i.e Merging 1st Middle and Last Name ?????

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Merge cells & todays age/ date of birth

    If you merge cells, you will only retain the information in the first cell. I would Insert a column between E and F (creating a new blank column F). Then in F6, dragged down

    = C6 & " " & D6 & " " & F6

    or rearraign if you want last name first.
    Then Copy > Paste Special > Values to remove the formulas and make them constants. Then you can delete C,D and E.
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Merge cells & todays age/ date of birth

    Quote Originally Posted by andy9988 View Post
    Wht abt the 1st Problem ?????

    I want to merge Column c , D & E i.e Merging 1st Middle and Last Name ?????
    I suppose this means ddll's answer helped you for your 2nd question?
    You might think about a simple and plain " thanks"

    For your first question, see the CONCATENATE function

  6. #6
    Registered User
    Join Date
    03-04-2010
    Location
    INDIA
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Merge cells & todays age/ date of birth

    Thnx A Lot Both of You.

    You Saved My Lots of time...Hours ...Days..

    Thnax Once Again..

+ 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