#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Lookup formula

I have 2 worsheets (sheet 1 & sheet 2).
Column B of sheet 2 (Product Name) needs data from sheet 1.
Data in Sheet 1 is column A=Vendor Name , column B = Product Name.
I need to sort through sheet 1 to create a list in sheet 2 that specifies
product name per vendor (i.e. all the products from Pepsi).

I tried the following formula, but it only works if there is 1 product from
Pepsi.
The formula in B2 is =VLOOKUP(A1,Sheet1!B$2:C$1000,2,FALSE).

What formula should I use to sort through sheet 1 to get all the products
from Pepsi? Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Lookup formula

Easiest way here - try a pivot table. Takes only seconds to set it up. It'll
drive out the results you seek, and provide you with "autofilter"
functionalities to boot

Some easy steps to lead you in (xl2003)
In the source table in Sheet1,
Assume you have the col labels "Vendor" in col A, "Product" in col B,
with data in row2 down

Select a cell within the source table
Click Data Pivot table
Click Next Next
In step3 of the wiz., click Layout
Drag n drop Vendor in ROW area
Drag n drop Product in ROW area (below Vendor)
Drag n drop Product in DATA area
(it'll appear as Count of Product)
Click OK Finish. Incredible to believe, but that's it.

Hop over to the pivot sheet (to the left) for the desired results. You can
easily use the pivot "filter" dropdown for "Vendor" to select only a single
vendor to display or any selection of vendors to taste.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"rldjda" wrote:
I have 2 worsheets (sheet 1 & sheet 2).
Column B of sheet 2 (Product Name) needs data from sheet 1.
Data in Sheet 1 is column A=Vendor Name , column B = Product Name.
I need to sort through sheet 1 to create a list in sheet 2 that specifies
product name per vendor (i.e. all the products from Pepsi).

I tried the following formula, but it only works if there is 1 product from
Pepsi.
The formula in B2 is =VLOOKUP(A1,Sheet1!B$2:C$1000,2,FALSE).

What formula should I use to sort through sheet 1 to get all the products
from Pepsi? Thank you in advance.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Lookup formula

Thanks, but does anyone know how to do this on xl2007?

"Max" wrote:

Easiest way here - try a pivot table. Takes only seconds to set it up. It'll
drive out the results you seek, and provide you with "autofilter"
functionalities to boot

Some easy steps to lead you in (xl2003)
In the source table in Sheet1,
Assume you have the col labels "Vendor" in col A, "Product" in col B,
with data in row2 down

Select a cell within the source table
Click Data Pivot table
Click Next Next
In step3 of the wiz., click Layout
Drag n drop Vendor in ROW area
Drag n drop Product in ROW area (below Vendor)
Drag n drop Product in DATA area
(it'll appear as Count of Product)
Click OK Finish. Incredible to believe, but that's it.

Hop over to the pivot sheet (to the left) for the desired results. You can
easily use the pivot "filter" dropdown for "Vendor" to select only a single
vendor to display or any selection of vendors to taste.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"rldjda" wrote:
I have 2 worsheets (sheet 1 & sheet 2).
Column B of sheet 2 (Product Name) needs data from sheet 1.
Data in Sheet 1 is column A=Vendor Name , column B = Product Name.
I need to sort through sheet 1 to create a list in sheet 2 that specifies
product name per vendor (i.e. all the products from Pepsi).

I tried the following formula, but it only works if there is 1 product from
Pepsi.
The formula in B2 is =VLOOKUP(A1,Sheet1!B$2:C$1000,2,FALSE).

What formula should I use to sort through sheet 1 to get all the products
from Pepsi? Thank you in advance.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Lookup formula

Thanks, but does anyone know how to do this on xl2007?

Since it looks increasingly remote that you'd be receiving responses to the
above (I'm sorry that I don't know/have xl2007), suggest you try a fresh new
posting to re-surface it. This time, take care to state at the outset that
you're using xl2007. Good luck!
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


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
Lookup formula?? or other Klee Excel Worksheet Functions 7 May 29th 07 03:16 AM
Lookup Formula? GHawkins Excel Worksheet Functions 5 September 20th 06 09:39 PM
Max Lookup formula sam Excel Worksheet Functions 5 September 16th 05 06:55 AM
Lookup Formula - but have a formula if it can't find/match a value Stephen Excel Worksheet Functions 11 June 14th 05 05:32 AM
Lookup formula Esrei Excel Discussion (Misc queries) 1 April 1st 05 02:36 PM


All times are GMT +1. The time now is 12:45 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"