Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default lookup multiple criteria

Hi

I have an array with a lot of data on Sheet1
Column A list styles
Column B list product
Column C list color code
Column D list color name

on Sheet2, I have dropdown menus
on Col A, you select the style
on Col B, you click on the product
and in Col C, you select the color code

I want to display in Col D the color name

Since I have a lot of color codes for each product
and a lot of products for each style
a VLOOKUP won't work

how can I search for the color names??



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default lookup multiple criteria

Try this array formula** :

=INDEX(Sheet1!D1:D100,MATCH(1,(Sheet1!A1:A100=A1)* (Sheet1!B1:B100=B1)*(Sheet1!C1:C100=C1),0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Alonso" wrote in message
...
Hi

I have an array with a lot of data on Sheet1
Column A list styles
Column B list product
Column C list color code
Column D list color name

on Sheet2, I have dropdown menus
on Col A, you select the style
on Col B, you click on the product
and in Col C, you select the color code

I want to display in Col D the color name

Since I have a lot of color codes for each product
and a lot of products for each style
a VLOOKUP won't work

how can I search for the color names??





  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default lookup multiple criteria

Like a charm Biff
thanks!!

just another question
if Col C is empty, i get a zero if col B or A is empty too
and #N/A if they have values

can i get rid of those??



"T. Valko" wrote:

Try this array formula** :

=INDEX(Sheet1!D1:D100,MATCH(1,(Sheet1!A1:A100=A1)* (Sheet1!B1:B100=B1)*(Sheet1!C1:C100=C1),0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Alonso" wrote in message
...
Hi

I have an array with a lot of data on Sheet1
Column A list styles
Column B list product
Column C list color code
Column D list color name

on Sheet2, I have dropdown menus
on Col A, you select the style
on Col B, you click on the product
and in Col C, you select the color code

I want to display in Col D the color name

Since I have a lot of color codes for each product
and a lot of products for each style
a VLOOKUP won't work

how can I search for the color names??






  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default lookup multiple criteria

if Col C is empty, i get a zero if col B or A is
empty too and #N/A if they have values
can i get rid of those??


That's gonna result in a monster formula!

=IF(SUM((Sheet1!A1:A10=A1)*(Sheet1!B1:B10=B1)*(She et1!C1:C10=C1)),IF(INDEX(Sheet1!D1:D10,MATCH(1,(Sh eet1!A1:A10=A1)*(Sheet1!B1:B10=B1)*(Sheet1!C1:C10= C1),0))="","",INDEX(Sheet1!D1:D10,MATCH(1,(Sheet1! A1:A10=A1)*(Sheet1!B1:B10=B1)*(Sheet1!C1:C10=C1),0 ))),"")

You might just want to use the original formula and then use another smaller
formula in a different cell like this:

Assume the original formula is in cell X1. Then:

=IF(ISNA(X1),"",IF(X1=0,"",X1))


--
Biff
Microsoft Excel MVP


"Alonso" wrote in message
...
Like a charm Biff
thanks!!

just another question
if Col C is empty, i get a zero if col B or A is empty too
and #N/A if they have values

can i get rid of those??



"T. Valko" wrote:

Try this array formula** :

=INDEX(Sheet1!D1:D100,MATCH(1,(Sheet1!A1:A100=A1)* (Sheet1!B1:B100=B1)*(Sheet1!C1:C100=C1),0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Alonso" wrote in message
...
Hi

I have an array with a lot of data on Sheet1
Column A list styles
Column B list product
Column C list color code
Column D list color name

on Sheet2, I have dropdown menus
on Col A, you select the style
on Col B, you click on the product
and in Col C, you select the color code

I want to display in Col D the color name

Since I have a lot of color codes for each product
and a lot of products for each style
a VLOOKUP won't work

how can I search for the color names??








  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default lookup multiple criteria

awesome Biff!!

you have just save my day!!


"T. Valko" wrote:

if Col C is empty, i get a zero if col B or A is
empty too and #N/A if they have values
can i get rid of those??


That's gonna result in a monster formula!

=IF(SUM((Sheet1!A1:A10=A1)*(Sheet1!B1:B10=B1)*(She et1!C1:C10=C1)),IF(INDEX(Sheet1!D1:D10,MATCH(1,(Sh eet1!A1:A10=A1)*(Sheet1!B1:B10=B1)*(Sheet1!C1:C10= C1),0))="","",INDEX(Sheet1!D1:D10,MATCH(1,(Sheet1! A1:A10=A1)*(Sheet1!B1:B10=B1)*(Sheet1!C1:C10=C1),0 ))),"")

You might just want to use the original formula and then use another smaller
formula in a different cell like this:

Assume the original formula is in cell X1. Then:

=IF(ISNA(X1),"",IF(X1=0,"",X1))


--
Biff
Microsoft Excel MVP




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF FORMULA OR LOOKUP???

I have been unsuccessful figuring out the formula. I am trying to set column
A with a fixed value number (hours), but this column cannot exceed the
working hours in column B. The fixed value will depend on the total amount
of specimens. The hours in column A are default by the following
information: 20 specimens = fixed value of 2.0 = working hrs of 2.5 ; 30
speicmens = fixed value of 2.5 = working hrs of 3.0.

Im currently using this:

=LOOKUP(D11,{20,30,40,50,60,70,80,90,100},{"2","2. 5","3.5","4.0","5.0","6.0","6.5","7.5","8.0"})

But€¦..now I might have 25, 66, 77, etc. specimens and thus the fixed value
should be higher than the standard value and working hours will increase.

In the past I have try the conditional formula €œIF€. Eg.
If(k=<20,€2.0€;<20,€2.5€€¦etc)

Does anyone have any ideas as to solving this issue?



"T. Valko" wrote:

Try this array formula** :

=INDEX(Sheet1!D1:D100,MATCH(1,(Sheet1!A1:A100=A1)* (Sheet1!B1:B100=B1)*(Sheet1!C1:C100=C1),0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Alonso" wrote in message
...
Hi

I have an array with a lot of data on Sheet1
Column A list styles
Column B list product
Column C list color code
Column D list color name

on Sheet2, I have dropdown menus
on Col A, you select the style
on Col B, you click on the product
and in Col C, you select the color code

I want to display in Col D the color name

Since I have a lot of color codes for each product
and a lot of products for each style
a VLOOKUP won't work

how can I search for the color names??






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default lookup multiple criteria

Good deal. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Alonso" wrote in message
...
awesome Biff!!

you have just save my day!!


"T. Valko" wrote:

if Col C is empty, i get a zero if col B or A is
empty too and #N/A if they have values
can i get rid of those??


That's gonna result in a monster formula!

=IF(SUM((Sheet1!A1:A10=A1)*(Sheet1!B1:B10=B1)*(She et1!C1:C10=C1)),IF(INDEX(Sheet1!D1:D10,MATCH(1,(Sh eet1!A1:A10=A1)*(Sheet1!B1:B10=B1)*(Sheet1!C1:C10= C1),0))="","",INDEX(Sheet1!D1:D10,MATCH(1,(Sheet1! A1:A10=A1)*(Sheet1!B1:B10=B1)*(Sheet1!C1:C10=C1),0 ))),"")

You might just want to use the original formula and then use another
smaller
formula in a different cell like this:

Assume the original formula is in cell X1. Then:

=IF(ISNA(X1),"",IF(X1=0,"",X1))


--
Biff
Microsoft Excel MVP




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default lookup multiple criteria

Hi,

Try this

http://office.microsoft.com/en-us/ex...260381033.aspx

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Alonso" wrote in message
...
Hi

I have an array with a lot of data on Sheet1
Column A list styles
Column B list product
Column C list color code
Column D list color name

on Sheet2, I have dropdown menus
on Col A, you select the style
on Col B, you click on the product
and in Col C, you select the color code

I want to display in Col D the color name

Since I have a lot of color codes for each product
and a lot of products for each style
a VLOOKUP won't work

how can I search for the color names??



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 Multiple Criteria build Excel Worksheet Functions 4 October 10th 07 03:34 PM
Lookup using multiple sheets and multiple criteria, sorry if 2 pos kjguillermo Excel Worksheet Functions 4 January 16th 07 03:21 AM
Lookup using multiple sheets and multiple criteria kjguillermo Excel Discussion (Misc queries) 2 January 14th 07 10:28 AM
Multiple Criteria Lookup GB Excel Worksheet Functions 3 October 3rd 06 11:55 PM
HELP!! Lookup multiple criteria Kikkoman Excel Discussion (Misc queries) 3 May 17th 06 01:23 PM


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