Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Another excel question

  1. Registered TeamPlayer Cojiro's Avatar
    Join Date
    11-02-07
    Posts
    9,296
    Post Thanks / Like
    Stat Links

    Another excel question Another excel question Another excel question Another excel question
    Gamer IDs

    PSN ID: Cojiro918 Steam ID: dirtycojiro Cojiro's Originid: CojiroX918
    #1

    Another excel question

    Ok so here is what I need to do. I have to do a test case that involves me doing something 20k times. So I am trying to create an excel file with 20k different things that way I only have to do the task itself once and complete it 20k times, as opposed to doing 1 or 2 inputs and sending each of them 10k.

    So in excel what I want to do is create a file that basically looks like this

    cojiro1tpg
    cojiro2tpg
    cojiro3tpg
    cojiro4tpg
    etc
    down to 20k

    What I am wondering is if there is anything that I can put into the # spot where it will autofill with the number of the row.

    So something like cojiro(someshit)tpg.

    i tried googling but I am having a bitch of a time putting all that information ^^^^ into something understandable in search terms.


  2. Registered TeamPlayer CivilWars's Avatar
    Join Date
    02-13-07
    Location
    Fort Worth, TX
    Posts
    42,785
    Post Thanks / Like
    Blog Entries
    5
    Stat Links

    Another excel question Another excel question Another excel question Another excel question Another excel question Another excel question Another excel question
    Gamer IDs

    Steam ID: CivilWars CivilWars's Originid: CivilWars
    #2

    Re: Another excel question

    This may not be the best/easiest solution, but it will work.

    Make A1 cojiro
    Make B1 1
    Make C1 tpg
    Make D1 =A1&B1&C1

    Copy A1 down to 20k
    If you click on B1 there will be a a dark square on the bottom right. Click, hold, and drag it down to line 20k. It will make it all 1s, but click on the little box and select fill series.
    Copy C1 to 20k
    Copy D1 to 20k

    Column D will have the cojiroXtpg

    I will keep looking for an easier way.


  3. Registered TeamPlayer Cojiro's Avatar
    Join Date
    11-02-07
    Posts
    9,296
    Post Thanks / Like
    Stat Links

    Another excel question Another excel question Another excel question Another excel question
    Gamer IDs

    PSN ID: Cojiro918 Steam ID: dirtycojiro Cojiro's Originid: CojiroX918
    #3

    Re: Another excel question

    bwuaha thanks. that works.


  4. Registered TeamPlayer CivilWars's Avatar
    Join Date
    02-13-07
    Location
    Fort Worth, TX
    Posts
    42,785
    Post Thanks / Like
    Blog Entries
    5
    Stat Links

    Another excel question Another excel question Another excel question Another excel question Another excel question Another excel question Another excel question
    Gamer IDs

    Steam ID: CivilWars CivilWars's Originid: CivilWars
    #4

    Re: Another excel question

    If the number is at the beginning or end you can do it without the formula. If it has to be in the middle you will have to use the formula though. For example.

    A1 = cojiro1
    A2 = cojiro2

    Highlight A1 and A2, then click the fill handle and drag to 20K.


  5. Registered TeamPlayer Cojiro's Avatar
    Join Date
    11-02-07
    Posts
    9,296
    Post Thanks / Like
    Stat Links

    Another excel question Another excel question Another excel question Another excel question
    Gamer IDs

    PSN ID: Cojiro918 Steam ID: dirtycojiro Cojiro's Originid: CojiroX918
    #5

    Re: Another excel question

    no i thought of that but it is in the middle. its my email address using the + handle for it to register as a different address.

    so its more like cojiro+1@tpg.com


  6. Registered TeamPlayer huh?'s Avatar
    Join Date
    10-17-11
    Location
    Denver, CO
    Posts
    724
    Post Thanks / Like
    Stat Links

    Another excel question
    Gamer IDs

    Steam ID: 76561197962661957
    #6

    Re: Another excel question

    I do this all the time. Here is what you do.

    In A1, have this, "=ROWS(A$1:$A1)"

    In B1, have this, "="cojiro"&A1&"tpg""

    Now, drag and highlight down from A1 to A20k, and then click "ctrl + d" to drop fill. That gives you 1 to 20k.

    Then, do the same thing on B1 to B20k. Tada!
    Last edited by huh?; 02-22-12 at 02:29 PM.


  7. Registered TeamPlayer CivilWars's Avatar
    Join Date
    02-13-07
    Location
    Fort Worth, TX
    Posts
    42,785
    Post Thanks / Like
    Blog Entries
    5
    Stat Links

    Another excel question Another excel question Another excel question Another excel question Another excel question Another excel question Another excel question
    Gamer IDs

    Steam ID: CivilWars CivilWars's Originid: CivilWars
    #7

    Re: Another excel question

    I knew there was an easier way. Nice work huh.


  8. Registered TeamPlayer huh?'s Avatar
    Join Date
    10-17-11
    Location
    Denver, CO
    Posts
    724
    Post Thanks / Like
    Stat Links

    Another excel question
    Gamer IDs

    Steam ID: 76561197962661957
    #8

    Re: Another excel question

    A1 can use the fill series.

    And I just realize the quotes are kinda confusing in my post. Anyways, you guys will get it.

    Also, sometimes when you try to process excel file with functions, it gets tricky. You better highlight the column, copy, and paste special to a new excel with values, or better yet post to a text file before processing the file.


  9. Registered TeamPlayer enf's Avatar
    Join Date
    03-15-07
    Posts
    12,497
    Post Thanks / Like
    Blog Entries
    1
    Stat Links

    Another excel question Another excel question Another excel question
    Gamer IDs

    Steam ID: enf11
    #9

    Re: Another excel question

    Alt+F11
    Double-click on the sheet you want to do this on and copy the following:

    Code:
    Sub CojiroNaming()
        Dim x As Integer
        x = 1
        
        Do Until x = 20001
            Range("A" & x).Select
            ActiveCell.Value = "corijo" & x & "tpg"
            x = x + 1
        Loop
    End Sub
    Go back to your spreadsheet, go to Developer ribbon, click on Macros and run CojiroNaming
    Quote Originally Posted by ATEXANnHISGUN View Post
    given the right set of circumstances I can motivate myself to eat a plate full of shit.

  10. Registered TeamPlayer CivilWars's Avatar
    Join Date
    02-13-07
    Location
    Fort Worth, TX
    Posts
    42,785
    Post Thanks / Like
    Blog Entries
    5
    Stat Links

    Another excel question Another excel question Another excel question Another excel question Another excel question Another excel question Another excel question
    Gamer IDs

    Steam ID: CivilWars CivilWars's Originid: CivilWars
    #10

    Re: Another excel question

    Not even going to ask why you need 20k email addresses.


Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •  
Title