+ Reply to Thread
Results 1 to 6 of 6

formula to autopopulate a cell with specifc data from another

  1. #1
    Registered User
    Join Date
    12-15-2011
    Location
    Edinburgh
    MS-Off Ver
    Excel 2013
    Posts
    11

    formula to autopopulate a cell with specifc data from another

    Hi all

    I think I need a formula that will take a cells contents but with this slight specifc criteria:

    I creating a sheet in excel 2007 that people will need to fill data in and I want to autopopulate two of the columns (H and J) with data they input into column O

    But if the data has a dot seperating words, I need only the words after the dot

    So D1111.XP input into column O should be XP, and D1111 would be just D1111



    Hope this makes sense

    thanks in advance

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,086

    Re: formula to autopopulate a cell with specifc data from another

    One way:

    =IFERROR(IF(FIND(".",A2)<>0,LEFT(A2,FIND(".",A2)-1)),A2)


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    12-15-2011
    Location
    Edinburgh
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: formula to autopopulate a cell with specifc data from another

    great, thanks for the response.

    minor tweak needed though, the final cell text should be the right of the dot (so Ive replaced the LEFT with RIGHT)

    and it should not transfer the dot itself in the destination cell

    So 0000.XP should just be XP

    so not sure how to amend this?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,086

    Re: formula to autopopulate a cell with specifc data from another

    Apologies ... can't tell left from right ;-)


    =IFERROR(IF(FIND(".",A2)<>0,RIGHT(A2,LEN(A2)-FIND(".",A2))),A2)


    Regards, TMS

  5. #5
    Registered User
    Join Date
    12-15-2011
    Location
    Edinburgh
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: formula to autopopulate a cell with specifc data from another

    that works for me!

    cheers for the help

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,086

    Re: formula to autopopulate a cell with specifc data from another

    You're welcome. Thanks for the rep.

+ 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