Data from Rows to a Single Column? (Cell Formula) - excel-formula

Is there a way to convert data from a row-array over to a single column, without breaks, using cell formulas?
Example Table:

The following explanation does what you are looking for, EXCEPT it also includes the empty (unanswered) questions. I can't think of a way to do also remove the empty ones.
source: https://www.extendoffice.com/documents/excel/2775-excel-convert-matrix-to-single-column.html
Another way would be to use VBA

Related

working with multiline cells without spliting them in Excel

I have a table with hundreds of rows in a very heavy excel workbook, I give a simplified like so:
And another table with combined text:
Is there a way I could have a formula that would allow me to check in the 1st table the individual values of each multiline cell and then add them in the total, to obtain something like this:
The point here being that the file might change in the future, rows could be added or deleted and so on, so I would like to be able to obtain the totals without splitting the multiline cells.
I've tried countIf but I don't think that's the proper way to go. Any help would be appreciated.
Multiple options really. You could try:
Formula in B10:
=SUMPRODUCT(ISNUMBER(FIND(A$2:A$7,A10))*B$2:B$7)
Or, a bit more in line of checking each individual value inside your combination:
=SUMPRODUCT(VLOOKUP(FILTERXML("<t><s>"&SUBSTITUTE(A10,CHAR(10),"</s><s>")&"</s></t>","//s"),A$2:B$7,2,0))

VLOOKUP and Transform a table inside the formula

I'm not sure if this is possible but I have this table:
What I want to achieve here is to get the last three character of the lookup value and transform the table being referenced in VLOOKUP into their last three character without having to create a new excel table filled with last three character of the table being referenced.
Here's how I tried it but since RIGHT(A:A,3) cannot be done, is there any alternative way to code this in one straight line?
=VLOOKUP(RIGHT(B2,3),RIGHT(A:A,3),1,FALSE)
As per your explaination, it looks like you need to use wildcards. Within VLOOKUP:
=VLOOKUP("*"&RIGHT(B2,3),A:A,1,FALSE)
But I would suggest get in the habit of using INDEX and MATCH combo, since it's faster:
=INDEX(A:A,MATCH("*"&RIGHT(B2,3),A:A,0))

VLOOKUP Multiple Columns If Not Found In First Column

I have a long list of part numbers where I need to be able to lookup and retrieve information on them.
These parts can have several alternative part numbers. I have figured out how to get the data returned if my data table only shows one of the possibly part numbers.
The issue is that I want it to be able to look up the columns to find a matching value.
As in the picture below for example. 5-E26 is the equivalent to E5-25. So if I input 5-E26 in the cell, I want it to continue searching to find the value in B7, and return the data as done A4 and A5.
Is this possible to do with Vlookup? Or is there a smarter method for it?
I struggle to fully understand how your data works but here is a possibility:
So the translated version of the formula I used in G2:
=INDEX($D$1:$D$5,AGGREGATE(15,3,((($A$2:$D$5=F2)/($A$2:$D$5=F2))*ROW($A$2:$A$5)),1))
You could also try (in my case):
=INDEX($D$1:$D$5,SUMPRODUCT(($A$2:$D$5=F2)*ROW($A$2:$D$5)))

How to fill in another table using a partial match to data in another table

I'm trying to fill in a table using data from another table. I've researched the VLOOKUP function, and either I don't fully understand it, or it isn't the right tool.
For example, let's say I have a column of data that is of the format: (p53, chk2, stra8-cre)
From this column, I want to extract any row (the entire row) that has 'chk2' in it. What tool can I use for this?
Thanks
From what I'm understanding, you're trying to have a formula in one cell that sets the content of all cells in its row. As far as I know, you can't do that without some sort of macro.
My suggestion would be to have a similar formula in each of the rows you want to set.
EDIT:
Use SEARCH to help with this problem. Look here on how to use it for this case.
Ex:
layout in CSV format:
p53chk2,a2,a3
chk2,b2,b3
stra8-cre,c3,c4
formula:
=IF(ISNUMBER(SEARCH("chk2",$A1)),B1,"")
Copy this formula across all cells in the row, and the contentshould be applied the subsequent cells.
Hope this helps, let me know if this isn't exactly what you were looking for.

Excel Range inside IF formula - DE-DUPE

I have a very long list in excel. I'm trying to de-dupe without re-organising the list. I have done a lot of de-duping before and I would normally just organise the list and use the below simple IF statement:
=IF(A2=A1,"DUPLICATE FOUND","no dupe")
However I have a list with 15,000 rows of data and I need to see if any two rows contain the same data:
=(IF(A2=(A1:A15000),"DUPLICATE FOUND","no dupe"))
So my question is what the heeby jeebies is wrong with my second statement?
Thanks
COUNTIF can be used with unsorted lists
=IF(COUNTIF($A$1:$A$15000,A1)>1,"DUPLICATE FOUND","no dupe")
Also, if you don't want to use a helper column, then excel has a 'Highlight Duplicates' conditional formatting:
Use Advanced filter with copy to a new location and Unique values only - or Remove Duplicates.
A2=(A1:A15000) will only test for A2=A1.

Resources