|
Is there a way to filter a set of values from one sheet and apply it to two other sheets in the same workbook? I have an excel workbook that has three sheets that have around 10,000 rows of values. The first column are anonymized identification numbers along with different values attached to those ID numbers in the neighboring columns (same row). For example, there would be an ID number in the first column, and then attached values such as favorite ice cream flavor in the second column, and then favorite animal in the third column (these aren't what are actually in the cells next to them, they're just numerical values). The problem is that the ID numbers in the first two sheets don't all match the ID numbers in the third sheet. Hundreds to thousands of the ID numbers in the first and second sheet don't match the third sheet. I would like to take the ID numbers from the third sheet, keep the attached values such as ice cream flavor and favorite animal, and then filter out the first and second sheet so that only ID numbers from the third sheet appear in the first and second sheet. The third sheet will be the "anchor" sheet where those are the identification numbers that matter. The first and second sheet only have some ID numbers that match the third sheet, and the first and second sheet don't necessarily match each other, there may be minimal overlap. Is there a way to perform this type of filtering from one sheet to another? Thank you!
|
# ¿ Nov 22, 2023 22:27 |
|
|
# ¿ May 12, 2024 08:07 |
|
Thank you all for the help so far, I only know the very basics for Excel. If you're willing to bear with me, I have some other questions.HootTheOwl posted:If the id numbers don't match how do you know the row in sheet 1/2 truly match a row in sheet 3? I have looked through the three sheets in the workbook and by randomly searching numbers in the first two sheets, there are some ID numbers from sheets 1 and 2 that match the third sheet. Ninja.Bob posted:Yes, but the only method I know uses vba. There may be better solutions than this. Apologies, I'm not familiar with the VB code. Should I look this up on YouTube on how to input this? And yes, each sheet just has the values inputted into the cells with it's respective ID number in the first column, along with attached values in the subsequent columns. The third sheet will sometimes have the same ID numbers in multiple rows (always grouped together), with dates attached to when measurements were taken, along with the quantity of the measurement in the third column that lines up with the respective date. esquilax posted:Are there any issues with adding in a hidden dummy column on Sheet 1 and Sheet 2 that reads Y/N based on whether the ID appears in Sheet 3? No, I can create a copy of the excel workbook and modify as needed apart from the original copy. The problem is that sometimes on the third sheet, there are multiple entries for the same ID number in different rows (they're always grouped together though), since the columns next to those ID numbers will have a changed value. For instance, let's say the ID number is 1002, there may be three rows with 1002 all grouped together, one row after another, and then the three columns will have different dates since those dates signify when a measurement was taken. Then in the third column the quantity for that measurement is inputted for those ID numbers.
|
# ¿ Nov 23, 2023 21:55 |