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 VLOOKUP & 2 arguments

How do you perform VLOOKUP with 2 arguments? The 2 arguments are listed in
separate fields within the reference table, columns 1 & 2. When both are
met, I want to return the value in column 3.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default VLOOKUP & 2 arguments

Provide some examplse.

--------------------
(Ms-Exl-Learner)
--------------------



"kimha" wrote:

How do you perform VLOOKUP with 2 arguments? The 2 arguments are listed in
separate fields within the reference table, columns 1 & 2. When both are
met, I want to return the value in column 3.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default VLOOKUP & 2 arguments

kimha wrote:
How do you perform VLOOKUP with 2 arguments? The 2 arguments are listed in
separate fields within the reference table, columns 1 & 2. When both are
met, I want to return the value in column 3.



Try this:

http://www.contextures.com/xlFunctio...tml#SumProduct
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default VLOOKUP & 2 arguments

Kimha

Try the below...which returns the value from col C if both condition 1 and
condition2 agrees.

=INDEX(C1:C10,MATCH(1,(A1:A10=criteria1)*(B1:B10=c riteria2),0))

Please note that this is an array formula. An array formula can perform
multiple calculations and then return either a single result or multiple
results. Array formulas act on two or more sets of values known as array
arguments. Each array argument must have the same number of rows and columns.
You create array formulas in the same way that you create other formulas,
except you press CTRL+SHIFT+ENTER to enter the formula. If successful in
'Formula Bar' you can notice the curly braces at both ends like "{=<formula}"

If this post helps click Yes
---------------
Jacob Skaria


"kimha" wrote:

How do you perform VLOOKUP with 2 arguments? The 2 arguments are listed in
separate fields within the reference table, columns 1 & 2. When both are
met, I want to return the value in column 3.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default VLOOKUP & 2 arguments

Pop Year - mo Value
TN 2007-01 88
TN 2007-02 243
TN 2007-03 32
TN 2007-04 69
PA 2007-01 82
PA 2007-02 158
PA 2007-03 34
PA 2007-04 61


So, if Pop = TN and YearMo = 2007-03, return value of 32.

I'm sure there's some sort of way to create embedded IF, AND, and VLOOKUP
statements. I just haven't been able to figure it out.

Thanks-


"Ms-Exl-Learner" wrote:

Provide some examplse.

--------------------
(Ms-Exl-Learner)
--------------------



"kimha" wrote:

How do you perform VLOOKUP with 2 arguments? The 2 arguments are listed in
separate fields within the reference table, columns 1 & 2. When both are
met, I want to return the value in column 3.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default VLOOKUP & 2 arguments

Try this...

=SUMPRODUCT(--(A2:A9="TN"),--(B2:B9="2007-03"),--(C2:C9))

Instead of mentioning the value in the formula you can refer it to a cell
(i.e.) "TN" to E2 and the Year "2007-03" to F2 cell

=SUMPRODUCT(--(A2:A9=E2),--(B2:B9=F2),--(C2:C9))

If this post helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------



"kimha" wrote:

Pop Year - mo Value
TN 2007-01 88
TN 2007-02 243
TN 2007-03 32
TN 2007-04 69
PA 2007-01 82
PA 2007-02 158
PA 2007-03 34
PA 2007-04 61


So, if Pop = TN and YearMo = 2007-03, return value of 32.

I'm sure there's some sort of way to create embedded IF, AND, and VLOOKUP
statements. I just haven't been able to figure it out.

Thanks-


"Ms-Exl-Learner" wrote:

Provide some examplse.

--------------------
(Ms-Exl-Learner)
--------------------



"kimha" wrote:

How do you perform VLOOKUP with 2 arguments? The 2 arguments are listed in
separate fields within the reference table, columns 1 & 2. When both are
met, I want to return the value in column 3.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default VLOOKUP & 2 arguments

The SUMPRODUCT formula is used to sum the 3rd column based on the matching
critera of 1st and 2nd column. In this case it might be OK since you dont
have duplicate values...Try out with text values in 3rd column

If this post helps click Yes
---------------
Jacob Skaria


"kimha" wrote:

Pop Year - mo Value
TN 2007-01 88
TN 2007-02 243
TN 2007-03 32
TN 2007-04 69
PA 2007-01 82
PA 2007-02 158
PA 2007-03 34
PA 2007-04 61


So, if Pop = TN and YearMo = 2007-03, return value of 32.

I'm sure there's some sort of way to create embedded IF, AND, and VLOOKUP
statements. I just haven't been able to figure it out.

Thanks-


"Ms-Exl-Learner" wrote:

Provide some examplse.

--------------------
(Ms-Exl-Learner)
--------------------



"kimha" wrote:

How do you perform VLOOKUP with 2 arguments? The 2 arguments are listed in
separate fields within the reference table, columns 1 & 2. When both are
met, I want to return the value in column 3.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Ken is offline
external usenet poster
 
Posts: 207
Default VLOOKUP & 2 arguments


kimha

Sometimes it is easier to add a helper column that concatenates the
values in the two columns on which you are conditioning your VLOOKUP.
If you add a column A with the formula =A2&B2 copied down all your
data rows and you have your "lookup conditions" in B10 and C10 you can
use

=VLOOKUP(B10&C10, A2:D10,4,false)

You can have your Pop and your Year-mo as variables in B10 and C10 and
you can hide column A.

Good luck.

Ken
Norfolk, Va

On Oct 12, 12:02*pm, kimha wrote:
Pop * * Year - mo * * * Value
TN * * *2007-01 * * * * *88
TN * * *2007-02 * * * * *243
TN * * *2007-03 * * * * * 32
TN * * *2007-04 * * * * *69
PA * * *2007-01 * * * * *82
PA * * *2007-02 * * * * *158
PA * * *2007-03 * * * * 34
PA * * *2007-04 * * * * *61

So, if Pop = TN and YearMo = 2007-03, return value of 32.

I'm sure there's some sort of way to create embedded IF, AND, and VLOOKUP
statements. *I just haven't been able to figure it out.

Thanks-



"Ms-Exl-Learner" wrote:
Provide some examplse.


--------------------
(Ms-Exl-Learner)
--------------------


"kimha" wrote:


How do you perform VLOOKUP with 2 arguments? *The 2 arguments are listed in
separate fields within the reference table, columns 1 & 2. *When both are
met, I want to return the value in column 3.- Hide quoted text -


- Show quoted text -


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default VLOOKUP & 2 arguments

Hi,

Suppose your data is in range C6:E14 (including the header rows). In
C17:E17 enter the same heading as in C6:E6. In C18:D18, enter TN and
2007-03. In E18, enter the following formula and copy down

=DSUM($C$6:$E$14,E$17,$C$17:D18)-SUM($E$17:E17)

You may enter more data C19:D19 onwards

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"kimha" wrote in message
...
Pop Year - mo Value
TN 2007-01 88
TN 2007-02 243
TN 2007-03 32
TN 2007-04 69
PA 2007-01 82
PA 2007-02 158
PA 2007-03 34
PA 2007-04 61


So, if Pop = TN and YearMo = 2007-03, return value of 32.

I'm sure there's some sort of way to create embedded IF, AND, and VLOOKUP
statements. I just haven't been able to figure it out.

Thanks-


"Ms-Exl-Learner" wrote:

Provide some examplse.

--------------------
(Ms-Exl-Learner)
--------------------



"kimha" wrote:

How do you perform VLOOKUP with 2 arguments? The 2 arguments are
listed in
separate fields within the reference table, columns 1 & 2. When both
are
met, I want to return the value in column 3.


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
vlookup 2 arguments lab-guy Excel Worksheet Functions 4 March 17th 09 04:15 AM
VLOOKUP (Using Multiple Arguments) Ryan F[_2_] Excel Worksheet Functions 1 January 20th 09 06:31 PM
2 way Vlookup - Creating array arguments from columns Hari Excel Discussion (Misc queries) 1 May 11th 06 01:18 PM
Multiple vlookup arguments ichall Excel Worksheet Functions 2 October 19th 05 10:47 PM
Too many arguments-VLOOKUP instead? Trina` Excel Worksheet Functions 2 July 4th 05 10:13 AM


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