Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
John
 
Posts: n/a
Default VLOOKUP with multiple conditions

Hi, I am looking to extract data from a report, what I need to do is view all
the instances where a certain part number appears, but I only want to view
those part numbers that match two criteria, example is below, say Sheet 1

A B C D E
1 Pen John Paid All Full
2 Pencil Ben NP None 0
3 Pen Peter Paid All Full
4 Pen Paul Paid Partial Half

From the above table I would want to extract the orders for Pens, but only
show the ones that are Paid ( col C ) and Full ( col E ). I want to see them
in this format in Sheet 2
A B C D E
1 Pen John Paid All Full
2 Pen Peter Paid All Full
  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Sun, 25 Sep 2005 10:46:07 -0700, "John"
wrote:

Hi, I am looking to extract data from a report, what I need to do is view all
the instances where a certain part number appears, but I only want to view
those part numbers that match two criteria, example is below, say Sheet 1

A B C D E
1 Pen John Paid All Full
2 Pencil Ben NP None 0
3 Pen Peter Paid All Full
4 Pen Paul Paid Partial Half

From the above table I would want to extract the orders for Pens, but only
show the ones that are Paid ( col C ) and Full ( col E ). I want to see them
in this format in Sheet 2
A B C D E
1 Pen John Paid All Full
2 Pen Peter Paid All Full


Your columns should have labels.
Select some cell in your table.

Then

Data/Auto Filter
Select the Down Arrow next to "A" and select Pen
Select the Down Arrow next to "C" and select Paid
Select the Down Arrow next to "E" and select Full

Edit/Copy

Select the upper left cell in your extract area. Make sure that there aren't
hidden rows below this cell which might exist as a result of your auto-filter.
In other words, if your table is in A1:A10, select some cell like G11, or a
cell on another worksheet.

Edit/Paste


--ron
  #3   Report Post  
John Moore
 
Posts: n/a
Default

Thanks ,,, but not what quite what I was looking for ,,,, is there a way to
extract the data without using Auto Filter ,,,,,

"Ron Rosenfeld" wrote:

On Sun, 25 Sep 2005 10:46:07 -0700, "John"
wrote:

Hi, I am looking to extract data from a report, what I need to do is view all
the instances where a certain part number appears, but I only want to view
those part numbers that match two criteria, example is below, say Sheet 1

A B C D E
1 Pen John Paid All Full
2 Pencil Ben NP None 0
3 Pen Peter Paid All Full
4 Pen Paul Paid Partial Half

From the above table I would want to extract the orders for Pens, but only
show the ones that are Paid ( col C ) and Full ( col E ). I want to see them
in this format in Sheet 2
A B C D E
1 Pen John Paid All Full
2 Pen Peter Paid All Full


Your columns should have labels.
Select some cell in your table.

Then

Data/Auto Filter
Select the Down Arrow next to "A" and select Pen
Select the Down Arrow next to "C" and select Paid
Select the Down Arrow next to "E" and select Full

Edit/Copy

Select the upper left cell in your extract area. Make sure that there aren't
hidden rows below this cell which might exist as a result of your auto-filter.
In other words, if your table is in A1:A10, select some cell like G11, or a
cell on another worksheet.

Edit/Paste


--ron

  #4   Report Post  
Domenic
 
Posts: n/a
Default

Assuming that Sheet1!A2:E5 contains your source data, try the following
formula system...

On Sheet2...

A2: enter your first criterion, such as 'Pen'

B2: enter your second criterion, such as 'Paid'

C2: enter your third criterion, such as 'Full'

D1: enter 0 (zero)

D2, copied down:

=IF((Sheet1!A2<"")*(Sheet1!A2=$A$2)*(Sheet1!C2=$B $2)*(Sheet1!E2=$C$2),LO
OKUP(9.99999999999999E+307,$D$1:D1)+1,"")

E1:

=LOOKUP(9.99999999999999E+307,D:D)

F2, copied down:

=IF(ROW()-ROW(F$2)+1<=$E$1,MATCH(ROW()-ROW(F$2)+1,$D$2:$D$5,0),"")

G2, copied across and down:

=IF(N($F2),INDEX(Sheet1!A$2:A$5,$F2),"")

Change the criteria entered in A2, B2, and C2, accordingly. Also, if
you prefer, you can hide helper Columns D, E, and F.

Hope this helps!

In article ,
"John" wrote:

Hi, I am looking to extract data from a report, what I need to do is view all
the instances where a certain part number appears, but I only want to view
those part numbers that match two criteria, example is below, say Sheet 1

A B C D E
1 Pen John Paid All Full
2 Pencil Ben NP None 0
3 Pen Peter Paid All Full
4 Pen Paul Paid Partial Half

From the above table I would want to extract the orders for Pens, but only
show the ones that are Paid ( col C ) and Full ( col E ). I want to see them
in this format in Sheet 2
A B C D E
1 Pen John Paid All Full
2 Pen Peter Paid All Full

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
how do I use vlookup for multiple occurrences of the same value bj Excel Worksheet Functions 0 April 27th 05 10:43 PM
Vlookup with multiple conditions cambrus Excel Worksheet Functions 1 March 11th 05 05:21 PM
SUM based on multiple conditions - SORRY, URGENT!!! marika1981 Excel Worksheet Functions 4 February 18th 05 11:13 AM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM
Can VLOOKUP return multiple answers based on several identical lo. jddtct Excel Worksheet Functions 3 January 11th 05 07:03 AM


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