Txt imported table empty rows deletion - excel

I have a txt imported table (few columns, roughly 3k rows) however it has some empty rows (entirely). I want, with use of formula only, to create a copy of this table without those empty rows. It this possible? If it is, how?

The formula from https://stackoverflow.com/a/23013689/1544886 may help, provided of course you change the "yes" to "" and adjust for the number of columns.
=IFERROR(INDEX(Sheet1!B:B,SMALL(IF(Sheet1!$A$2:$A$7="",ROW(Sheet1!$A$2:$A$7)),ROW()-ROW($A$2)+1)),"")

Related

Return all matches in columns using one criterion (from drop down on another sheet)

I am having two tables, one table (table 1) below is main data, separated into many columns and blocks per 10 rows in one, as you can see A2:A11, A12:A21 and so on (many rows and columns) ... In Column A are unique numbers, but one number per block as a unique, and all other information in other columns can differ, sometimes will be more data sometimes not. The data is always same structured.
What I am looking is to have report / printable sheet where I will have all my columns on one sheet, but in a Column A2 for instance drop down list that will use all unique numbers from main data table and populate all matches on report page, same as it is on picture below. There are many columns that should work automatically when I choose something from "Number" drop down. The trick here is, there must be 10 rows per block also, I have organized it as it should be, but I can't figure out how to populate using functions. So, you can imagine clicking one drop down and getting those lists updated without scrolling endlessly through columns and rows on main data table...
Where I have a problem is that I am getting matches only for first rows but not whole rows (or all rows where matches are) ...
using this function:
=INDEX(Table1[Datum];SMALL(IF(Table1[Nummer]=Printable!$A$2;ROW(Table1[Nummer])-ROW(INDEX(Table1[Nummer];1;1))+1);1))
If someone can help me out, I would be happy!
Try below formula. After putting formula to cell drag down and across as needed. I have tested this formula in Excel2013 and with range (not as table). So, you have to adjust formula for table. I suggest you to first test the formula in single sheet like my screenshot and if it is successful then go for table in Report sheet.
=INDEX(INDEX(B:B,MATCH($G$2,$A:$A,0)):INDEX(B:B,MATCH($G$2,$A:$A,0)+9),ROW(1:1))

How to get the rows which has a value greater than a number across all columns in excel sheet?

I am newbie to the excel formulas.I have an excel sheet which has lets say 100 rows and 100 columns. columns have different values from 0 to 20. I want the rows where any of the column value is greater than 10.
How to ignore the hidden columns, if these are in the range, without modifying the range? I mean based on some IsHidden kind of property?
Something simple like:
Formula used in F1:
=IF(COUNTIF(A1:E1,">10")>0,TRUE,FALSE)
If you have data in 100 columns from A to CV, put this at the top of an empty column (CW1) and fill down:
=MAX(A1:CV1)>10
You could try:
=IF(MAX(A1:C1)>10,"Greater",IF(MAX(A1:C1)=10,"Equal",IF(MAX(A1:C1)<10,"Smaller")))
Image:
New Version as per request:
=IF(MAX(A1:B1,E1:F1)>10,"Greater",IF(MAX(A1:B1,E1:F1)=10,"Equal",IF(MAX(A1:B1,E1:F1)<10,"Smaller")))
You can't automatically ignore hidden columns in formulas, but you can automatically ignore hidden rows. If you transpose your data, using Copy > Paste Special, you can use this formula to test the maximum value ignoring hidden rows:
=AGGREGATE(4,5,A1:A100)>10
To understand the first two parameters, you can look at the help on the AGGREGATE function, or you can type out the function manually to get pop-ups lists that explain the options.

Excel: Delete groups of rows that looks similar

Using Find and using delete set of rows you can delete rows that contain certain content.
Is it possible to select and delete a group of rows that looks similar?
Take this excel file for instance. I want to delete all rows that are similar to 1576 to 1578, because there are many tables that has these values and I would like to get the "Mean" row right below "Dislike -B" row
Assuming Total is in ColumnA, I think in Row2 of a spare column and copied down:
=OR(RIGHT(B2)="_",A1="Total",A2="Total")
will give you a flag to filter on to select rows for deletion.

Distributing rows of small table based on values of a bigger table (Excel)

I have two tables of different lengths in Excel. The first column of the biggest table contains all the values of first column of the smaller table (and more). I would like the rows of the small table to be distributed to match the big table (creating empty rows when the values are missing). I would like to use a formula for this if possible (VBA code alternatively). I cannot do this manually because the actual tables I am working with have thousands of rows. Here are pictures describing what I am trying to do:
Initial lists
Result
EDIT: I should add that the first columns of both lists in the examples are numbers, but in the real lists I am working with the values are composed of letters and numbers
Any help would be greatly appreciated!
Thanks
I moved the "small" table over to make room for the results. I put them in F and G.
Then in C1 I put this formula:
=IFERROR(VLOOKUP($A1,$I:$J,COLUMN(A:A),FALSE),"")
Copy it over on column and down the extent of the large table.

how to optimize speed excel 2007 (±20,000 rows)

I'm in the process of working with an Excel file that contains two columns (old URL and new URL). But it contains about 20,000 rows.
And I have another file containing about 400 old/new URL that needs to be imported in the big ±20,000 rows file.
I have to do all kinds of processing, like:
- Find all duplicate rows (same two columns more than once...). That functionnality would be in a column and it would be good to run that function each time I add 1 row to check if that URL combination already exists in the file
Note that I already turned the sheet into a table.
2 questions now:
1) should I do some kind of vlookup from the ±20,000 rows sheet and the ±400 rows sheet, or VBA? I don't know what would be the best way to do this (i.e.: if that row from the ±400 rows sheet is not in the ±20,000 rows sheet, add it...). Should I use vlookups or populate arrays in VBA (speed-wise)? If I use vlookup, it is true that it is possible to put the vlookup function in a sheet and refer to it in every row instead of puting a vlookup function directly in every row?
2) How can I optimize the 20,000 rows sheet because now, each time I want to sort or filter, it takes an eternity to redraw and it freeze my PC for that time!
Thanks for you help.
Firstly to ommit the dupes from the 400ish row sheet that need to be added in, use a COUNTIFS formula against the big sheet, then sort by this value and only copy in things where there is < 1 for the value (or error).
Secondly I would probably do the same thing in the big sheet but referencing itself, anything with a value above 1 is a dupe.
Lastly, are there formulas in the 20,000 row sheet? I could set up a 20,000 row sheet with just a "1" in range A1:A20,000 and doing anything on it would be super quick. It all comes down to what data you have in there and what you can do to reduce it's load on the system (ie convert formulas to values if they no longer need to calculated)
Excel 2007 has a built-in feature and VBA you can use for your situation: Range.RemoveDuplicates or Data tab -> Data Tools group -> Remove Duplicates
For example data:
Click the Remove Duplicates button:
And you are done!
The VBA equivalent is:
ActiveSheet.Range("$A$1:$B$10").RemoveDuplicates Columns:=Array(1, 2), Header:=xlYes
Note the 1 & 2 does not mean Columns A & B. It means the Columns of the selected Range.
If your worksheet only contains 2 columns, you could use UsedRange instead.

Resources