Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Return data from catagory

Worksheet #1 - Standing Database of inventory
Column A = Kool, Marlboro, Newport, Snickers, M&M, Miller, Bud, Labatts
(Actual data is product number)
Column B (product catagory = Cigarette, Candy, Beer

WorkSheet #2 - Daily tally of what was actually sold sold but i need to know
the catagory of the product not the actual product placed in column D
Column A = Kool, Kool, Snickers, Bud,Labatts, Newport
Column B = Quantity sold
Column C = Price
Column D = Would like to reference Worksheet #1 and insert the Catagory of
the product name that is listed in Column B of Worksheet #1.

Worksheet #2 is a copy and paste from a Crystal report.
Expected results for above entries on Worksheet #2 in Column D would be
"Cigarette, Cigarette, Candy, Beer, Beer, Cigarette....

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Return data from catagory

You want Vlookup, as in:
=vlookup(a2,sheet1!A:B,2,false)

Regards,
Fred.

"dadtofive" wrote in message
...
Worksheet #1 - Standing Database of inventory
Column A = Kool, Marlboro, Newport, Snickers, M&M, Miller, Bud, Labatts
(Actual data is product number)
Column B (product catagory = Cigarette, Candy, Beer

WorkSheet #2 - Daily tally of what was actually sold sold but i need to
know
the catagory of the product not the actual product placed in column D
Column A = Kool, Kool, Snickers, Bud,Labatts, Newport
Column B = Quantity sold
Column C = Price
Column D = Would like to reference Worksheet #1 and insert the Catagory of
the product name that is listed in Column B of Worksheet #1.

Worksheet #2 is a copy and paste from a Crystal report.
Expected results for above entries on Worksheet #2 in Column D would be
"Cigarette, Cigarette, Candy, Beer, Beer, Cigarette....


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Return data from catagory

Thank You Fred... Works great...

"Fred Smith" wrote:

You want Vlookup, as in:
=vlookup(a2,sheet1!A:B,2,false)

Regards,
Fred.

"dadtofive" wrote in message
...
Worksheet #1 - Standing Database of inventory
Column A = Kool, Marlboro, Newport, Snickers, M&M, Miller, Bud, Labatts
(Actual data is product number)
Column B (product catagory = Cigarette, Candy, Beer

WorkSheet #2 - Daily tally of what was actually sold sold but i need to
know
the catagory of the product not the actual product placed in column D
Column A = Kool, Kool, Snickers, Bud,Labatts, Newport
Column B = Quantity sold
Column C = Price
Column D = Would like to reference Worksheet #1 and insert the Catagory of
the product name that is listed in Column B of Worksheet #1.

Worksheet #2 is a copy and paste from a Crystal report.
Expected results for above entries on Worksheet #2 in Column D would be
"Cigarette, Cigarette, Candy, Beer, Beer, Cigarette....


.

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
Second catagory axis in XY chart Jim Charts and Charting in Excel 2 January 30th 09 04:06 PM
Transfer Per catagory Jman Excel Discussion (Misc queries) 9 October 21st 08 11:53 PM
Counting date and catagory match Reed Excel Discussion (Misc queries) 6 November 29th 07 12:34 AM
Catagory Axis tgorham Charts and Charting in Excel 1 November 7th 05 08:15 PM
How do I change the scale of the catagory axis? amcmaster Charts and Charting in Excel 1 March 2nd 05 04:46 PM


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