LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 390
Default Complicated lookup

I have several worksheets containing similar (but not identical, as some
tables have more rows than others) tables of data. These worksheets are named
for different vehicle types (petrol, diesel, petrol SUV, diesel SUV etc.).
Each table contains information pertaining to different vehicle types, with
the first row listing various engine sizes (2000, 2500 etc.).
As part of a larger operation, I want users to select a vehicle-type from a
drop-down list on my main 'search' page and also enter their engine size. The
selected values will determine on which worksheet a lookup function performs
and for which row of that particular table the function will 'look'. The
function will then return the value in the relative column.

E.G.
A user selects 'petrol SUV' from the drop-down list and enters '2700' as
their vehicle's engine size. A vlookup function then looks at the table on
the worksheet 'petrol_SUV' and returns a value from the required column in
the same row as '3000' (next size up from the size the user entered).

I had tried using INDIRECT with VLOOKUP to get to the correct sheet but then
I'm stuck with accessing the correct row (which is determined by engine
size), from which to offset to the required column.

Another post provided part of the answer, which I thought I could combine,
but now I'm stuck again.Any help greatly appreciated.

Additionally, I'm unsure how to select the various possible tables (on each
worksheet) as they have the same structure, but differing numbers of rows
(petrol vehicles have more engine types than diesel vehicles).

Hope this makes sense and thanks in advance for any assistance.

 
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
Lookup Help Complicated Gizmo Excel Discussion (Misc queries) 1 April 19th 08 05:53 PM
Complicated Lookup Function Latika Excel Worksheet Functions 3 July 6th 06 10:26 PM
Complicated value lookup TheFarmer42 Excel Discussion (Misc queries) 10 May 10th 06 05:05 PM
Complicated lookup/match fuction keysersoze Excel Worksheet Functions 0 September 14th 05 05:48 PM
Complicated lookup function chrisrowe_cr Excel Worksheet Functions 4 July 19th 05 05:52 PM


All times are GMT +1. The time now is 02:56 AM.

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"