Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default HELP! What function to use!!

Hi,
HELP!! important data for work!!

Trying to return a cell value when 2 conditions are met using 2 lookup values:

i.e.

A B C
x y 10
x z 20
b z 30


Im trying to return the value 20 when the lookup value I have is x and
another lookup value I have is Z....obviously Vlookup will only return the
first occurence of x when it comes to it and return the value 10.

....I have the values x and z on another sheet, but need excel somehow to use
both of these in front sheet to lookup and return the value 20....

basically i need it to say "When I see x AND z , I need to return the value
next to them....." and not "Theres x, lets return the value next to it", or
"theres z, lets return the value next to it

hope this makes sense...any help appreciated!


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default HELP! What function to use!!

Insert an extra column in your table in which you concatenate A and B. Concatenate your search argument as well.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"kahuna" wrote in message ...
| Hi,
| HELP!! important data for work!!
|
| Trying to return a cell value when 2 conditions are met using 2 lookup values:
|
| i.e.
|
| A B C
| x y 10
| x z 20
| b z 30
|
|
| Im trying to return the value 20 when the lookup value I have is x and
| another lookup value I have is Z....obviously Vlookup will only return the
| first occurence of x when it comes to it and return the value 10.
|
| ...I have the values x and z on another sheet, but need excel somehow to use
| both of these in front sheet to lookup and return the value 20....
|
| basically i need it to say "When I see x AND z , I need to return the value
| next to them....." and not "Theres x, lets return the value next to it", or
| "theres z, lets return the value next to it
|
| hope this makes sense...any help appreciated!
|
|


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default HELP! What function to use!!

=SUMPRODUCT(-(A1:100="x"),-(B1:B100="z"),C1:C100)


"kahuna" wrote:

Hi,
HELP!! important data for work!!

Trying to return a cell value when 2 conditions are met using 2 lookup values:

i.e.

A B C
x y 10
x z 20
b z 30


Im trying to return the value 20 when the lookup value I have is x and
another lookup value I have is Z....obviously Vlookup will only return the
first occurence of x when it comes to it and return the value 10.

...I have the values x and z on another sheet, but need excel somehow to use
both of these in front sheet to lookup and return the value 20....

basically i need it to say "When I see x AND z , I need to return the value
next to them....." and not "Theres x, lets return the value next to it", or
"theres z, lets return the value next to it

hope this makes sense...any help appreciated!


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
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Nesting Networkdays function inside and If function Addison Excel Worksheet Functions 2 April 13th 06 08:04 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


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