#1   Report Post  
Posted to microsoft.public.excel.misc
Squeaky
 
Posts: n/a
Default Lookup and offset

Ok, I have a speadsheet called 'Specs' with over 3000 rows of information.
Starting with a customer site location, the rows contain specific information
about each customer. In many instances there are multiple site entries for
any givern customer due to there being multiple items. I can use autofilter,
but it does not do all that I need to accomplish. What I want is to be able
to perform a lookup on another spreadsheet called 'Search' (within the same
worksheet) by inputting the site name. Using vlookup I am able to retrieve
the first instance of the site and the pertinent info available to that site.
I want to know if it is possible to make it display all the instances of the
given site name, or how to make it perform a lookup and display the
information that is on the row below the site I perform the lookup on. Using
vlookup and offset together gives me an error. The column headers a

SITE UNIT# SERIAL# MODEL# PART1 PART2 PART3 ...etc.

Site A 1
Site A 2
Site A 3
Site B 1
Site C 1
Site C 2
Ex: if I do a lookup on Site A I want to see a list of all 3 Site A's, as an
alternate solution I can work with getting the info on the site directly
below the site I do a lookup on, such as vlookup on SITE B, and getting Site
C (1) to display.

Thanks!

Squeaky
  #2   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default Lookup and offset

Assuming that A2:G7 contains your data, try the following formula which
needs to be confirmed with CONTROL+SHIFT+ENTER, not just ENTER...

J2, copied down and across:

=IF(ROWS(J$2:J2)<=COUNTIF($A$2:$A$7,$I$2),INDEX(A$ 2:A$7,SMALL(IF($A$2:$A$
7=$I$2,ROW(A$2:A$7)-ROW(A$2)+1),ROWS(J$2:J2))),"")

....where I2 contains the criteria, such as 'Site A'.

Hope this helps!

In article ,
Squeaky wrote:

Ok, I have a speadsheet called 'Specs' with over 3000 rows of information.
Starting with a customer site location, the rows contain specific information
about each customer. In many instances there are multiple site entries for
any givern customer due to there being multiple items. I can use autofilter,
but it does not do all that I need to accomplish. What I want is to be able
to perform a lookup on another spreadsheet called 'Search' (within the same
worksheet) by inputting the site name. Using vlookup I am able to retrieve
the first instance of the site and the pertinent info available to that site.
I want to know if it is possible to make it display all the instances of the
given site name, or how to make it perform a lookup and display the
information that is on the row below the site I perform the lookup on. Using
vlookup and offset together gives me an error. The column headers a

SITE UNIT# SERIAL# MODEL# PART1 PART2 PART3 ...etc.

Site A 1
Site A 2
Site A 3
Site B 1
Site C 1
Site C 2
Ex: if I do a lookup on Site A I want to see a list of all 3 Site A's, as an
alternate solution I can work with getting the info on the site directly
below the site I do a lookup on, such as vlookup on SITE B, and getting Site
C (1) to display.

Thanks!

Squeaky

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
Offset Type Lookup Michael Lockwoo Excel Worksheet Functions 3 March 24th 06 01:20 PM
Lookup and offset Elliott Excel Discussion (Misc queries) 0 February 23rd 06 10:23 PM
offset a lookup in excel Inni17 Excel Worksheet Functions 1 January 17th 06 03:56 PM
Lookup, Index or Offset reno Excel Discussion (Misc queries) 1 October 6th 05 12:06 AM
lookup, index, match, offset, etc. [email protected] Excel Worksheet Functions 2 January 3rd 05 08:51 PM


All times are GMT +1. The time now is 01:15 PM.

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

About Us

"It's about Microsoft Excel"