+ Reply to Thread
Results 1 to 10 of 10

Copying a list without spaces to cells with spaces between them.

  1. #1
    Registered User
    Join Date
    08-18-2019
    Location
    arizona
    MS-Off Ver
    2016
    Posts
    5

    Copying a list without spaces to cells with spaces between them.

    Hi all, this is my first post here, and I have looked around the forum for an answer to my problem but to be honest, I dont even know the correct terminology for what I'm trying to do.

    Basically, I have been tasked with assigning equipment to people on a roster, and also creating a printable card for them to turn in and have the equipment issued. The cards are about 13 cells tall, with 1 cell spacing between them. I can get roughly 3 to a page.

    What I need to do is pull various data from the roster sheet and put it in cells on these little cards. I can do the first one just fine, but if I try to do the second one, either below or next to the first one, it will not properly index to the second row on the roster sheet. It reaches straight across and pulls data from row 15-ish. I have spent hours on youtube, various how-to sites, and here trying to figure out how to do this with no luck

    Basically what I am trying to do is pull data from Sheet1.A1, B1, C1, D1 over to Sheet2.A1, B1, C1, D1, Then pull data from Sheet1.A2, B2, C2, D2 over to Sheet2.A15, B15, C15, D15, roughly 300 times. I have looked at INDEX/MATCH combinations but I cannot figure out how to do this. If this is unclear please let me know, I can try to explain it better.

    Any help on this would be greatly appreciated. Thanks in advance!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,940

    Re: Copying a list without spaces to cells with spaces between them.

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    08-18-2019
    Location
    arizona
    MS-Off Ver
    2016
    Posts
    5

    Re: Copying a list without spaces to cells with spaces between them.

    I attached an example workbook so you can see what I'm trying to do. I made 2 cards, the top one is correct and the second one I highlighted in red what I want to put in those boxes. I can manually code them no problem, but doing so 300+ times on my real workbook will be unmanageable. I hope it makes sense what I'm trying to do
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,420

    Re: Copying a list without spaces to cells with spaces between them.

    For the one in cell A26 (use a similar structure for the other cells)...

    ='EQUIPMENT LIST'!B2

  5. #5
    Registered User
    Join Date
    08-18-2019
    Location
    arizona
    MS-Off Ver
    2016
    Posts
    5

    Re: Copying a list without spaces to cells with spaces between them.

    yes i can manually enter where the data is supposed to come from, but doing so 300+ times is going to be a nightmare. I was hoping there would be a way to formulate one, then drag it down and make more. If not, that's a bummer, but I guess I'll make do.

  6. #6
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,420

    Re: Copying a list without spaces to cells with spaces between them.

    Quote Originally Posted by NoviceRenegade View Post
    yes i can manually enter where the data is supposed to come from, but doing so 300+ times is going to be a nightmare. I was hoping there would be a way to formulate one, then drag it down and make more. If not, that's a bummer, but I guess I'll make do.
    You showed one "card" with three cells you needed formula in... are you saying you have 299 more of these "cards" somewhere? If so, where? Maybe if you showed 2 or 3 or them in their proper location, we might be able to figure something out for you, but showing us one range and making us guess where the other ranges might be isn't going to get you far. I will say, though, that I don't think a formula solution it possible because it looks like you might have constant data between the cells requiring the formula (I'll know for sure when you show us addition ranges with those red cells that need the formula). If that is the case, there might be a macro solution available, but again, I will need to see more of your layout to know for sure.

  7. #7
    Registered User
    Join Date
    08-18-2019
    Location
    arizona
    MS-Off Ver
    2016
    Posts
    5

    Re: Copying a list without spaces to cells with spaces between them.

    No problem Rick, sorry for the confusion. I have added 4 more, with the 5th one showing the error I'm struggling with in red. The first 4 cards are manually entered, but when you copy/paste the template, the formula in the cell reaches horizontally across to the list sheet, as opposed to incrementing by 1 row from the card above it. I don't know how to increment the data by just 1 row per card. Hope that helps.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-18-2019
    Location
    arizona
    MS-Off Ver
    2016
    Posts
    5

    Re: Copying a list without spaces to cells with spaces between them.

    I have some experience in regular programming, so my train of thought was something along the lines of

    Card 2 cell reference = Card 1 cell reference + 1. If I could get that working, I could manually code the first card, then use said formula on 2-300 and it would be easy peasy. I just don't know how to make excel do that, or if that functionality even exists. I hope that makes sense.

  9. #9
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,923

    Re: Copying a list without spaces to cells with spaces between them.

    Try this:

    1.Number:

    =INDEX('EQUIPMENT LIST'!A:A,COUNTIF($A$1:$A1,$A1)+1)

    2.Name:

    =INDEX('EQUIPMENT LIST'!B:B,COUNTIF($A$1:$A1,$A1)+1)

    3.SERIAL #:

    =INDEX('EQUIPMENT LIST'!C:C,COUNTIF($A$1:$A1,$A1)+1)

  10. #10
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Copying a list without spaces to cells with spaces between them.

    With helper column, you can do. In EQUIPMENT LIST sheet in "D2" =row()-1
    In sheet1 "B2" =ROW()-1
    In "B17" =B2+1
    "D3"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    "d5"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    now you select "A14" to "E28" & copy paste in next row.
    File is attach.
    Attached Files Attached Files


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark 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)

Similar Threads

  1. Replies: 9
    Last Post: 12-31-2018, 01:29 PM
  2. Formula To Create a List Without Spaces From Data With Spaces
    By nicklasnicklas in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-11-2017, 01:58 AM
  3. How to reference spaces as spaces not zeros
    By Rob K in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-23-2015, 04:56 AM
  4. Copying part of a cell which has no spaces
    By 2013 in forum Excel General
    Replies: 2
    Last Post: 11-04-2013, 05:30 PM
  5. [SOLVED] List of Valuses with Spaces and make a new list without spaces.
    By omallyfoster in forum Excel General
    Replies: 6
    Last Post: 05-21-2013, 08:14 AM
  6. [SOLVED] Replacing double spaces with single spaces
    By EdWoods in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-15-2013, 01:20 AM
  7. [SOLVED] sheet1 row with spaces between cells, pulled to sheet2 column with no spaces between cells
    By chestersneakers7 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-18-2013, 05:56 PM

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