Show Data In Range not appearing in Separate Range

B

Brent E

Excel 2003

Good morning Everybody,

I need assistance to generate a formula or macro based on example data below
I have 2 priorly constructed worksheets that I was asked to work with.

For simplicity and example purposes, names are SheetA and SheetB,
spacing is inconsistent and data is non-sequential.

___________

Example Sheet A

Col A
Projects

BB2029
PARS
ABSB
BB3500
PARS
Insp
BMM144
PARS
ANA

______________
Example Sheet B

Col A Col B
Projects Apr
BB2029 350
SR2000 20
BB3500 -
AS2044 200
MM2000 355
BMM144 900
RN1440 -

I need a forumula or macro
that will:
Compare Project names in Sheet A to Project names on sheet B:

If the Project Name
on Sheet B is found on
Sheet A, then On Sheet B hide the data row
End result on Sheet B is a list of project names and data for all projects
not listed on Sheet A.

Sheet B Output for this example:
Col A Col B
SR2000 20
AS2044 200
MM2000 355
RN1440 -

Thanks Much,
 
D

Dave Peterson

How about an alternative?

Use a helper cell that contains a formula that returns whether the data is on
the other worksheet. Then apply data|filter|autofilter to that range so that
you could hide/show what you want.

If you want to try:

Insert a new column (I'd use a new column A).

Then in A2 of SheetB (headers in row 1???):

=isnumber(match(b2,'sheetA'!a:a,0))
and drag down as far as your data goes.

I'd put this in A1 (as a header):
 
B

Brent E

Thanks for the good idea Dave, I will try that. I appreciate your prompt
assistance.

I don't mind using the extra cell and I think the IsNumber and Match
functions may be what I need. Will this formula return a true or false value?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top