Excel Find multiple unique values based on multiple search criteria - excel

Result
On the left you see a table with 3 columns and I want to find the result using a formula. The matching criteria are I want all Products from column A that either match "Yes" or "Maybe" OR match 5 in column C.
Full criteria:
Match "Yes" or "Maybe" in column A
OR
Match 5 in column C
Whenever I have already matched a Product from column A, I don't want to have it displayed again. This formula should be in such a way that I can drag it down and it displays all the matches.
I have looked into: https://www.youtube.com/watch?v=7fYlWeMQ6L8
but it's growing over my head.
Could anyone please help out?

Related

Multiple criteria in excel

Currently I try to sort the record by multiple criteria:
From date column C
To date column E
Name column A
Time column D
it always give #N/A result, if I only sort by first 3 criteria, then I can get the result, is it possible to search by 4 criteria?
If I am understanding correctly, I think you are looking for the FILTER function.
Replace =IF(MATCH(1, with =FILTER(Leave_form!$A$2:$C$15, and get rid of the trailing portion after the four criteria.

Formula to check combinations of values in one column to match with combinations in another column

We do daily reconciliations for over 100 accounts. I've used match to find the values in column B that match any values in column A. The issue I have is that most of the time it takes a combination of values in column B to equal to one value in column A or a combination of values in column A. Is there a way to have excel run all possible combinations of values in column B and check it against all possible combinations of values in column A and match those up?
Here is what the data looks like. The ones highlighted yellow are an example of what I'd want a formula to help me match up. When added, the 1700 and 765.56 equal the 2465.56 on the other side. Let me know if further clarification would help!
enter image description here
Thanks!
I have this set up with a helper column. Assuming that the example data starts in Data A, the formula is as follows (in column O):
=SUMIFS(J:J,H:H,"="&H2,M:M,"="&M2,N:N,N2)
This sums up any values in Data B's amount (J:J) when Data B's Date matches the row's date (H:H), when the description matches the row's description (M:M), and if the record type matches the row's description (N:N). With the current data, it only sums 1700 and 765.56 because those are the two records that match the criteria (6/13, Cash Receipt, and Cash). This is the helper column which can be hidden.
Next to this column (column P) is the formula:
=IFNA(IF(MATCH(O2,C:C,0)>0, "Reconciled with Row " & MATCH(O2,C:C,0),""),"")
This formula will lookup the sum and see if it exists in Data A's amount. If the match does exist then it'll tell you which row in Data A has this amount. If match doesn't find anything then the cell will be blank.

Excel multi column search, custom text display

Is it possible to return a given custom value while performing a multi-column search in excel?
I have 2 sheets,
In the first sheet I have 3 columns, and each column have several rows with unique numbers.
In the second sheet I have 2 columns, the 1st column in this sheet2 has a unique number that can be found in sheet 1 columns 1,2 or 3.
In column 2 in this sheet2 I want to display a custom text if the value in column 1 is found in any of the 3 columns in sheet 1.
For example if the value in sheet2/column1 is found in sheet1/Column3, the text should be = "Value Found in Column1", if the value is found in sheet1/Column2, the text should be = "Value Found in Column2", if the value is found in sheet1/Column1, the text should be = "Value Found in Column1".
Is this possible, can you give an example of this?
Thank you.
Yes this can be done. I could write the function for you but I think you would be better off trying to write it yourself. Here is how I would go about it. Write a vlookup() in columns B, C, and D of sheet2 corresponding to the columns A, B, and C of sheet1. If vlookup() returns a match in any of these columns, then that value exists in one of the three sheet1 columns.
The next step is to use isna() to return a boolean value of whether vlookup() returned a match. Again, you'll need one of these for each vlookup() (three total).
Lastly you can use and() on the isna() columns to check if all three are #N/A. Based on that boolean value, you can you if() to return your custom text.
Obviously the process I described splits the problem up into many columns. These functions can be combined to fit into one horribly nested function and put into one cell if you really want, but that's up to you. Let me know if you have any trouble.

Inputting data from cell in next column after search

I can't find a solution to what I need so I'm asking for help.
I have 3 columns of data I need to sort through for my project.
Column A contains my search term, Column B is my database, Column C is another set of data and Column D would be my output.
So an example would be this:
Cell A1 contains apple. And I want to search through Column B for the phrase apple. Let's say it's found in Cell B50, then I want to output the value of C50 into D1.
Currently I have this:
=if("A1"=B:B,1,0)
But I don't know how to output C50 into D1 given that the phrase is found.
Just to be clear there are no duplicates of values anywhere.
Thanks.
This is simply the VLOOKUP formula, as follows:
=VLOOKUP(A1,B:C,2,0)
This looks at unique value in A1, searches for it in Column B, and gives the value from that row in the 2nd column. Searches for EXACT matches only, with 0 as the last argument.

Filter data in one column based on data in other column

How can I find duplicate records using their Item Number and copy/extract Unit Price?
You can use a vlookup to find when an item matches another item in a different column. For your example, assuming that row 20 column F contains the item 52F233, use this formula for cell I20
=VLOOKUP(F20,$G$1:$H$1000,2,FALSE)
This will put the unit price in cell I20 when a match is found and #N/A otherwise. You can paste this formula in the entire I column and it will show you when the match is found for each entry. After that, you can sort the ones with a valid match and take the next action you need with the matched data, such as add to a different sheet. The vlookup formula cna be used across multiple files.

Resources