Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 208
Default lookup function to meet two conditions

I want to use a lookup function to meet two criteria. I have Sales Order
numbers in one column and line items in another. So i want to say 'match the
sales order# and the line item number and return back the item description'

SO#'s Line Number - - - - -- - then seperate data with the following:
325 1 SO#'s Line Number
Product descript
325 2 314
8 widget fluffy
326 1 325
2 wood
326 2 326
1 sofa
327 1
327 2

So i want to match both the SO# and the Line # and then if it matches return
the product description.

Thank you kindly -


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 208
Default lookup function to meet two conditions

Sorry the formatting messed up :
I want to use a lookup function to meet two criteria. I have Sales Order
numbers in one column and line items in another. So i want to say 'match the
sales order# and the line item number and return back the item description'


SO#'s Line Number - - -
325 1
325 2
326 1
326 2
327 1
327 2

- then seperate data with the following:
SO#'s Line Number Product descript
314 8 widget fluffy
325 2 wood
326 1 sofa



So i want to match both the SO# and the Line # and then if it matches return
the product description.

Thank you kindly -



"Sean" wrote:

I want to use a lookup function to meet two criteria. I have Sales Order
numbers in one column and line items in another. So i want to say 'match the
sales order# and the line item number and return back the item description'

SO#'s Line Number - - - - -- - then seperate data with the following:
325 1 SO#'s Line Number
Product descript
325 2 314
8 widget fluffy
326 1 325
2 wood
326 2 326
1 sofa
327 1
327 2

So i want to match both the SO# and the Line # and then if it matches return
the product description.

Thank you kindly -


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default lookup function to meet two conditions

Assume this table below is in cols A to C:

SO#'s Line Number Product descript
314 8 widget fluffy
326 2 wood
326 1 sofa
....

You could use an array-entered* index/match,
something like this:
=index(C2:C10,match(1,(a2:a10=326)*(b2:b10=2),0))
to return the product descript from col C (ie wood),
given an SO# (eg: 326) & line number (eg: 2)

*ie formula is confirmed via pressing CTRL+SHIFT+ENTER
instead of just pressing ENTER
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700 Files:359 Subscribers:55
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
If formula with two conditions to meet Carolina Excel Worksheet Functions 7 August 28th 08 05:25 PM
Counting rows that meet conditions in multiple columns belleinhell Excel Worksheet Functions 3 July 21st 08 06:50 PM
Array to meet conditions Erin Excel Worksheet Functions 5 January 16th 07 08:37 PM
Lookup function with mulitple conditions Tiffany Excel Worksheet Functions 7 August 21st 06 06:40 AM
Hiding rows that meet multiple conditions in excel KBV Excel Discussion (Misc queries) 1 July 4th 06 10:14 PM


All times are GMT +1. The time now is 06:05 AM.

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"