Hi, all. I'm new to the site but have used used responses in threads as help for awhile now. I'm moderately Excel proficient. There's an action I'd like Excel to do for me, which seems simple enough in concept, but for the life of me I can't figure out the formula.
I have two sheets with about a quarter million rows of data each. The first sheet is industry relevant info relating to specific firms from year 1; the second is data from year 2. I'd like to combine the data into one spreadsheet so I could analyze aggregate data. The firms listed in the sheets are close to the same but are NOT identical (some firms were removed/added between the years), so I can't simply sort and then copy and paste as the rows wouldn't match. There is a unique identifier "Provider ID" column in each sheet so in a sense synthesizing the two sheets is completely do-able.
Now, here's where it gets challenging (to me at least). There are about 40 rows of info for each firm in the sheets (the Provider ID is listed on all 40 rows so, again, it is easy to connect any data to specific firms).
I want to put a function on sheet 1 that will search sheet 2 for rows having both: (1) a Provider ID (in column A) matching a given Provider ID from sheet 1 and (2) certain text in column B of Sheet 2; and when those two conditions are met, I want to pull the data from column C. If those conditions aren't met, then it could just return a "" value. Finally, I can't use a simple SUMIFS command b/c the data in column C is sometimes "Not Available", and if I use sumifs, the "Not Available" cells return a value of 0. This won't work b/c there is meaningful difference between 0 and "Not Available" for purposes of aggregating the data, so I need to be able to distinguish b/w those two results. Otherwise, SUMIFS would work and this would be easy.
Essentially, I want to have a formula that does the following (I'm going to put it into a hypothetical Excel command, even though what I'm writing doesn't work): =if(and(Sheet2!$A:$A=B2,Sheet2!$B:$B="certain text"),Sheet2!$C:$C,"").
I know this is a LONG question, and I apologize for the length. I wouldn't greatly appreciate ANY help anyone can give. I'm at a loss at the moment, even though this would seem to be something very easy for Excel to handle. Thank you in advance!
Bookmarks