Copy rows of data from master tab to subsequent tabs based on criteria in one master tab column

cjh75

New Member
Joined
Jan 11, 2017
Messages
9
Hi,

Would anyone be able to help me set up a second and third tab for the master spreadsheet listed below?

I want the second tab to only list the parishes in Store Category 'A' and the third tab to only list parishes in Store Category 'B'.

I tried using a formula like the one listed below, but it's kind of a manual process.
This formula is also flawed because I want excel to skip all of the rows related to Holly and Greg's Donut Shop (Category A) on the third tab (listing Category B stores).
I don't want excel to return blank rows on the third tab (I just want it not to show any Category A fields at all).
=IF(MASTER!D:D="A",MASTER!G3," ")

Because of the format of the master spreadsheet (some rows have been merged and I have to keep this format), I created columns B through D to get a unique action item returned for each field on the second tab.

I'm using Excel 2007.
Does anyone have any suggestions on a better formula or a macro I could use to get the second and third tabs to appear correctly?

Thank You,
CJH
[TABLE="width: 877"]
<tbody>[TR]
[TD="class: xl104, width: 134, bgcolor: #BFBFBF, colspan: 3"]STORE ID NUMBER
[/TD]
[TD="class: xl115, width: 44, bgcolor: #D8D8D8"][/TD]
[TD="class: xl66, width: 236, bgcolor: #BFBFBF"]STORE NAME
[/TD]
[TD="class: xl67, width: 115, bgcolor: #BFBFBF"]STORE CATEGORY
[/TD]
[TD="class: xl68, width: 639, bgcolor: #BFBFBF, colspan: 5"]ORIGINAL ACTION ITEM LIST
[/TD]
[/TR]
[TR]
[TD="class: xl115, width: 44, bgcolor: #D8D8D8"][/TD]
[TD="class: xl72, width: 213, bgcolor: #BFBFBF"]ACTION ITEMS
[/TD]
[TD="class: xl72, width: 121, bgcolor: #BFBFBF"]DEPARTMENT
[/TD]
[TD="class: xl72, width: 117, bgcolor: #BFBFBF"]ASSIGNED TO
[/TD]
[TD="class: xl72, width: 81, bgcolor: #BFBFBF"]STATUS
[/TD]
[TD="class: xl73, width: 107, bgcolor: #BFBFBF"]DATE COMPLETED
[/TD]
[/TR]
[TR]
[TD="class: xl100, width: 51, bgcolor: transparent, align: right"]123
[/TD]
[TD="class: xl116, width: 38, bgcolor: #D8D8D8"]1
[/TD]
[TD="class: xl116, width: 45, bgcolor: #D8D8D8"]1231
[/TD]
[TD="class: xl117, width: 44, bgcolor: #D8D8D8"]A
[/TD]
[TD="class: xl103, width: 236, bgcolor: transparent"]Holly and Greg's Donut Shop
[/TD]
[TD="class: xl75, width: 115, bgcolor: transparent"]A
[/TD]
[TD="class: xl88, width: 213, bgcolor: transparent"]1) POWDER DONUTS
[/TD]
[TD="class: xl89, width: 121, bgcolor: transparent"]RE
[/TD]
[TD="class: xl89, width: 117, bgcolor: transparent"][/TD]
[TD="class: xl89, width: 81, bgcolor: transparent"][/TD]
[TD="class: xl90, width: 107, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl100, width: 51, bgcolor: transparent, align: right"]123
[/TD]
[TD="class: xl116, width: 38, bgcolor: #D8D8D8"]3
[/TD]
[TD="class: xl116, width: 45, bgcolor: #D8D8D8"]1233
[/TD]
[TD="class: xl117, width: 44, bgcolor: #D8D8D8"]A
[/TD]
[TD="class: xl76, width: 213, bgcolor: transparent"]2) SUGAR DONUTS
[/TD]
[TD="class: xl77, width: 121, bgcolor: transparent"]DS
[/TD]
[TD="class: xl77, width: 117, bgcolor: transparent"][/TD]
[TD="class: xl77, width: 81, bgcolor: transparent"]COMPLETED
[/TD]
[TD="class: xl78, width: 107, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl100, width: 51, bgcolor: transparent, align: right"]123
[/TD]
[TD="class: xl116, width: 38, bgcolor: #D8D8D8"]4
[/TD]
[TD="class: xl116, width: 45, bgcolor: #D8D8D8"]1234
[/TD]
[TD="class: xl117, width: 44, bgcolor: #D8D8D8"]A
[/TD]
[TD="class: xl76, width: 213, bgcolor: transparent"]3) SPRINKLE DONUTS
[/TD]
[TD="class: xl77, width: 121, bgcolor: transparent"]DS
[/TD]
[TD="class: xl77, width: 117, bgcolor: transparent"]Holly
[/TD]
[TD="class: xl77, width: 81, bgcolor: transparent"]COMPLETED
[/TD]
[TD="class: xl79, width: 107, bgcolor: transparent"]11/29/2016
[/TD]
[/TR]
[TR]
[TD="class: xl100, width: 51, bgcolor: transparent, align: right"]123
[/TD]
[TD="class: xl116, width: 38, bgcolor: #D8D8D8"]5
[/TD]
[TD="class: xl116, width: 45, bgcolor: #D8D8D8"]1235
[/TD]
[TD="class: xl117, width: 44, bgcolor: #D8D8D8"]A
[/TD]
[TD="class: xl76, width: 213, bgcolor: transparent"]4) BAKE DONUTS
[/TD]
[TD="class: xl77, width: 121, bgcolor: transparent"]DS
[/TD]
[TD="class: xl77, width: 117, bgcolor: transparent"][/TD]
[TD="class: xl77, width: 81, bgcolor: transparent"]COMPLETED
[/TD]
[TD="class: xl78, width: 107, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl100, width: 51, bgcolor: transparent, align: right"]123
[/TD]
[TD="class: xl116, width: 38, bgcolor: #D8D8D8"]6
[/TD]
[TD="class: xl116, width: 45, bgcolor: #D8D8D8"]1236
[/TD]
[TD="class: xl117, width: 44, bgcolor: #D8D8D8"]A
[/TD]
[TD="class: xl76, width: 213, bgcolor: transparent"]5) SELL DONUTS
[/TD]
[TD="class: xl77, width: 121, bgcolor: transparent"]CS
[/TD]
[TD="class: xl77, width: 117, bgcolor: transparent"][/TD]
[TD="class: xl77, width: 81, bgcolor: transparent"][/TD]
[TD="class: xl78, width: 107, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl93, width: 51, bgcolor: #D8D8D8"][/TD]
[TD="class: xl93, width: 38, bgcolor: #D8D8D8"][/TD]
[TD="class: xl93, width: 45, bgcolor: #D8D8D8"][/TD]
[TD="class: xl98, width: 44, bgcolor: #D8D8D8"][/TD]
[TD="class: xl82, bgcolor: #D8D8D8"][/TD]
[TD="class: xl83, width: 115, bgcolor: #D8D8D8"][/TD]
[TD="class: xl84, bgcolor: #D8D8D8"][/TD]
[TD="class: xl85, bgcolor: #D8D8D8"][/TD]
[TD="class: xl86, bgcolor: #D8D8D8"][/TD]
[TD="class: xl85, bgcolor: #D8D8D8"][/TD]
[TD="class: xl87, bgcolor: #D8D8D8"][/TD]
[/TR]
[TR]
[TD="class: xl100, width: 51, bgcolor: transparent, align: right"]368
[/TD]
[TD="class: xl116, width: 38, bgcolor: #D8D8D8"]1
[/TD]
[TD="class: xl116, width: 45, bgcolor: #D8D8D8"]3681
[/TD]
[TD="class: xl117, width: 44, bgcolor: #D8D8D8"][/TD]
[TD="class: xl110, width: 236, bgcolor: transparent"]Annie and Fatty's Donut Shop
[/TD]
[TD="class: xl94, width: 115, bgcolor: transparent"]B
[/TD]
[TD="class: xl111, width: 213, bgcolor: transparent"]1) CLEAN COUNTER
[/TD]
[TD="class: xl102, width: 121, bgcolor: transparent"]CS
[/TD]
[TD="class: xl96, width: 117, bgcolor: transparent"][/TD]
[TD="class: xl96, width: 81, bgcolor: transparent"][/TD]
[TD="class: xl97, width: 107, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl101, width: 51, bgcolor: transparent, align: right"]368
[/TD]
[TD="class: xl118, width: 38, bgcolor: #D8D8D8"]2
[/TD]
[TD="class: xl116, width: 45, bgcolor: #D8D8D8"]3682
[/TD]
[TD="class: xl117, width: 44, bgcolor: #D8D8D8"][/TD]
[TD="class: xl112, width: 213, bgcolor: transparent"]2) CHANGE REGISTER
[/TD]
[TD="class: xl89, width: 121, bgcolor: transparent"]CS
[/TD]
[TD="class: xl113, width: 117, bgcolor: transparent"][/TD]
[TD="class: xl113, width: 81, bgcolor: transparent"][/TD]
[TD="class: xl114, width: 107, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl93, width: 51, bgcolor: #D8D8D8"][/TD]
[TD="class: xl93, width: 38, bgcolor: #D8D8D8"][/TD]
[TD="class: xl93, width: 45, bgcolor: #D8D8D8"][/TD]
[TD="class: xl98, width: 44, bgcolor: #D8D8D8"][/TD]
[TD="class: xl82, bgcolor: #D8D8D8"][/TD]
[TD="class: xl83, width: 115, bgcolor: #D8D8D8"][/TD]
[TD="class: xl95, bgcolor: #D8D8D8"][/TD]
[TD="class: xl85, bgcolor: #D8D8D8"][/TD]
[TD="class: xl86, bgcolor: #D8D8D8"][/TD]
[TD="class: xl85, bgcolor: #D8D8D8"][/TD]
[TD="class: xl87, bgcolor: #D8D8D8"][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Sorry the format of the spreadsheet got distorted in my original post.

the store name and store category columns contain merged rows.
Sugar donuts, sprinkle donuts, etc should be listed under powder donuts.
 
Upvote 0

Forum statistics

Threads
1,223,719
Messages
6,174,089
Members
452,542
Latest member
Bricklin

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