Look up from spreadsheet based on 6 criteria

R

Rich D

Hi,

In Excel 2003, I have a page where my people will put in 6 criteria; Style,
Min Sq Footage, Max Sq Footage,# Bedrooms, # Baths, Garage stalls.

I need to search thru the plans data base to list the plan numbers that
match ( or ><) all 6 criteria. Can anyone please tell me how to do this?
 
K

krcowen

Rich

Add a column with a formula that concatenates your six criteria and
use that for you look up column.

Good luck.

Ken
Norfolk, Va
 
R

Rich D

Ken,

You're assuming I know more than I do. Can you give me an example?

thanks
--
Rich D
Armstrong Custom Homes
Redmond


Rich

Add a column with a formula that concatenates your six criteria and
use that for you look up column.

Good luck.

Ken
Norfolk, Va
 
F

Fred Smith

You're assuming we know as much as you do. What does the "plans data base"
look like? Is it in Excel? Are the six criteria all in one cell, or separate
cells? Does each criteria match exactly, or do you, for example, want to
match 2.5 baths to 2 baths?

Regards,
Fred.

Rich D said:
Ken,

You're assuming I know more than I do. Can you give me an example?

thanks
 
R

Rich D

Fred,
The plans db is in Excel also. The columns are labelled the same and the
criteria needs to either match exactly in some cases or be <= or >+ in some
cases, depending on which column I'm comparing to (looking in). This would
be much simpler if I could just email you the file. thanks for any help.
 
B

Bernie Deitrick

Rich,

Select all the cells in your database, then choose Data / Filter....
AutoFilter.

At the top of each column will appear a small dropdown. Use those dropdowns
to either
select a specific criteria (such as style) or select Custom and use the Less
than / Less than or equal to / Greater than/ etc. options to set the
limits. Excel will hide the rows where one or more values don't meet your
criteria.

If you want to have the values entered elsewhere, you would require a macro
to apply the filters. Much better is to just get into the habit of using
the dropdowns to directly select the criteria.

HTH,
Bernie
MS Excel MVP
 
F

Fred Smith

Most of us don't mind helping, but we're certainly not looking for extra
work. Unfortunately there's become too much risk from accepting e-mails from
unknown sources due to viruses. So you likely won't get any takeup on that.

Searching on 6 criteria won't be that hard, especially if you are willing to
create a concatenated key. However, it's the "some cases <= or >=" that will
be the monkey wrench. You will have to define these cases very well before
you can get Excel to look them up properly.

I like Bernie's idea. Why have them enter the criteria at all? Why not just
look it up in the data base using the AutoFilter?

Regards,
Fred.
 
R

Rich D

Bernie,

I use auto filter all the time...love it. I showed it to the people at the
home office and, while impressed, they said no way could our sales people do
that. It needs to be less complicated. So, I am trying to come up with a
screen where the only cells showing on the form are the 5 or 6 criteria.
Then using that input, I want to be able to find all the records in the other
spreadsheets that fit and list them by plan number. Make sense?
--
Rich D
Armstrong Custom Homes
Redmond


Bernie Deitrick said:
Rich,

Select all the cells in your database, then choose Data / Filter....
AutoFilter.

At the top of each column will appear a small dropdown. Use those dropdowns
to either
select a specific criteria (such as style) or select Custom and use the Less
than / Less than or equal to / Greater than/ etc. options to set the
limits. Excel will hide the rows where one or more values don't meet your
criteria.

If you want to have the values entered elsewhere, you would require a macro
to apply the filters. Much better is to just get into the habit of using
the dropdowns to directly select the criteria.

HTH,
Bernie
MS Excel MVP
 

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