#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default vlookup function

I am trying to pull data from a list of items. I think I am trying to use a
nested vlookup but maybe not or maybe an array formula. If there is match
with column A & Column B I need Column J data. How do I achieve?

The worksheet is setup as follows:
In Column A I have a list of item numbers and there is more than one of the
same number. They are sorted in numerical order.

In column B, I also have numbered items Ex. If Column A has item#1 three
times. Column B has those three items numbered from 1 to 3.

how do I get data from Column J when the criteria for what is in column A is
met and column B is met - maybe a nested if array?

HELP!!!!
--
Celia
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default vlookup function

Do you mean

=SUMPRODUCT(--(A2:A20="item #"),--(B2:B20=1),J2:J20)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Celia" wrote in message
...
I am trying to pull data from a list of items. I think I am trying to use
a
nested vlookup but maybe not or maybe an array formula. If there is match
with column A & Column B I need Column J data. How do I achieve?

The worksheet is setup as follows:
In Column A I have a list of item numbers and there is more than one of
the
same number. They are sorted in numerical order.

In column B, I also have numbered items Ex. If Column A has item#1 three
times. Column B has those three items numbered from 1 to 3.

how do I get data from Column J when the criteria for what is in column A
is
met and column B is met - maybe a nested if array?

HELP!!!!
--
Celia



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default vlookup function

No, sorry for the confusing question.

Ex. I am trying to find the value in column J if 2 criteria are met. If
the data looks like below then if column A=2 and column B=3, I want dog
returned. It looks like it should be a nested vlookup but I am not sure how
to execute it.

Column A Column B Column J
1 1 gift
2 1 box
2 2 car
2 3 dog
3 1 cat
4 1 roof
4 2 pet








Celia


"Bob Phillips" wrote:

Do you mean

=SUMPRODUCT(--(A2:A20="item #"),--(B2:B20=1),J2:J20)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Celia" wrote in message
...
I am trying to pull data from a list of items. I think I am trying to use
a
nested vlookup but maybe not or maybe an array formula. If there is match
with column A & Column B I need Column J data. How do I achieve?

The worksheet is setup as follows:
In Column A I have a list of item numbers and there is more than one of
the
same number. They are sorted in numerical order.

In column B, I also have numbered items Ex. If Column A has item#1 three
times. Column B has those three items numbered from 1 to 3.

how do I get data from Column J when the criteria for what is in column A
is
met and column B is met - maybe a nested if array?

HELP!!!!
--
Celia




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default vlookup function

=INDEX(J2:J20,MATCH(1,(A2:A20=2)*(B2:b20-3),0))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

Note that you cannot use a whole column in array formulae (prior to excel
2007), but must use an explicit range.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Celia" wrote in message
...
No, sorry for the confusing question.

Ex. I am trying to find the value in column J if 2 criteria are met.
If
the data looks like below then if column A=2 and column B=3, I want dog
returned. It looks like it should be a nested vlookup but I am not sure
how
to execute it.

Column A Column B Column J
1 1 gift
2 1 box
2 2 car
2 3 dog
3 1 cat
4 1 roof
4 2 pet








Celia


"Bob Phillips" wrote:

Do you mean

=SUMPRODUCT(--(A2:A20="item #"),--(B2:B20=1),J2:J20)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Celia" wrote in message
...
I am trying to pull data from a list of items. I think I am trying to
use
a
nested vlookup but maybe not or maybe an array formula. If there is
match
with column A & Column B I need Column J data. How do I achieve?

The worksheet is setup as follows:
In Column A I have a list of item numbers and there is more than one of
the
same number. They are sorted in numerical order.

In column B, I also have numbered items Ex. If Column A has item#1
three
times. Column B has those three items numbered from 1 to 3.

how do I get data from Column J when the criteria for what is in column
A
is
met and column B is met - maybe a nested if array?

HELP!!!!
--
Celia






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default vlookup function

THANK YOU SO MUCH!!!!!!!
--
Celia


"Bob Phillips" wrote:

=INDEX(J2:J20,MATCH(1,(A2:A20=2)*(B2:b20-3),0))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

Note that you cannot use a whole column in array formulae (prior to excel
2007), but must use an explicit range.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Celia" wrote in message
...
No, sorry for the confusing question.

Ex. I am trying to find the value in column J if 2 criteria are met.
If
the data looks like below then if column A=2 and column B=3, I want dog
returned. It looks like it should be a nested vlookup but I am not sure
how
to execute it.

Column A Column B Column J
1 1 gift
2 1 box
2 2 car
2 3 dog
3 1 cat
4 1 roof
4 2 pet








Celia


"Bob Phillips" wrote:

Do you mean

=SUMPRODUCT(--(A2:A20="item #"),--(B2:B20=1),J2:J20)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Celia" wrote in message
...
I am trying to pull data from a list of items. I think I am trying to
use
a
nested vlookup but maybe not or maybe an array formula. If there is
match
with column A & Column B I need Column J data. How do I achieve?

The worksheet is setup as follows:
In Column A I have a list of item numbers and there is more than one of
the
same number. They are sorted in numerical order.

In column B, I also have numbered items Ex. If Column A has item#1
three
times. Column B has those three items numbered from 1 to 3.

how do I get data from Column J when the criteria for what is in column
A
is
met and column B is met - maybe a nested if array?

HELP!!!!
--
Celia








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
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Embedded VLOOKUP function within IF function beautyteknorth Excel Worksheet Functions 6 August 17th 06 09:31 AM
HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION CHAIM Excel Worksheet Functions 1 July 27th 05 09:10 PM
how do I write a vlookup function within an iserror function so t. JBLeeds Excel Worksheet Functions 2 March 16th 05 10:30 AM
I want to use Vlookup function and AND function in a single formu. prakash Excel Worksheet Functions 3 January 25th 05 07:11 AM


All times are GMT +1. The time now is 06:00 AM.

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"