Select data based on cell value

rovert

New Member
Joined
Aug 4, 2009
Messages
22
Hi All,

I have an excel workbook with 2 sheets named "Info" and the other "Newcastle".

Info sheet consists of 100's of rows of data, see below:

PartNumberQTAB3_FreeB3_LocnBranch
BC2020200Birmingham_Branch
BC2051R143201C2,53ANewcastle_Branch
BC2056100Birmingham_Branch
BC2056R100Birmingham_Branch
BC20631017DBuilds
BC2063R1017DBirmingham_Branch
BC2065128201A2Newcastle_Branch
BC2065R14613M5Newcastle_Branch

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

The Newcastle sheet consists of just headings, see below:

PARTORDER QTYSTKLOCN

<tbody>
</tbody>


What i need to be able to do is list all data in the Newcastle sheet where branch = Newcastle_Branch in the Info sheet..

Thank you in advance

Rovert:rolleyes:
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
This assumes the 4 columns on the Newcastle sheet are the first four columns on the Info sheet - unsure as they have different names and you havent specified what's what.

Try

in Newcastke!A2
=IFERROR(INDEX(Info!$A$2:$E$100000,AGGREGATE(15,6,ROW(Info!$E$2:$E$100000)/((Info!$E$2:$E$100000="Newcastle_Branch")),ROWS(A$2:A2))-(2-1),COLUMN()),"")
copy across and down for as many rows as you have on the Info sheet
 
Upvote 0
This assumes the 4 columns on the Newcastle sheet are the first four columns on the Info sheet - unsure as they have different names and you havent specified what's what.

Try

in Newcastke!A2
=IFERROR(INDEX(Info!$A$2:$E$100000,AGGREGATE(15,6,ROW(Info!$E$2:$E$100000)/((Info!$E$2:$E$100000="Newcastle_Branch")),ROWS(A$2:A2))-(2-1),COLUMN()),"")
copy across and down for as many rows as you have on the Info sheet

Hi Special-K99

This is how both sheets will look like after.

Info sheet
ShaftecNumberQTAB3_FreeB3_LocnBranch
BC2020200Birmingham_Branch
BC2051R143201C2,53ANewcastle_Branch
BC2056100Birmingham_Branch
BC2056R100Birmingham_Branch
BC20631017DBuilds
BC2063R1017DBirmingham_Branch
BC2065128201A2Newcastle_Branch
BC2065R14613M5Newcastle_Branch
BC209072500Newcastle_Branch
BC2093R1480201C1Newcastle_Branch
Newcastle sheet
PARTORDER QTYSTKLOCNPICKED
BC2051R143201C2,53A
BC2065128201A2
BC2065R14613M5
BC209072500
BC2093R1480201C1

<colgroup><col span="4"><col></colgroup><tbody>
</tbody>

Thank you in advance..

Rovert
 
Upvote 0

Forum statistics

Threads
1,203,462
Messages
6,055,563
Members
444,799
Latest member
CraigCrowhurst

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