+ Reply to Thread
Results 1 to 9 of 9

What can I use to populate a cell using information in other cells?

  1. #1
    Registered User
    Join Date
    05-11-2012
    Location
    Racine, WI
    MS-Off Ver
    Excel 2010
    Posts
    4

    Post What can I use to populate a cell using information in other cells?

    Hello,

    I have not reviewed other posts and am running out of time so I apologize for that.
    I need to create ID's based on a prefix and then other criteria within three different cells and only using portions of the data within those cells.
    I want to take the first initial of the first name, the first initial of the last name and then the last three digits of a six digit number and append it to a prefix I have auto filled within the cell(s).

    EX:
    Cell B1 contains FirstName (John)
    Cell C1 contains LastName (Smith)
    Cell H1 contains six digit number (123456)

    I auto fill Cell D1 with a prefix of z001_

    Can a formula populate the remaining characters to show the value of z001_js456
    Where z001_ is my autofill, j is the first initial of the first name, s is the first initial of the last name and 456 are the last three digits of a numeric code.

    I want to be able to do this for any number of rows
    Any help is greatly appreciated.

  2. #2
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: What can I use to populate a cell using information in other cells?

    I think you'd have to have a helper say in E1

    =D1&"_"&LEFT(B1,1)&LEFT(C1,1)&RIGHT(H1,3)
    Last edited by Russell Dawson; 05-11-2012 at 08:11 AM.
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: What can I use to populate a cell using information in other cells?

    maybe

    =D1&LEFT(B1,1)&LEFT(C1,1)&RIGHT(H1,3)
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: What can I use to populate a cell using information in other cells?

    Or if z001_ will remain static for all rows, then in D1, type

    ="z001_"&LEFT(B1,1)&LEFT(C1,1)&RIGHT(H1,3)
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: What can I use to populate a cell using information in other cells?

    Three of a kind!

  6. #6
    Registered User
    Join Date
    05-11-2012
    Location
    Racine, WI
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: What can I use to populate a cell using information in other cells?

    WOW!, you guys rock! I used the last formula cause the prefix is static (or can be changed easily).
    This saves me hours of time. Thank you so much all of you!

    Anyone have anything for a random password generator that can auto fill cells as well.
    Criteria:
    Be at least 8 positions in length
    Contain a mix of alphabetic and non-alphabetic characters (numbers, punctuation or special characters) or a mix of at least two types of non-alphabetic characters.
    Not contain your userid as part of the password

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: What can I use to populate a cell using information in other cells?

    Rcabunac,

    Please do not mix 2 questions in the same thread. To get better and faster responses similar to this thread, please post in a new thread.

  8. #8
    Registered User
    Join Date
    05-11-2012
    Location
    Racine, WI
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: What can I use to populate a cell using information in other cells?

    Fair enough will post a new thread.

  9. #9
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: What can I use to populate a cell using information in other cells?

    Thank you for understanding. Its great you got the solution you needed. Please mark this thread as solved.

+ 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