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 Lookup function for two variables and return another cell?

Hi! I am looking for some help. Seems pretty simple but I can't seem to
figure it out. I know I'll need a lookup function and an "AND" function of
some sort... Take a look and let me know what you think.

row/column A B C
D
1 New SSN 1st signed Blue 2
2 New SSN Calc - not signed Green 1
3 Previous SSN 1st signed Red 3


So I need help finding the combination of "New SSN" and "1st signed" and I
need it to return the corresponding number. So for example, this one would
return the number "2". Any suggestions?

Basically I need a formula that looks up "New SSN" in column A and "1st
signed" in column B and then return the corresponding value in column D.
Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Lookup function for two variables and return another cell?

Hi,

Try this ARRAY formula. The 2 lookup values are in E1 & F1. See below on how
to enter and array formula.

=INDEX(D1:D3,MATCH(1,(A1:A3=E1)*(B1:B3=F1),0))


This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"dcw0405" wrote:

Hi! I am looking for some help. Seems pretty simple but I can't seem to
figure it out. I know I'll need a lookup function and an "AND" function of
some sort... Take a look and let me know what you think.

row/column A B C
D
1 New SSN 1st signed Blue 2
2 New SSN Calc - not signed Green 1
3 Previous SSN 1st signed Red 3


So I need help finding the combination of "New SSN" and "1st signed" and I
need it to return the corresponding number. So for example, this one would
return the number "2". Any suggestions?

Basically I need a formula that looks up "New SSN" in column A and "1st
signed" in column B and then return the corresponding value in column D.
Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Lookup function for two variables and return another cell?

Assuming that the combination of New SSN and 1st signed is unique...

If you're using Excel 2007:

Use cells to hold the criteria...

F1 = New SSN
G1 = 1st signed

Then:

=SUMIFS(D1:D10,A1:A10,F1,B1:B10,G1)

This one will work in any version of Excel:

=SUMPRODUCT(--(A1:A10=F1),--(B1:B10=G1),D1:D10)

--
Biff
Microsoft Excel MVP


"dcw0405" wrote in message
...
Hi! I am looking for some help. Seems pretty simple but I can't seem to
figure it out. I know I'll need a lookup function and an "AND" function of
some sort... Take a look and let me know what you think.

row/column A B C
D
1 New SSN 1st signed Blue
2
2 New SSN Calc - not signed Green 1
3 Previous SSN 1st signed Red
3


So I need help finding the combination of "New SSN" and "1st signed" and I
need it to return the corresponding number. So for example, this one would
return the number "2". Any suggestions?

Basically I need a formula that looks up "New SSN" in column A and "1st
signed" in column B and then return the corresponding value in column D.
Thanks!



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
Return multiple values using a lookup function Mayo Excel Worksheet Functions 10 March 24th 09 06:12 PM
Lookup based on two variables and return a third Mark Excel Worksheet Functions 3 August 29th 08 03:26 PM
Lookup function - can it return the higher value? Xipha Excel Discussion (Misc queries) 1 April 3rd 08 07:59 PM
Lookup function using 2 variables tbar38547 Excel Worksheet Functions 2 April 14th 07 03:54 PM
return range of data from lookup function Boom1 Excel Worksheet Functions 0 August 18th 06 05:13 PM


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