Split comma-separated entries to new rows (No VBA) - excel

I currently have this data in a sheet:
Col A Col B
105 399, 400
207 405,406,407
and want to split the comma-separated entries in the second column and insert them in new rows as below:
Col A Col B
105 399
400
207 405
406
407
without resorting to VBA.
Is this possible?

Split ColB with Text to Columns and Space and Comma as delimiters. Follow the process described here then delete ColumnB, select (Blanks) in Value column and delete those rows. If you do not want the ColA values to repeat, in a new column Row2 insert:
=IF(A1<>A2,A2,"")
and copy down to suit. Select that column, Copy, Paste Special, Values over the top then copy again and paste into the Table. If you don't want Table format, right click within it and Table, Convert to Range.

Related

Choose next non-empty cell in Excel

I have a table (Table A) containing 96 rows with data in them. There's a second table (Table B) that references Table A. In Table B there is a calculation that either copies the data from Table A or puts "" because the data is outside of a specified range (e.g., IF(A1<500,A1,""). The end result in Table B is several rows without data in them.
I'd like to create a Table C that references Table B, but only copies rows with data in them. E.g., if the data in Table B looks like this:
465
461
168
46
187
198
48
I'd like Table C to look like this:
465
461
168
46
187
198
48
Is there way to do this with a formula?
Thanks! Nikki
Use this:
=IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($A$1:$A$20)/($A$1:$A$20<500),ROW(1:1))),"")
This will skip the blanks as it is copied down.
Select the range containing blank rows you want to remove.
Click Home > Find & Select > Go To Special.
In the Go To Special dialog box, check the Blanks option.
And then click OK, all of the entire blank rows are highlighted. Then click Home > Delete > Delete Sheet Rows, the blank rows have been deleted from the selected range.
You should try with this post:
https://www.extendoffice.com/documents/excel/2654-excel-dynamic-list-remove-blanks.html

Keep all rows whose 1st cell matches other rows' 1st cell

In a excel table (500K+ lines), I would like to keep only those rows, all of them, whose column A is 100% identical to other rows' column A. This is irrespective what's in columns B, C, etc., but the rows must be sorted in their entirety (i.e., rows not to be broken up). Rows whose column A is not 100% identical to at least one other row's column A are to be deleted.
I am looking for possible solutions other than using =COUNTIF(A:A,A1)=1.
For example, the original table:
coumnA columnB
abc 123
0xyz xxx
aaa-123 123
aaa-12 0xyz
0xyz 098
00xyz 098
0xyz x111xx
Keep all occurrences of rows with 100% identical column A:
0xyz xxx
0xyz 098
0xyz x111xx
This formula =COUNTIF(A:A,A1)=1, identifies multiples of column A and works in small sets of rows. Is there a better, more efficient way to accomplish this with row numbers that approach the excel sheet's limit (1,048,576 rows)?
An alternative to =COUNTIF(A:A,A1)=1 is to create a PivotTable with ColumnA for ROWS and Count of ColumnA for VALUES. Then lookup the A values in the PT and if their count is 1 flag them so with filtering on the flag the rows may be deleted.

Excel 2010 columns contain more than one number, need to sum all numbers within the column from multiple rows

Need to SUM Excel columns where 1 row has several numbers within one column
Column B
Row1 68
136
68
Row2 1394
931
33
33
Row3 33
420
350
250
SUM B1:B3 only SUMs first number in cell ?? Help please.
I see no straightforward way to accomplish this.
However, you may flatten the cells into individual values.
Parallel to each cell, issue the formula
=SUBSTITUTE(A1, CHAR(10), ",")
This will make each cell comma separated. Your row one will become
68,136,68
You may then employ text to columns under the Data ribbon using the comma delimiter to give each number its own cell.
Thereafter you may rearrange the numbers and issue your SUM.
1] In C1 and copied down to suit:
="="&SUBSTITUTE(B1,CHAR(10),"+")
2] Copy ColumnC and Paste Special..., Values over the top, Replace All = with =.

Equation/ sorting to separate one long column of data into separate columns

I have two columns of data in an excel spreadsheet that is listed like, each date has three numbers associated with it. It is shown like this:
1 112
1 123
1 456
2 788
2 989
2 901
What I am trying to do is have the data shown like this:
1
112
123
456
Then in another column next to it have;
2
788
989
901
Okay, this can be done pretty easily/quickly.
First, select your entire column that has # ### and go to Data --> Text to Columns, and choose “Delimited”, then use a “Space” delimiter. This will separate your numbers by the space, so 1 and 2 will be in Column A, and the three digit numbers are in B (or wherever you decide to put them).
Then, just get the unique values from column A. I tend to copy the entire column to a temporary column (or worksheet), then highlight them and go to Data --> Remove Duplicates. Now you have a list of unique numbers. Copy and paste these (transposing) into (for example) column D.
Then, in D2, enter this formula (adjust ranges as necessary) as an array, using CTRL+SHIFT+ENTER:
=IFERROR(INDEX($B$1:$B$6,SMALL(IF($A$1:$A$6=D$1,ROW($B$1:$B$6)-ROW($B$1)+1),ROWS($B$2:$B2))),"")
Here’s a screenshot of the final output:

Organizing data in Excel to be applied to arcMAP

I have data in an excel spreadsheet. It is arranged as follows: 6 rows with 15 columns. Then a 7th row with 8 columns. Then 6 rows with 15 columns and a 7th row with 8 columns. This repeats down the spreadsheet. There are 441 'blocks' of this pattern.
There are two options that I have for this data.
Option 1: I would like it to be in a single column, so the values from the first row are now the first 15 values in column 1, then the values from the second row are now the next 15 values in column 1, and so on.
Option 2: I would like the values to be formatted in a grid that is 98 columns ad 441 rows. The data from the first 'block' would be the first row. the data from the second 'block' would be the second row.
Is there any way that this can be done?
Option 1 is possible with unpivoting. Assuming your data starts in A1, insert a new row at the top and a new column at the left and apply the steps detailed here. From the Table delete the left-hand two columns and filter the remaining column to delete blank rows.
For Option 2 consider OFFSET.

Resources