Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# How do I filter rows on excel sheet based on another sheet

Posted on 2011-03-15
Medium Priority
317 Views
Hi,

I have two catalog sheets based on SKU (product id number) I also have another worksheet with some of these. How do I filter rows from the first one based on the skus from the second one.

thanks
0
Question by:jecommera
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 6
• 5

LVL 85

Expert Comment

ID: 35138262
Sounds like you need an Advanced Filter using formulaic criteria. Can you post a sample showing the actual layout of the two?
0

Author Comment

ID: 35138310
worksheet1

<id><value1>

worksheet2

<id><row>

So I need list of worksheet2 rows where same id in worksheet1 and value1=<null>

thanks
0

LVL 85

Expert Comment

ID: 35138351
That's not enough info really. Can you post a small sample showing what you have and exactly what output you expect.
From what you've said it looks more like a lookup formula than any sort of filter currently.
0

Author Comment

ID: 35138386
ID                      IMAGE_original_1
30004910      image.jpg
30004911

ID                     name
30004910      cap
30004911        jumper

0

LVL 85

Expert Comment

ID: 35138456
When I say sample, I mean a sample workbook, so I can see what you want as the outcome. At the moment I'm thinking you just want a formula in the first sheet like this in C2:
=IF(B2<>"",IF(ISNA(MATCH(A2,Sheet2!\$A:\$A,0)),"",VLOOKUP(A2,Sheet2!\$A:\$B,2,False)),"")
0

Author Comment

ID: 35138500
Sorry I cannot post the worksheet as it contains some private data.

I dont want a value in a cell.

I need rows from worksheet2 where the same ID in worksheet1 does not have an image (i.e. the value in the second column of the row is null
0

Author Comment

ID: 35138509
also all the data in worksheet2 is contained in worksheet2
0

Author Comment

ID: 35138559
woops also all the data in worksheet2 is contained in worksheet1
0

LVL 85

Accepted Solution

Rory Archibald earned 2000 total points
ID: 35138589
Add a new column to worksheet2 using a formula like:
=INDEX(Sheet1!B:B,match(A2,Sheet1!A:A,0))=""

and then filter sheet2 using that column and filtering for TRUE values.
0

Author Comment

ID: 35139210
Great Work !!!

0

LVL 85

Expert Comment

ID: 35139247
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are â€¦
This article describes a serious pitfall that can happen when deleting shapes using VBA.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calculâ€¦
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
###### Suggested Courses
Course of the Month9 days, 12 hours left to enroll