Page 1
Page 1
Started By
Message

Excel question

Posted on 9/24/17 at 4:23 pm
Posted by dcrews
Houston, TX
Member since Feb 2011
30193 posts
Posted on 9/24/17 at 4:23 pm
I have two spreadsheets.

1st spreadsheet has information I need to copy/paste onto the 2nd. Problem is, I need to paste the information to the 2nd spreadsheet on every other line.

The 1st spreadsheet info does not have a blank cell in between each cell of info I am copying.

The information is in a column (vertical).

How can I achieve the copy/paste all at once without having to copy/paste each individual cell?
Posted by fishbig
Member since Feb 2007
1585 posts
Posted on 9/24/17 at 4:33 pm to
Format the first spread sheet by inserting column and then cipy/paste to other spreadsheet.
Posted by LSUtigerME
Walker, LA
Member since Oct 2012
3796 posts
Posted on 9/24/17 at 6:38 pm to
Good question. I assume it’s a lot of columns.

You could write a simple macro to write the contents of each column to every other column. Just use separate counters for each.

You could also set up formula based columns on a 3rd sheet. Number across the top, Row1 = Col+0.5. If (Row1=Whole Number, Sheet1(Col),Sheet2(Col)).

I’m not at a computer to give you context, but that should be fairly easy to execute. You can then copy/paste values to get rid of the formulas.
Posted by cajuncarguy
On the road...Again!
Member since Jun 2013
3135 posts
Posted on 9/24/17 at 7:28 pm to
quote:

Format the first spread sheet by inserting column and then cipy/paste to other spreadsheet.


I think you mean inset rows to make it match the other spreadsheet. When you insert rows the formulas adjust to take those additional cells into account.
Posted by southernelite
Dallas
Member since Sep 2009
53177 posts
Posted on 9/24/17 at 7:44 pm to
Add a column in Spreadsheet A.

Then start at 1 and fill series to the bottom. Copy that range and paste it after the last value (first blank row). Then sort by column A descending.

Copy and paste the data without column A.
Posted by whitefoot
Franklin, TN
Member since Aug 2006
11181 posts
Posted on 9/24/17 at 9:21 pm to
I would just copy the data to a text editor, replace a single hard return with two hard returns, then paste back into excel.
Posted by foshizzle
Washington DC metro
Member since Mar 2008
40599 posts
Posted on 9/25/17 at 6:53 am to
quote:

I would just copy the data to a text editor, replace a single hard return with two hard returns, then paste back into excel.


This. Notepad is still useful occasionally ...
Posted by LSUtigerME
Walker, LA
Member since Oct 2012
3796 posts
Posted on 9/25/17 at 8:46 am to
Can you automate replacing a single return with two in Notepad? By using Notepad, when he pastes the data, will it overwrite the information on every other cell to blank?

OP, what does each spreadsheet look like? Do you need to write each line individually? Can you paste large blocks over the other data? Is the alternating data only located in Col A, or is it more expansive?

My first response assumed you had multiple columns of data from two sheets, that you needed to paste in an alternating fashion. Reading it again, it appears you just have one column you need to paste on alternating lines, between existing data with a blank row.
Posted by Spock's Eyebrow
Member since May 2012
12300 posts
Posted on 9/25/17 at 9:18 am to
quote:

Can you automate replacing a single return with two in Notepad?


Doubtful. Use a decent editor like Notepad++. It's free and has a full regexp implementation. It's also got an awesome rectangular block selection capability I use in certain workflows.
Posted by TheJacer
Member since Nov 2012
789 posts
Posted on 9/25/17 at 2:08 pm to
Insert a column to the left of your data, this'll make your data column B. In column A type 1, 3, 5, 7 in the first four rows. This should be the set of data in column A: A1 = 1, A2 = 3, A4 = 7. Now select the four entries and use the grabber at the bottom of the fourth cell to copy down the entire length of your data set in column B. Now in your second spreadsheet you'll type 1, 2, 3, 4 in the first four cells of column A: A1 = 1, A2 = 2, A3 = 3, A4 = 4. Now copy that down the entire sheet in sequence.

Now the fun part, in your second spreadsheet in cell B1 type this: =ISNA(VLOOKUP(A1,[SPREADSHEET1]SHEET1!A:B,2,FALSE),"") but replace "SPREADSHEET1" and "SHEET1" with the actual name of your first spreadsheet and the sheet with all your data. Once you've got this formula working fill it all the way down your sheet and you'll have the information from the first spreadsheet on every other line with empty cells between. You can now select column B in your second spreadsheet and copy + paste values. Once you're satisfied with the results you can delete column A, making column B the new column A. Also don't forget to undo the changes we made to the first spreadsheet after pasting values.

ETA: Just realized this question was from yesterday. Oh well.
This post was edited on 9/25/17 at 2:10 pm
Posted by lynxcat
Member since Jan 2008
24154 posts
Posted on 9/25/17 at 9:35 pm to
This is the exact solution I would use. Nicely explained.
Posted by dcrews
Houston, TX
Member since Feb 2011
30193 posts
Posted on 9/25/17 at 10:59 pm to
quote:

Add a column in Spreadsheet A.

Then start at 1 and fill series to the bottom. Copy that range and paste it after the last value (first blank row). Then sort by column A descending.

Copy and paste the data without column A.



This is what I wound up doing. Worked perfectly
Posted by whitefoot
Franklin, TN
Member since Aug 2006
11181 posts
Posted on 9/26/17 at 12:57 am to
quote:

Can you automate replacing a single return with two in Notepad? By using Notepad, when he pastes the data, will it overwrite the information on every other cell to blank?

Notepad++
Or even Word if I'm trying to retain any formatting (fonts, color etc.)

Yes, every hard return will give you a new row.

When you paste into the text editor columns are separated by tabs.
Posted by StickD
Houston
Member since Apr 2010
10558 posts
Posted on 9/26/17 at 5:52 pm to
ASAP utilities add on is super. I haven't used it in a while but it's pretty awesome.
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on Twitter, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookTwitterInstagram