I have one array of zeros and ones in one row like this:
But I want to rearrange them to look like this, every 5 bits in one row:
with Office 365:
=INDEX($1:$1,SEQUENCE(INT(COUNT($1:$1)/5),5))
The result will spill.
with older versions use:
=INDEX($1:$1,((ROW($ZZ1)-1)*5)+COLUMN(A$1))
Copy over five columns and down till you get all 0
Copy each set of cells that you want to rearrange from row to column format, special paste and make sure to check the box "transpose".
Related
I have an excel sheet with 14000 rows and 9 columns, first column is Name, second one is phone number etc... and I have a list of 100 phone numbers that I want to filter out, but so far I can only filter a single value in that list and get a single row as a result. but I would like to get all the rows with phone numbers that are in my list. How can I filter for more than one value?
Without VBA:
First put your delete-list in Z2 through Z101. Then in column 10 cell J2 enter:
=IF(ISNA(MATCH(B2,Z:Z,0)),"","KILL")
and copy downwards. Filter on the newly added column and delete all KILL rows.
(If you need to preserve the kill-list, place it on a separate sheet)
This formula looks for Name that match Phone
This is easy to do with Excels Advanced-Filter an without any helper column:
1) Goto Data
2) Choose Advanced Filter
3) Follow the Dialog
You can choose if you want to filter your Data on same place (overwrite the old one) or copy the filtered data on a new place. Also you can remove duplicates if necessary.
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.
I have a xls document in OpenOffice with multiple rows, I want to concatenate strings from 3 lines and put into one
I know to concatenate columns is a little bit easyest, but how about rows
I want to merge three lines into one, result must to be like:
1 "I want to be merged"
2 "I also want to be merged"
result can be exported in the same or new sheet
Any Ideas?
In D2 and copied down to suit:
=IF(MOD(ROW()-1;3)=1;A1&" "&B2&" "&C3;"")
If to move elsewhere, then select all, Copy and Paste Special check only 'Text'.
I'm using Excel 2016. I have a table with headers and when I plug in a formula, Excel is automatically replicating the formula to all other cells in the column. While that would normally be fine, it's wrongly calculating the table headers. I thought I could just change the top row to exclude the header but Excel updates the rest of the column which I don't want.
I would like to either turn this automatic formula replication feature off or figure out a way to customize the formula in the top row so it doesn't calculate the header value.
Here's the formula I'm using and I didn't do anything special with the table outside of add a 'Totals' row:
=SUM(B2+C1-D2)
You can stop creating calculated columns. The option to automatically fill formulas to create calculated columns in an Excel table is on by default. If you don’t want Excel to create calculated columns when you enter formulas in table columns, you can turn the option to fill formulas off. If you don’t want to turn the option off, but don’t always want to create calculated columns as you work in a table, you can stop calculated columns from being created automatically.
Turn calculated columns on or off
1) On the File tab, click Options.
2) Click Proofing.
3) Under AutoCorrect options, click AutoCorrect Options.
4) Click the AutoFormat As You Type tab.
5) Under Automatically as you work, select or clear the Fill formulas in tables to create calculated columns check box to turn this option on or off.
Stop creating calculated columns automatically
After entering the first formula in a table column, click the AutoCorrect Options button that is displayed, and then click Stop Automatically Creating Calculated Columns.
In Excel 2016/365 you can also change a cell you want, let it auto-populate the rest of the column, then Ctrl+Z, this will undo auto-populate but keep the new formula/text you just changed in that one cell.
First, why do you wrap a simple formula into a SUM function? I always wonder why people do that when it's much shorter to write =B2+C1-D2 instead.
Second, if you used the true capabilities of SUM() then text, i.e. your column header, would be ignored instead of throwing an error. The + and - operators don't tolerate text, be it in a table or not. You could rewrite your formula to be
=Sum(B2,C1,D2*-1)
Third, be aware that cell referencing like that will behave erratically when you insert rows into the existing table (between existing rows). The row references will be off for anything below the inserted row and you will need to manually copy down the formula again to get correct results.
In order to get a formula that does not require adjusting, you may want to use structured referencing, where each row has exactly the same formula, instead of cell references, where row references are adjusted in each row. A possible formula for this would be (if your columns are labelled data1, data2 and data3 for columns B, C and D):
=SUM([#data1],OFFSET([#data2],-1,0),[#data3]*-1)
To get the data from the row above, Offset() is used on the cell in the current row (using the # sign), with a negative row offset. Keep in mind that Offset is volatile, which may slow down very large datasets.
Adjusting AutoCorrect options is not optimal. You can do it on a col by col basis by:
let the column autopopulate your formula
delete any number of values in the autocalculated column (just one will do the trick).
adjust formulas in the column as you wish
Only able to test in Excel 2013.
May be a little late to open this query - but a couple of points:
formula replication does not work if there are already different formula in the column - may need 3 different formula before Excel says it cannot guess which formula to replicate
a solution could be to add 2 dummy rows at the top which will then prevent the replication - the benefit of this is that you are not disabling replication for any other tables that may be in the workbook; and I'm not sure if the setting may also inadvertently be copied to other new workbooks you create whilst you have the first workbook open
finally, the old chestnut that =A1+B2 etc creates an error if A1 or B2 are not numeric; whereas =sum(A1,B2) works differently in that text will be ignored and effectively treated as zero
If your reference has letters in the middle these technics won't work. To add a zero before the reference in that case, create a new column next to it, add "0" to all the cells next to the references, add another column and use the function "concontenate" or whatever between the "0" cell and the one with the reference.
Not only that, the =len function will correctly tell you the # of digits on references with letters in the middle (because excel does not view them as numbers per se, but rather text/general format) while on other references with 0s added before them with formatting this doesn't happen.
Eg: 012345 =len gives 5 digits / 01A345 =len gives 6 digits
My problem seems trivial … but I have stacked in Excel.
I have a really big data sheet and to be able to work with it I applied 3 first rows as frozen (not all cells in this range are filled but sometimes it looks like:
C1: Shop1,
C2: year,
C3: cashier
....data1
....data2
). Then I add there a filter and when data is filtered, I can see only the first row – without row 2 and 3.
Is there any way how to make the frozen rows, frozen also for filtering? Like “untouchable” headers?
Thanks for any answer
You need to input the filter starting in row 3, in other words, select the entire row number 3 in your data table and click on filter. This way you maintain the top 3 rows when you filter your data.
A work around for this could be.
split the view for the top three rows and then create filter on the first row, considering each cell of the first row can be used as column header.
Then you can use the lower part of the split view to work and the top three rows will always be there.
This though not optimal but a quick solution for large sheets with more than 3-4000+ rows of data.
Hope this helps.