Google Spreadsheet/ Excel - how to find matching values in column A, having necessary values in column M - excel

I have list of product articles in column A, in the columns B to L I have additional info on the products, total 95000 lines. I also have column M which lists 3000 articles which I need to find in the list from column A. How do I highlight only matching values in column A that are present in column M?
I tried conditional formatting but the file size is too big and all actions take too much time.

try this:
=COUNTIF($M$2:$M$5;A2)
it will give a 1 if the product is in the column M list, and a 0 if it isn't.
you can then filter on column N having 1.
Be mindful on your data set, the actual formula you have to use will probably be more like:
=COUNTIF($M$2:$M$3000;A2)

Related

Excel Lookup and sum multiple values

A B C D D E F
DEForage201 DE Deutschland 201 Perennial Ryegrass Forage 789951
DEForage201 DE Germany 201 Perennial Ryegrass Forage 5617026
In the list above (starting in column A which is an ID line compiled by column B, F and D) I want to lookup and get the sum of the rightmost column.
Currently I am using vlookup and look for the ID line in column A, until I noticed that the country names in column C would differ during the list which is why I am having identical ID lines in column A and currently only get the first value.
Any ideas how to solve this?
Assuming you're looking for a way to view the sum of column F for each unique combination of columns A through E, a Pivot Table might be what you're looking for. You can select columns A through E as the "rows" for the pivot table, and sum of column F for the values. Adjust the report layout in the Pivot Table Design tab to get it to look the way you want.

Excel - how to look in a dynamically changing range of multiple rows and columns and retrieve data

I have 2 excel files. 1 is a workfile in which I work, the other is the output of a database. See pic 1 for my database output (simplified).
What we see here:
The purchase order numer in column A
The row in the database in column B
The status of the row in the database in column C
The classification in column D, where W means a product we want to measure and P meaning delivery costs, administration costs etc (we don't want to measure this)
The number of items ordered and the number of items delivered in column E
The company name and product info in column F
Now, what I want, is something like this:
I want this table to be filled automatically based on the database output. It works for column B, but I'm stuck on column C, D and E.
What I want from you!
I need help with column C, D and E.
Number of rows: it needs to calculate the rows only with W in column D. So for item 4410027708 it has to be 2 (only 2 rows with W) and for item 4410027709 it should be 1.
Items ordered: it needs to add-up all the values that are directly to the right of the W in column D. So, for 4410027708, it needs to add up 3 and 5. It must ignore all the rows with P!
Items to be delivered: You may already guess this, but it needs to add up all the values in column E that are on the same row as column C with To be delivered, but only for the W rows (not the P versions). So, for item 4410027708 this should be
I suggest easy if ColumnA can be filled down first (including for the last entry) then assuming the database output sheet is called Sheet1, in:
C2: =COUNTIFS(Sheet1!A:A,A2,Sheet1!D:D,"W")
D2: =SUMIFS(Sheet1!E:E,Sheet1!A:A,A2,Sheet1!D:D,"W")
E2: =SUMIFS(Sheet1!E:E,Sheet1!A:A,A2,Sheet1!C:C,"To be delivered")
copied down to suit.

How to sort through table using a sublist of criteria in excel

I have a table of data with 5 columns A B C D E. Under column A are values ranging from 1 to 1000 (with repeats and no blanks), and columns B to E have data relating to that number. How do I sort this table if I have a predefined list in mind, let's say I want to see only the data relating to numbers 5, 8, 15, 100, 150...etc. How would I be able to sort it with a custom list?
Let me know if further clarification is needed.
I found a solution after tinkering around.
I went into into data > advanced and selected my whole table ($A$1:$E$2000) as the "List range" and put down my list of criteria (the numbers I'm sorting for from column A) in column F as the "Criteria range". You need to enter A's header as the header of your list of criteria or else it won't work.

Match cells of different values in different columns

I am trying to figure out the following:
I have two columns ranging from A2:A316 and B2:316.
In column A I have the values A/A, A/T, or T/T. In column B
I have the values G/G, C/G, or C/C.
Is there a formula that I can write in a new column, that can find combinations
such as A/A in one column and C/C in another (in the same row). So that excel returns some value (e.g. 1) when it finds A/A in A and C/C in column B.
and 0 if its A/A or T/T in column A and A/T in column B. I want to find how many rows are A/A and T/T respectively (in column A) and G/G and C/C in col B.
Best regards,
Granit
It should be fairly easy to do this.
In Column C put something like...
In C1...
=IF(OR(AND(A1="A/A",B1="C/C"), AND(A1="A/A",B1="T/T"), AND(A1="A/A",B1="A/T")), 1, 0)
Just add more to the OR statement for the extra pairs.
=COUNTIFS(A1:A75,"A/A",B1:B75,"C/C")
this should do the trick for you it will count you all A/A C/C combinations in given range

How to implement a count if and index or match function in Excel

I am working on a template which records actions of specific companies during an auction. In Column J I have actions, and column K I have the company name. What I need help with is integrating a function to check the validity of a specific action. Essentially You cannot have an action of neg in column J without an action of bid in column J for a specific firm.
So I am trying to use conditional formula to create a check to see if for a given firm in column K is the count of neg less than the count of bids for the same firm in column J
These are the column names, the actions themselves are all in the same clump.
How many actions do you have? If there are not many you could add a column for each action with a count.
For example, add a column called Compare_1 in column L and a column called Compare_2 in column M.
In column L create a countifs formula (I started in Row 3, if your data starts in row 2 you would change K3 to K2)
=COUNTIFS(K:K,K3,J:J,"neg")
You can also modify the formulas to incorporate each type you need to compare in Compare_1 and then do the same in the next column for the Compare_2 data.
=IF(OR(J3="neg",J3="bid"),(COUNTIFS(K:K,K3,J:J,"neg")),IF(OR(J3="dog",J3="puppy"),(COUNTIFS(K:K,K3,J:J,"dog")),0))
and in column M create a countifs formula
=COUNTIFS(K:K,K3,J:J,"bid")
Then create a validation column in column N with the formula
=IF(L3=M3,"Valid","Not Valid").
Again to combine for Compare_2
=IF(OR(J3="neg",J3="bid"),(COUNTIFS(K:K,K3,J:J,"bid")),IF(OR(J3="dog",J3="puppy"),(COUNTIFS(K:K,K3,J:J,"puppy")),0))
There could be an easier 1 step process from someone else, but this is what I came up with.

Resources