Formula to extract data from list

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 extract data from a list dependent on what is in columns D

ie the list on sheet 1 will be

A1 : Parts
B1 : Description
C1 : Cost
D1 : Status

On sheet 2 I need

A1 : Parts only with "Ordered","Partially Received" or "Pending" status
B1 : Description with "Ordered","Partially Received" or "Pending" status
C1 : Cost with "Ordered","Partially Received" or "Pending" status
D1 : Status with "Ordered","Partially Received" or "Pending" status

Rick kindly gave me a coded version but i would prefer a formula if at all possible

Many thanks
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
partsdescrcoststatus
part1descr1100ordered2On sheet 2 I need
part2descr2105par rec3
part3descr3110pending4A1 : Parts only with "Ordered","Partially Received" or "Pending" status
part4descr4115not orderedB1 : Description with "Ordered","Partially Received" or "Pending" status
part5descr5120par rec6C1 : Cost with "Ordered","Partially Received" or "Pending" status
part6descr6125not ordered
part7descr7130ordered8
part8descr8135not ordered
part9descr9140pending10
1part1descr1100
2part2descr2105
3part3descr3110
4part5descr5120
5part7descr7130
6part9descr9140
7#NUM!#NUM!#NUM!
8#NUM!#NUM!#NUM!
9#NUM!#NUM!#NUM!
10#NUM!#NUM!#NUM!
is this what you mean ?

<colgroup><col span="3"><col><col span="11"></colgroup><tbody>
</tbody>
 
Upvote 0
Hi oldbrewer,

Yes please, without the #NUM if possible but exactly that

Many thanks
 
Upvote 0
partsdescrcoststatus
part1descr1100ordered2On sheet 2 I need
part2descr2105par rec3
part3descr3110pending4A1 : Parts only with "Ordered","Partially Received" or "Pending" status
part4descr4115not orderedB1 : Description with "Ordered","Partially Received" or "Pending" status
part5descr5120par rec6C1 : Cost with "Ordered","Partially Received" or "Pending" status
part6descr6125not ordered
part7descr7130ordered8
part8descr8135not ordered
part9descr9140pending10
1part1descr1100
2part2descr2105
3part3descr3110
4part5descr5120
5part7descr7130
6part9descr9140
7
8
9
10
formuls giving
part1
=IF(ISERROR(MATCH(SMALL($E$2:$E$10,$E15),$E$2:$E$10,0)),"",OFFSET($E$1,MATCH(SMALL($E$2:$E$10,$E15),$E$2:$E$10,0),-4))
descr1
=IF(ISERROR(MATCH(SMALL($E$2:$E$10,$E15),$E$2:$E$10,0)),"",OFFSET($E$1,MATCH(SMALL($E$2:$E$10,$E15),$E$2:$E$10,0),-3))
100
=IF(ISERROR(MATCH(SMALL($E$2:$E$10,$E15),$E$2:$E$10,0)),"",OFFSET($E$1,MATCH(SMALL($E$2:$E$10,$E15),$E$2:$E$10,0),-2))

<colgroup><col span="3"><col><col span="14"></colgroup><tbody>
</tbody>
 
Upvote 0
partsdescrcoststatus
part1descr1100ordered2On sheet 2 I need
part2descr2105par rec3
part3descr3110pending4A1 : Parts only with "Ordered","Partially Received" or "Pending" status
part4descr4115not orderedB1 : Description with "Ordered","Partially Received" or "Pending" status
part5descr5120par rec6C1 : Cost with "Ordered","Partially Received" or "Pending" status
part1descr1333ordered7
part2descr2600par rec8
part3descr3110pending9
part1descr9555not ordered
1part1descr1433
2part2descr2705
3part3descr3220
4part5descr5120
5part1descr1433
6part2descr2705
7part3descr3220
8
9
10
formulas giving
part1
=IF(ISERROR(MATCH(SMALL($E$2:$E$10,$E15),$E$2:$E$10,0)),"",OFFSET($E$1,MATCH(SMALL($E$2:$E$10,$E15),$E$2:$E$10,0),-4))
descr1
=IF(ISERROR(MATCH(SMALL($E$2:$E$10,$E15),$E$2:$E$10,0)),"",OFFSET($E$1,MATCH(SMALL($E$2:$E$10,$E15),$E$2:$E$10,0),-3))
433
=IF(F15="","",SUMPRODUCT(($A$2:$A$10=F15)*($C$2:$C$10))-SUMPRODUCT(($A$2:$A$10=F15)*($D$2:$D$10="not ordered")*($C$2:$C$10)))
this mod allows for a part number to occur more than once

<colgroup><col span="3"><col><col span="14"></colgroup><tbody>
</tbody>
 
Upvote 0
partsdescrcoststatushelper
part1descr1100ordered1part11descr1
part2descr2105par rec2part22descr2< < < mytable
part3descr3110pending3part33descr3
part4descr4115not orderedpart44descr4
part5descr5120par rec5part55descr5
part1descr1333ordered1
part2descr2600par rec2
part3descr3110pending3
part1descr1555not ordered
col G
row 15part1433descr1
part2705descr2
part3220descr3
part40descr4
part5120descr5
433
=SUMPRODUCT(($E$2:$E$10=RIGHT($G15,1)*1)*($C$2:$C$10))
1 under helper header
=IF(D2="not ordered","",VLOOKUP(A2,mytable,2))
descr1 to right of 433
=VLOOKUP(G15,mytable,3)

<colgroup><col span="3"><col><col span="13"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,339
Messages
6,124,373
Members
449,155
Latest member
ravioli44

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