Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Best Solution for 3 search criteria

I have a table with columns 1 & 2 for size range (i.e 0 - 200mm, 201 - 400mm,
column 3 showing a number (0,1 or 2), columns 4 & 5 holding quantity ranges
and a cost in column 6.

I need to find the correct range based on size, then narrow the range based
on the number in column 3 and finally select the correct row for the price
based on quantity.

Can I do this ?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Best Solution for 3 search criteria


Hi,
could you please send an example of what you want to achieve including a
sample of your table mentioned below

"gibbylinks" wrote:

I have a table with columns 1 & 2 for size range (i.e 0 - 200mm, 201 - 400mm,
column 3 showing a number (0,1 or 2), columns 4 & 5 holding quantity ranges
and a cost in column 6.

I need to find the correct range based on size, then narrow the range based
on the number in column 3 and finally select the correct row for the price
based on quantity.

Can I do this ?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 211
Default Best Solution for 3 search criteria

A series of multiplication inside the sumproduct command could help you to
find your solution. Maybe something like this will solve:

=sumproduct((A$2:A$100="lower size")*(B$2:B$100="higher
size")*(C$2:C$100="0,1,2")*(D$2:D$100="cost"))
In column A and B you have size range, in column C you have 0,1,2 numbers
and in column D you have cost.
Sumproduct is a powerful Excel command and you can use it for multi-column
conditional select.
For more info on sumproduct you can go to:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html



"gibbylinks" wrote:
I have a table with columns 1 & 2 for size range (i.e 0 - 200mm, 201 - 400mm,
column 3 showing a number (0,1 or 2), columns 4 & 5 holding quantity ranges
and a cost in column 6.

I need to find the correct range based on size, then narrow the range based
on the number in column 3 and finally select the correct row for the price
based on quantity.

Can I do this ?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Best Solution for 3 search criteria


Size Slots Quantity
195mm 0 4

Table

Size Slots Quantity Cost
from to from to
0 200 0 0 1 £1.50
0 200 0 2 6 £1.00
0 200 0 7 18 £0.75
0 200 1 0 1 £2.50
0 200 1 2 6 £2.25
0 200 1 7 18 £2.00
201 400 0 0 1 £1.75
201 400 0 2 6 £1.50
201 400 0 7 18 £1.25
201 400 1 0 1 £2.75
201 400 1 2 6 £2.50

This repeats down with sizes 401-600, 601-800 the slots repeat with the
quantities also repeating. So the one above would cost £1.00 each

Hope that's clear enough


"Eduardo" wrote:


Hi,
could you please send an example of what you want to achieve including a
sample of your table mentioned below

"gibbylinks" wrote:

I have a table with columns 1 & 2 for size range (i.e 0 - 200mm, 201 - 400mm,
column 3 showing a number (0,1 or 2), columns 4 & 5 holding quantity ranges
and a cost in column 6.

I need to find the correct range based on size, then narrow the range based
on the number in column 3 and finally select the correct row for the price
based on quantity.

Can I do this ?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default Best Solution for 3 search criteria

Have you tried using an Autofilter?

"gibbylinks" wrote:

I have a table with columns 1 & 2 for size range (i.e 0 - 200mm, 201 - 400mm,
column 3 showing a number (0,1 or 2), columns 4 & 5 holding quantity ranges
and a cost in column 6.

I need to find the correct range based on size, then narrow the range based
on the number in column 3 and finally select the correct row for the price
based on quantity.

Can I do this ?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Best Solution for 3 search criteria

Just tried Autofilter, yes it works, but I want to make it simple for other
users. Just put size ,quantity and select slots from drop down.

"ArcticWolf" wrote:

Have you tried using an Autofilter?

"gibbylinks" wrote:

I have a table with columns 1 & 2 for size range (i.e 0 - 200mm, 201 - 400mm,
column 3 showing a number (0,1 or 2), columns 4 & 5 holding quantity ranges
and a cost in column 6.

I need to find the correct range based on size, then narrow the range based
on the number in column 3 and finally select the correct row for the price
based on quantity.

Can I do this ?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SEARCH WORKSHEET USING A NOT CRITERIA lghovden06 Excel Discussion (Misc queries) 2 August 5th 08 02:04 AM
Search criteria please Steved Excel Discussion (Misc queries) 4 September 20th 07 12:48 AM
Hlookup or other search solution Micos3 Excel Discussion (Misc queries) 0 March 3rd 06 05:56 PM
How do I search excel spreadsheets using multiple search criteria. Kasper Excel Worksheet Functions 4 December 15th 05 12:26 AM
how do I search by more than one criteria in excel? vulcan88 Excel Worksheet Functions 2 March 15th 05 09:18 PM


All times are GMT +1. The time now is 11:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"