How is paste special used in spreadsheets?
I tried copying a substring from a column to make a new separate columns of sub strings. Now how would I delete the original column?
Related
I have my SQL output as five columns. When I paste the SQL output to Excel it seems to concatenate everything that is a string into one column until a number appears.
In this case, my first 4 columns are text and Excel they are concatenated to one column. My fifth column is a number and that's in the 2nd column in Excel. My column headers are all concatenated to a single cell.
When I paste to NotePad it looks fine. And even when I paste to a text box inside of Excel it looks fine. But when I go to paste the data from NotePad and the text box I get the same thing.
Does anyone know a solution for this? And is this an Excel or SQL issue?
Somehow the Text to Columns in my Excel settings got switched to comma instead of tab. Go to Data > Text to Columns > choose delimited and then choose tab.
I have a basic macro which exports some sheets from an excel and saves them as pipe delimited files
The issue is that each worksheet has a different format and each row within a sheet may have a different number of expected fields.
At the moment the macro just exports each sheet and assumes each row has the same number of delimiters as the longest row in the worksheet.
so I end up with this
1|2|3|4|5|6|7|8|9
1|2||4|||||
|2|||||||
instead of this
1|2|3|4|5|6|7|8|9
1|2||4
|2||
What is the best way of telling the Macro how many fields to expect for each row?
if each column is filled (not empty), you can do the test like not_empty(field) to know when stop the loop.
everyone
I would like to know how to split something like }{ )( ++ ** into 2 different cells in excel/google sheets i tried using the split function in google sheets but it requires a delimiter, i was successful in using excel's split to column toolbox but google sheets (I cant find one, it asks fore either a space , | etc or custom) but i cant be ""
data tab > text to column> fixed width > data columns
click on the arrow
and make the lines even by columns
works, question is how do i do that in google sheets?
You may try using the sample formula if you have a common pattern as given in Google Docs Forum.
However, as discussed in Combining and Splitting Data in Spreadsheets, delimiter is a character upon which you will split the contents of the Spreadsheets cell and using it is still required.
With reference to the given example:
if you want to split the text contained in the column A, using the delimiter " " (space), we will first need to insert an extra column. This will insure the formula doesn’t replace what is currently in column B.
I have a relatively long subroutine that calls two external subs. In the sub, on one sheet=Start, VBA copies an account number and stores it under the variable name Acct (formatted as string). At the end of the sub, I would like VBA to activate another sheet=Stop, match Acct with a value in Column A (which is formatted as a number), then delete the entire row containing that number. I am just needing some assistance with finding and deleting the entire row containing that number.
It may also be worth mentioning that the numbers in column A are not in numerical order. Also, both sheets are located in the same workbook, we can call WB1.
Try Match function, which will return the row number as an integer variable. Then use Rows(row number).Delete
https://mysyntaxvba.wordpress.com/2016/08/16/what-is-the-syntax-to-return-the-row-of-a-found-value/
I've noticed that if I use the text-to-columns feature with comma as the delimiter, any comma-delimited data I paste into Excel after that will be automatically split into columns.
This makes me think Excel must have some kind of global delimiter.
If this is true, how would I set this global delimiter using Excel VBA? Is it possible to do this directly, or do I need to "trick" Excel by doing a text-to-columns on some junk data, then delete the data?
My ultimate goal is to be able to paste in a bunch of data from different files using a macro, and have Excel automatically split it into columns according to the delimiter I set.
Junk data is the right answer. See here
http://spreadsheetpage.com/index.php/tip/clearing_the_text_to_columns_parameters