+ Reply to Thread
Results 1 to 5 of 5

combine data and add extra info

  1. #1
    Registered User
    Join Date
    10-05-2016
    Location
    Madison county, Illinois
    MS-Off Ver
    Excel For Mac 2016
    Posts
    2

    combine data and add extra info

    I work in a school setting and we are becoming 1:1. In order to make the process easier for our 3 Tech Advisors, I am trying to make a macro. This macro needs to take from a list of first names (in column B) add a period to the end of it and add it to the matching last name (column A). It would look like this "john.doe". It would need to do this for several hundreds of names. It then needs to take the first letter of the first name and the first letter of the last name and combine them twice. It would look like this "JDJD". Then add this "JDJD" to a pre-assigned 4 digit number (in column C). It would look like this "JDJD1234". So basically I need to take all of this and put it onto a separate workbook with the "john.doe" being in column A, and "JDJD1234" being in column B. But, they would need to stay together. If anybody can help with this it would be spectacular.
    Last edited by bieglowe; 10-05-2016 at 01:54 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: Need Help Creating a VBA Program

    Hi, welcome to the forum

    I adjusted your title for you.

    Do you really need VBA for this?

    A
    B
    C
    D
    E
    1
    Name1 name2 Combo Add extra
    2
    aa1 bb1
    1234
    aa1.bb1 ABAB1234
    3
    aa2 bb2
    1235
    aa2.bb2 ABAB1235
    4
    aa3 bb3
    1236
    aa3.bb3 ABAB1236
    5
    aa4 bb4
    1237
    aa4.bb4 ABAB1237
    6
    aa5 bb5
    1238
    aa5.bb5 ABAB1238
    7
    aa6 bb6
    1239
    aa6.bb6 ABAB1239
    8
    aa7 bb7
    1240
    aa7.bb7 ABAB1240
    9
    aa8 bb8
    1241
    aa8.bb8 ABAB1241
    10
    aa9 bb9
    1242
    aa9.bb9 ABAB1242
    11
    aa10 bb10
    1243
    aa10.bb10 ABAB1243
    12
    aa11 bb11
    1244
    aa11.bb11 ABAB1244


    D2=A2&"."&B2
    E2=UPPER(LEFT(A2)&LEFT(B2)&LEFT(A2)&LEFT(B2))&C2
    both copied down
    Last edited by FDibbins; 10-05-2016 at 12:09 PM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: Need Help Creating a VBA Program

    Deleted my duplicate post
    Last edited by FDibbins; 10-05-2016 at 11:27 AM.

  4. #4
    Registered User
    Join Date
    10-05-2016
    Location
    Madison county, Illinois
    MS-Off Ver
    Excel For Mac 2016
    Posts
    2

    Re: combine data and add extra info

    Oh... I fell pretty dumb right now. I suppose I don't, thanks a bunch for the help, and fixing my title XD.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: combine data and add extra info

    Based on your PM question...
    Can you explain how your explanation works? And how to use it? I would greatly appreciate it.
    D2=A2&"."&B2
    This is just taking whats in column A, adding a . and then adding what's in column B

    E2=UPPER(LEFT(A2)&LEFT(B2)&LEFT(A2)&LEFT(B2))&C2
    All this is doing is taking the left-most character from A, adding it to the left-most character from B (twice), then coverting that to UPPER case, and then adding what is in column C

    make sense? If not, please ask again

    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)

Similar Threads

  1. creating a house points scoring program
    By 167notout in forum Excel General
    Replies: 6
    Last Post: 09-29-2015, 08:22 PM
  2. Creating a complex program...
    By VolInsp-Imp in forum Excel General
    Replies: 6
    Last Post: 05-09-2012, 07:49 PM
  3. Creating a program around a workbook
    By redkilner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2012, 09:14 PM
  4. Creating a selector program - help creating the dropdown menus
    By MattP299 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2011, 03:19 PM
  5. Creating a executable VB program
    By fabb2004 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-21-2010, 05:53 AM
  6. Help creating a program
    By fragle123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-25-2008, 06:37 AM
  7. help creating labour program
    By bpman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-18-2005, 03:06 AM

Tags for this Thread

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