find value within specific columns of named tables - excel

Im doing a check for the value in C2 in a table (call it M1table), using this part of the formula:
(C$2=M1table)
Whole formula:
=RIGHT(INDEX(M1table,(SUMPRODUCT((C$2=M1table)*ROW(M1table))-ROW(M1table)),20),1)
How do I specify columns instead of checking the whole table? Unfortunately I don't have named columns, is there a way to do it with column number (look for value of C2 in 2nd to 8th column)? If using column names is the only way, I can name them.
Thank you

If M1table is a real Excel table, then the column header is the name and you can reference like M1table[colName]
If M1table is just a range, and not a real table, then you can use the INDEX function to reference a single column. eg: for the 2nd column in the table:
C$2=INDEX(M1table,0,colNumber)
For columns 2-8 you could use:
=$C2=INDEX(M1table,,2):INDEX(M1table,,8)

Related

Extract rows from table, into another table, where value in column = external value

I'm looking for a formula that would allow me to extract rows from a table where the value in the first column is equal to a reference?
See the table below:
If the value in the first column is equal to 13:00:00, as it is on the right of the pic, extract the relevant row onto a new table. I have attached the spreadsheet to play with.
https://www.mediafire.com/file/eaz7no3263vl3sd/Table.xlsx/file
Just FILTER the range against the reference value:
https://support.microsoft.com/en-us/office/filter-function-f4f7cb66-82eb-4767-8f7c-4877ad80c759

How to link two excel file and link column

I have two excel file with product data. Both the excel file have one unique column data. Now what I want that when I change value of description column in master table then I want to update same column in transaction table on same barcode number.
Master list.xlsx
Consolidated list.xlsx
Below formula I have created and and I am getting error #N/A
=VLOOKUP($F3,'[Master List.xlsx]MasterList'!$F$3:$A$650,3,0)
Using INDEX/MATCH
In cell A3 use the following formula:
=IFERROR(INDEX('[Master List.xlsx]MasterList'!A$3:A$650,MATCH($F3,'[Master List.xlsx]MasterList'!$B$3:$B$650,0)),"")
Adjust the A$3:A$650 to 'retrieve' values from other columns, e.g. if you need the values from the column of the first 0.854 next to the unique (ID) column, use C$3:C$650 instead.

Return a name matching two values

I have a table of data in one worksheet and some analysis in a second. In the 'Data' worksheet each row contains a name and then a range of values (numerical). What I need to do is look across each row and where, for example, columns PN and PM both contain a 1 return me the name in column M. This list needs to then grow as I add more data to the table in 'Data'.
Hopefully that makes sense. I am doing something similar with a single value lookup using the below but cannot get it to work for multiple values:
=IF(ISERROR(INDEX(Data!$A$4:$QQ$4999,SMALL(IF(Data!$A$4:$QQ$4999=$J$6,ROW(Data!$A$4:$QQ$4999)),ROW(1:1))-1,13)),"",INDEX(Data!$A$4:$QQ$4999,SMALL(IF(Data!$A$4:$QQ$4999=$J$6,ROW(Data!$A$4:$QQ$4999)),ROW(1:1))-3,13))
I copy this down and then when the data is updated the blank cells are automatically populated. The new formula I need is similar to this, but rather than looking up one value J6 in the above, I need to lookup two.
I would use a helper column. Pick an unused column, say column QR and in cell QR4 enter:
=IF(AND(PM4=1,PN4=1),1,0)
In QR5 enter:
=IF(AND(PM5=1,PN5=1),1+MAX($QR$4:QR4),0)
and copy downward.
This column assigns a simple sequential value for each "collectable" row. For example:
Then in the other sheet, pick any cell and enter:
=IFERROR(INDEX(Data!M$4:M$4999,MATCH(ROWS($1:1),Data!QR$4:QR$4999,0)),"")
and copy down to collect the data:

Convert Semicolon Separated Values to Columns - Excel

I have a spread sheet of values organized by id number with a column of semicolon separated values.
I would like the spread sheet to be organized by id number with a column for each value and if that value exists for a id number a 1 be placed in the cell and if it doesn't exist a 0 placed in the cell.
Has anyone done this before or know where I should start?
You can try this but you need to keep the original value somewhere and then use this formula:
=IF(ISERROR(SEARCH(C$1,$B2)),0,1)
Your data layout should be like below:
So Column B contains your original data and your new headers starts at Column C.
Enter the formula in C2 and copy to the rest of the cells. HTH.

Excel formula to output name in first column based on a value in the 3rd column

I have a data table with 8 columns and i want to know if anyone can help me come up with a formula to get the name in the first column if i enter a value into the columns (3,4,5,6,7,8).
I want the name from the first column to appear in another table on another sheet where only names appear where data is in the columns (3,4,5,6,7 & 8)
Try this:
=IF(OR(Sheet1!C2<>"";Sheet1!D2<>"";Sheet1!E2<>"";Sheet1!F2<>"";Sheet1!G2<>"";Sheet1!H2<>"");Sheet1!A2;"")
You can use C1 = 1 .... if you prefer.
And C1,D1,E1... have to be replaced with your columns.
Also Sheet1 have to replaced with your sheet name
I would use a Pivot tables.
First create a new column in the existing table:
If you only having positive values then it is:
=sum(C2:H2)
If you have zero and negative values as well it would be like this:
=IF(COUNTBLANK(C2:H2)=6;0;1)
Then make a pivot table with the "TO/TA name" in the Row Labels and the new column in Report filter - where you then removes the "0".

Resources