Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 61
Default two condition for vlookup?

I have data where i have to put two condition than it should take next column
data. I have field like...

ThickNess,Class, Area,Weight
4,L,12,321
4.85,M,23.4,136
and so on.
I want to lookup data when i entry both ThickNess & Class than it should
give Area,Weight
I try vlookup but not working. Any Help
Thanks

****al

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 95
Default two condition for vlookup?

You can use sumproduct instead, something like:
Area: =SUMPRODUCT(--(A2:A3=4.85),--(B2:B3="M"),C2:C3)
Weight: =SUMPRODUCT(--(A2:A3=4.85),--(B2:B3="M"),D2:D3)

Change the ranges and the comparisions (use cell references instead) as
appropiate

Hope this helps,
Miguel.

"****al shah" wrote:

I have data where i have to put two condition than it should take next column
data. I have field like...

ThickNess,Class, Area,Weight
4,L,12,321
4.85,M,23.4,136
and so on.
I want to lookup data when i entry both ThickNess & Class than it should
give Area,Weight
I try vlookup but not working. Any Help
Thanks

****al

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 61
Default two condition for vlookup?

thnaks i will try and if any i will be back.
****al

"Miguel Zapico" wrote:

If the combination of Thickness and class is unique, the sumproduct formula
will return the value you look for, as there will be only one value that
won't be multiplied by zero in all the range. Try it with a few values.
If that is not unique, the formula will give you misleading information, but
only in that case.

Miguel.

"****al shah" wrote:

thanks for reply so fast Miguel.

I just want to lookup Area & Weight value for refance into other sheet when
i entry ThickNess & Class. I don't want to make any sum or product.
Is this possible.
thanks


"Miguel Zapico" wrote:

You can use sumproduct instead, something like:
Area: =SUMPRODUCT(--(A2:A3=4.85),--(B2:B3="M"),C2:C3)
Weight: =SUMPRODUCT(--(A2:A3=4.85),--(B2:B3="M"),D2:D3)

Change the ranges and the comparisions (use cell references instead) as
appropiate

Hope this helps,
Miguel.

"****al shah" wrote:

I have data where i have to put two condition than it should take next column
data. I have field like...

ThickNess,Class, Area,Weight
4,L,12,321
4.85,M,23.4,136
and so on.
I want to lookup data when i entry both ThickNess & Class than it should
give Area,Weight
I try vlookup but not working. Any Help
Thanks

****al

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 95
Default two condition for vlookup?

If the combination of Thickness and class is unique, the sumproduct formula
will return the value you look for, as there will be only one value that
won't be multiplied by zero in all the range. Try it with a few values.
If that is not unique, the formula will give you misleading information, but
only in that case.

Miguel.

"****al shah" wrote:

thanks for reply so fast Miguel.

I just want to lookup Area & Weight value for refance into other sheet when
i entry ThickNess & Class. I don't want to make any sum or product.
Is this possible.
thanks


"Miguel Zapico" wrote:

You can use sumproduct instead, something like:
Area: =SUMPRODUCT(--(A2:A3=4.85),--(B2:B3="M"),C2:C3)
Weight: =SUMPRODUCT(--(A2:A3=4.85),--(B2:B3="M"),D2:D3)

Change the ranges and the comparisions (use cell references instead) as
appropiate

Hope this helps,
Miguel.

"****al shah" wrote:

I have data where i have to put two condition than it should take next column
data. I have field like...

ThickNess,Class, Area,Weight
4,L,12,321
4.85,M,23.4,136
and so on.
I want to lookup data when i entry both ThickNess & Class than it should
give Area,Weight
I try vlookup but not working. Any Help
Thanks

****al

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 61
Default two condition for vlookup?

thanks for reply so fast Miguel.

I just want to lookup Area & Weight value for refance into other sheet when
i entry ThickNess & Class. I don't want to make any sum or product.
Is this possible.
thanks


"Miguel Zapico" wrote:

You can use sumproduct instead, something like:
Area: =SUMPRODUCT(--(A2:A3=4.85),--(B2:B3="M"),C2:C3)
Weight: =SUMPRODUCT(--(A2:A3=4.85),--(B2:B3="M"),D2:D3)

Change the ranges and the comparisions (use cell references instead) as
appropiate

Hope this helps,
Miguel.

"****al shah" wrote:

I have data where i have to put two condition than it should take next column
data. I have field like...

ThickNess,Class, Area,Weight
4,L,12,321
4.85,M,23.4,136
and so on.
I want to lookup data when i entry both ThickNess & Class than it should
give Area,Weight
I try vlookup but not working. Any Help
Thanks

****al

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
3 logical condition if statement Mikehughes Excel Worksheet Functions 3 July 19th 06 01:59 PM
If more than condition forumula Corey Excel Worksheet Functions 3 June 20th 06 06:58 AM
conditional formatting - multiple condition jenhow Excel Discussion (Misc queries) 5 August 17th 05 02:45 PM
Condition IF Jeff Excel Discussion (Misc queries) 3 February 15th 05 10:19 PM
Add condition to formula Pat Excel Worksheet Functions 0 November 16th 04 12:23 PM


All times are GMT +1. The time now is 05:39 PM.

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"