I am trying to search an excel sheet with 18 different items ... but I want to be able to search any of those items and return all the data for that row... this is an inventory list that has multiple identifying factors... username, serial number, item type, user id, etc...
if I search for the serial number ... I want to be able to return all the data that is connected with it... the username that it is assigned to, that individuals ID, and anything else that is assgined to that individual .... I have tried using VLOOKUP... but it only returns the data based off the left most cell...
Not sure if I am explaining this correctly .... I want to be able to search the entire sheet for a specific item and return with ...who has it, and what else that person also has ... ??? I guess is the problem....
UPDATE***
if I create a search box on a different sheet to look at the data on this sheet...I want to be able to put in the SN of any device and get the complete row of info for all pieces ... if I put 1237 in the box I should get john, rogers, 1237, d123, d456
and the same if I put d456 in the box
Dummy Chart
The following function would work, provided that the search item is listed once in your data:
=INDEX($C$5:$G$9,
SUMPRODUCT(($C$5:$G$9=$J$4)*(ROW($C$5:$G$9)))-ROW($C$4:$G$4),
MATCH($I5,$C$4:$G$4,0))
The data range is indexed and the SUMPRODUCT is used to return the row number of where the value is found within your data. The row number of the header is subtracted to represent the row number in your indexed data. The match-part returns the nth instance of the header that matches the type you're searching for.
This results in the value you look for.
Related
I've got a column of data with comments containing, among other things, the product number I need for a different column. I have figured out a way to get the data, but I would have to pull out each and every product number, which would be the nested If statement to end all If statements. I have all the product numbers in a list, but I can't figure out how to search the string (Column K) for a value from the list(Products tab, column B).
The first string contains the product number "C21" I have tried:
=IF(ISNUMBER(SEARCH("C21",K5)), "C21", "Nope")
This is what I've got that will return the value, but again, I'd have to individually call out every product and I just can't.
Also tried
=LOOKUP(2^15,SEARCH(Products!$B$2:$B$500,K5,1),Products!$B$2:$B$500)
Where K5 has the text string and column B on the tab Products has my list. Returns a value of 0, despite the product being on the list and in the comment
Also tried
=INDEX(Products!B:B,AGGREGATE(15,7,ROW(Products!$B$2:$B$200)/(ISNUMBER(SEARCH(Products!$B$2:$B$200,K5))),1))
Also returns a value of 0
Data samples:
What I need
Product#---------Comments:
_______-----------C21 at Packers Falls S/S
_______----------3891DX32 (Already Open)
Then on the Product Tab:
Product
A373
B307
C21
D3135
E3176
G363
L367
On the one hand I do have a list of users with a bunch of columns: name, email, password..... for each of them.
On the other hand I have a specific list of emails.
What do I want to achieve?
So basically I need to get the rows that are matching one specific column (email) with a random list of emails given. It's a big sample size so I can't search them one by one.
Example
Following this example I would need to retrieve the rows that are matching the email column with the given emails: Francis#gmail.com & Claudia#gmail.com
Use "MATCH". Assuming your emails are in column B and the lookup values on in column E row 1, you can use the following formula:
=MATCH(E1,B:B,1)
Hope this helps.
You could try:
=IF(ISERROR(MATCH(E2,$B$2:$B$5,0)),"No Match","Match")
Result:
I have two tables:
1. Table 1 has a list of vacancies with a unique ID (e.g. "284628")
2. Table 2 has a list of candidates including various time stamps (screened, interviewed, etc.). Each candidate entry also has a field for the vacancy field from table1. However, sometimes this field includes multiple vacancy IDs (e.g. "485923; 139042"). There are many candidate rows with the same vacancy IDs.
I want to pull the 3rd smallest time stamp from the column 'Interviewed' in Table2 into Table1 for the corresponding vacancy ID.
How do I create that formula?
I have two pieces of the puzzle, but don't know how they can work together.
Partial match in a string:
=INDEX($B$2:$B$9999,MATCH("*"&D2&"*",""&$A$2:$A$9999,0))
3rd smalles value:
{=IFERROR(SMALL(IF(Table2[ID]=[#[ID]];IF(Table2[Date]="";"";Table2[Date]));3);"")}
Thanks a lot for anyone helps - I think this is brain teaser :)
As requested, sample data can be downloaded here: https://docs.google.com/spreadsheets/d/11rtyR4eKOok_M4zDi45_D_NvhhRnzBvT9MYZp-WOMKw/edit?usp=sharing
This may be what you're looking for:
=SMALL(IF(ISERR(FIND([#ID],Table2[ID],1)),999999,Table2[Date]),3)
entered as an array formula [CTRL-SHIFT-ENTER].
Explanation
FIND([#ID],Table2[ID],1) looks for an ID from Table1 in the IDcolumn of Table2. This FIND returns an Integer if it succeeds and #VALUE if it fails. Since it's an array formula we get an array of either Integer or #VALUE, one value for each row in Table2.
We wrap the above in an ISERR(above), which gives an array of values that are either TRUE (if ID was NOT found) or FALSE (if ID was found).
That all gets wrapped by an IF(above,999999,Table2[Date]): if TRUE we return 999999 (any number bigger than your maximum date); if FALSE we return the Date from Table2. Again we get an array of values.
Finally, wrap the preceding result in SMALL(above,3) to return the 3rd smallest from the array.
Hope that helps
I have a daily CSV file which has a column containing a big list of addresses (about 5000/day) received from a call center, some of those addresses contain the name of the neighborhoods around the city and it's usually in the first 5 words.
in another table i have the exact name of all the neighborhoods in one column and in another column in the same row i have the courier name which provides delivery service in that neighborhood.
I'm looking for a method in power pivot to search each row of the [Address] column & if a value similar to the neighborhood's name found give me the name of the courier of that neighborhood.
This an example for my data sets, the fist sheet describes 5 sample of my daily data, and the second sheet is districts information and their courier ID
Disclaimer - this method doesn't handle for similar words, only exact matches.
The easiest method I found is to make a calculated table. On the Modeling tab, click on New Table and enter this formula.
Results = SELECTCOLUMNS(
FILTER(CROSSJOIN(Addresses, Couriers), SEARCH(Couriers[District], Addresses[Address], , -1) > 0),
"Address", Addresses[Address],
"CourierID", Couriers[Courier ID]
)
This cross joins your two tables and then filters the results down to only where the District from the Couriers table can be found in the Address. As I said in the disclaimer, this is only looking for exact matches.
Then to get that back into the Address table, add a new column with this formula. This will look up the address into the table we just made and return the Courier ID.
CourierID = LOOKUPVALUE(
Results[CourierID],
Results[Address],
Addresses[Address]
)
The reason we need to do this in two steps is because the LOOKUPVALUE function cannot take expressions.
I have a spreadsheet that is pulling in call survey data and set up as follows
Main sheet is called 'Data'
In the main sheet, columns F,G,H,I hold agent ID numbers dependant on what agents worked on this specific call through it's journey to end. All agent numbers start with the prefix either of 146,144 or 145.
so for example 1st agent 14400 took the call then transferred to agent 14600 then that one onto agent 14500.
Sheet 2 is called 'Teams'
Column A holds agent ID's
Column B is team name
What i want to be able to put a formula in column A of the sheet 'Data' which will then search through rows until it finds a number begining 146.
Once it has found this number it will then search the sheet 'teams' and allocate the required team manager name from column C.
Hope this all makes sense but please let me know if not.
Thanks
This is the solution (I tested it on your spreadsheet):
=VLOOKUP(SUMPRODUCT(--(F2:I2>=146000),--(F2:I2<=146999),F2:I2),Teams!A:C,3,FALSE)
--(F2:I2>=146000) return an array with 0 or 1, 1 if the value is greater than 146000, --(F2:I2<=146999) same but 1 if value less than 146999
SUMPRODUCT is a logical and between the three array that return the value 146xxx. to know more sumproduct
VLOOKUP search in the first column of the range A:C on the Teams' sheet for the id and return the content of the third column.
If you want to have a custom result if the 146xxx is not present in the row you have to use IFERROR(VLOOKUP(..),"TEXT_TO_SHOW")