Selecting specific lines from a list depending on criteria

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am looking for a formula to only copy "Ordered" status parts from a list

So on sheet 1 i have

Col A
Quantity
Col B
Part NUmber
Col C
Description
Col D
Status

On SHeet 2 i would like all "Ordered" lines to show

What sort of formula could i use in order to achieve my "Ordered" list on sheet 2

Many Thanks
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Upvote 0

Excel 2010
ABCDE
1QuantityPart NUmberDescriptionStatus
21addordered
32ase
41swwordered
53dww
6
7
8
9
Sheet1


Excel 2010
ABCDEFGH
1QuantityPart NUmberDescriptionStatusordered
21addordered
31swwordered
4
5
6
Sheet2
Cell Formulas
RangeFormula
A2{=IFERROR(INDEX(Sheet1!A$2:A$5,SMALL(IF(Sheet1!$D$2:$D$5=$H$1,ROW(Sheet1!$D$2:$D$5)-ROW(Sheet1!$D$2)+1),ROWS(Sheet1!$D$2:D2))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Hi Robert Mika,

That is just fantastic work!

I have modified to suit my ranges and criteria and works perfect.

I have one more question though. Can this be set to display not only "Ordered" but "Partially Shipped" aswell

Many thanks for you time
 
Upvote 0
Hi Robert Mika,

That is just fantastic work!

I have modified to suit my ranges and criteria and works perfect.

I have one more question though. Can this be set to display not only "Ordered" but "Partially Shipped" aswell

Many thanks for you time

There few ways to achive that
For two categories only :

Excel 2010
ABCDEFGH
1QuantityPart NUmberDescriptionStatusordered
21addorderedPartially Shipped
31swwordered
43dwwPartially Shipped
5
6
7
8
9
Sheet2
Cell Formulas
RangeFormula
A2{=IFERROR(INDEX(Sheet1!A$2:A$5,SMALL(IF((Sheet1!$D$2:$D$5=$H$1)+(Sheet1!$D$2:$D$5=$H$2),ROW(Sheet1!$D$2:$D$5)-ROW(Sheet1!$D$2)+1),ROWS(Sheet1!$D$2:D2))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Simply perfect, many thanks for your time and help!
 
Upvote 0
Hi Robert,

I have encountered a slight problem with the "Partially Shipped" Lines

Sheet 2 has a simple formula that generates the "Ordered" or "Partially Shipped" lines

The formulas you have created show the originally ordered on the backorders under partially shipped and not the "Outstanding Balance"

Sheet 2 houses the simple formulas in Column R which generate the "Ordered" and "Partially Shipped" with column Y showing what has been recieved

The formula is

=IF(B16="","",IF(B16=Y16,"Shipped",IF(OR(Y16="",Y16=0),"Ordered",IF(Y16<B16,"Partially Shipped"))))

Would there be a way to show the outstanding balance for "Partially Shipped" lines instead of the ordered quantity

Many Thanks
 
Upvote 0
Hi Robert,

I have encountered a slight problem with the "Partially Shipped" Lines

Sheet 2 has a simple formula that generates the "Ordered" or "Partially Shipped" lines

The formulas you have created show the originally ordered on the backorders under partially shipped and not the "Outstanding Balance"

Sheet 2 houses the simple formulas in Column R which generate the "Ordered" and "Partially Shipped" with column Y showing what has been recieved

The formula is

=IF(B16="","",IF(B16=Y16,"Shipped",IF(OR(Y16="",Y16=0),"Ordered",IF(Y16<b16,"partially shipped"))))

Would there be a way to show the outstanding balance for "Partially Shipped" lines instead of the ordered quantity

Many Thanks


</b16,"partially>Could you post your data and rest of the IF formula?
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,700
Members
448,979
Latest member
DET4492

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top