Results 1 to 5 of 5

Thread: Copy First Character in One Cell, Paste into Another....for 4,500 Rows?

  1. #1
    Acolyte jdanniel's Avatar
    Join Date
    Jul 2018
    Posts
    63
    Articles
    0
    Excel Version
    2016

    Copy First Character in One Cell, Paste into Another....for 4,500 Rows?



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hello, everyone, Iím using Office 365.

    Iíve exported some data in an Access database to Excel. Attached to this post is the spreadsheet, which Iím still in the process of tweaking and designing.

    What Iíd like help with, if possible, is this: Iíd like to automate entering a prefix in the Album Prefix column.

    What I mean by that is this: I want to take the first letter or number in the Album cell, and copy it to the corresponding Album Prefix cell.

    For example, if you look at the beginning of the Main worksheet, youíll see there are album prefixes for each album by 10 CC.

    Or, if you scroll down to the end of the worksheet, youíll see there are album prefixes for some albums by ZZ Top.

    Iíd like to have album prefixes for each record. Since there are about 4,500 records in this spreadsheet, I obviously donít want to do this by hand. I was hoping there might be a macro or VBA code that would allow me to do this. Iím not really a programmer, so I have no idea how to write VBA to do this.

    If it can be done via a macro, I donít know what steps to take to do this.

    So, I was hoping I could request some assistance with this. Is it possible to automate this task? If so, whatís the most practical procedure?
    Thank you! Jd
    Attached Files Attached Files

  2. #2
    Magician NoS's Avatar
    Join Date
    Jan 2013
    Location
    British Columbia
    Posts
    764
    Articles
    0
    Excel Version
    Excel 2010 64bit
    Won't the formula =LEFT([@Album],1) down the Album Prefix column work ?

  3. #3
    Acolyte jdanniel's Avatar
    Join Date
    Jul 2018
    Posts
    63
    Articles
    0
    Excel Version
    2016
    I'm not really an expert on formulas. I just learned something. I had no idea this could be done with a formula. Easy, too. It looks like that worked. Thank you!

    But I do have a follow-up question, for the sake of learning: Does the number 1 in that formula represent the character you want copied? If I substituted the number 2, would it put in the second character? I suppose I should just read about the LEFT function, and experiment with this formula. Thanks again!

  4. #4
    Acolyte jdanniel's Avatar
    Join Date
    Jul 2018
    Posts
    63
    Articles
    0
    Excel Version
    2016
    Okay, just learned something. The number represents the QUANTITY of characters you want copied. If I substitute 2, it copies the first two characters. Interesting. Now I'm going to dabble with this formula a bit more. Thanks again.

  5. #5
    Acolyte Fluff's Avatar
    Join Date
    Sep 2018
    Posts
    66
    Articles
    0
    Excel Version
    2013
    If you wanted the 2nd character you would use the mid function
    =MID([@Album],2,1)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •