Extract columns and create separate sheet based on column criteria

fbacchus

Board Regular
Joined
Mar 14, 2002
Messages
56
Hi,
I have a spreadsheet with the following data:

Order Number In production Cutting Machinist Casualty Analyst Status Date
A100100 01/09/2015 03/09/2015 05/09/2015 John M Cutting 02/09/2015
A100100 01/09/2015 02/09/2015 Mary T Casualty 05/09/2015
A100200 01/09/2015 05/09/2015 Jack S Machinist 02/09/2015
A100200 01/09/2015 02/09/2015 05/09/2015 Mary T In Production 01/09/2015
A100200 01/09/2015 John M Query 09/09/2015
A100300 01/09/2015 02/09/2015 03/09/2015 Frank B In production 01/09/2015
A100300 01/09/2015 02/09/2015 02/09/2015 Jack S

I would like to create separate sheets for each individual based on their name (Analyst) and with some of the columns included in their sheet. So, my first result would be:

Order Number In production Cutting Analyst Status Date
A100100 01/09/2015 03/09/2015 John M Cutting 02/09/2015
A100200 01/09/2015 John M Query 09/09/2015

My Second sheet with be like this:

Order Number In production Cutting Analyst Status Date
A100100 01/09/2015 02/09/2015 Mary T Casualty 05/09/2015
A100200 01/09/2015 02/09/2015 Mary T In Production 01/09/2015
 
Hi Frank

I did a similar code in a Thread to this just now. With a small modification and applying directly to the Test data for you which I initially suggested in Post # 4, then I obtain the following:.

Using Excel 2007
Row\Col
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
1​
Order NumberIn ProductionCuttingproductionMachinistCasualtyAnalystStatusDate
2​
A10020001.09.201502.09.201505.09.2015Mary TIn Production01.09.2015Run on 15.03.2016 12:12 PM
Mary T


_... If you clear up your exact requirement then I expect it would with minor mods give exactly what you want.

Alan
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Alan:

Sorry for the long delay in responding but I was getting my belt under the tol (so to speak). I thing I've got it. I am posting 2 spreadsheets (input & expected output) below. Here is the sheet with the input data rows:


Excel 2010
ABCDEFGHI
1Order NumberIn ProductionCuttingProduction DateMachinistCasualtyAnalystStatusDate
2A1001001/9/20153/9/20155/9/20159/1/20161/6/2016John MCutting2/9/2015
3A1001001/10/20152/9/20155/10/20159/2/20162/9/2015Mary TCasualty5/9/2015
4A1002001/11/20155/9/20155/11/20155/9/20152/10/2015Jack SMachinist2/9/2015
5A1002001/13/20152/10/20155/13/20159/16/20162/12/2015John MQuery9/9/2015
6A1002001/12/20152/9/20155/12/20159/15/20162/11/2015Mary TIn Production1/9/2015
7A1003001/14/20152/9/20155/14/20159/17/20162/13/2015Frank BIn Production1/9/2015
8A1003001/15/20152/10/20155/15/20159/18/20162/14/2015Jack STesting1/10/2015
All_Risks


Desired Output rows: Select those rows where "Analyst" is "Mary T" or "Frank B" and "Status" is "In Production" Here expected output including a date stamp in " Last Updated". The code is the same you provided with specific columns being selected:

￿￿

Look like sometime went haywire with the HTML Generator (thus the two squares) but the results would only be the 2 rows where "Analyst" is "Mary T" or "Frank B" and "Status" is "In Production".

Thanks

frank
 
Upvote 0
Hi Frank

Thanks for trying the tools. It makes it a lot clearer. :)
.........
Look like sometime went haywire with the HTML Generator (thus the two squares) ...........

I think I can wrap this one up very quickly for you. But as you saw the “After” did not come out !! So I am still having to “Guess” the columns and exact output you want.
Rather than me posting until I get an output that suits, please try again. But as i suggested, if you are new to the tools, then please test them out first in the Test Area .
Test Here
– You can start a post there ( Title it just “Test” or “Test Table”. ) You can reply as much as you like then to your own Thread until you get it right. ( Those Posts in the Test area are mostly ignored and deleted after about a week),. So you can practice as much as you want. !!
I do not think there is a problem with the HTML Maker. You could also try Rory’s Tools, - the ADD-IN is installed similarly to the one you have successfully got up. It has both the HTML Generator you used and a BB Code generator. Or failing that ( and while you are practicing ) try to the table option. ....for all that jem , see start of my Post #10 again.

And also a question. If no analyst is “In Production“, then currently the code will give you an empty sheet with just Headings. Do you want that? Or should no sheet be made in that case?

Alan
 
Upvote 0
P.s. BTW. Just a bit curious / Puzzled ??
...you said “...Look like sometime went haywire with the HTML Generator (thus the two squares)…“
_ I am curious about that as I do not see the usual bit at the bottom of the Post saying You edited to add that comment….?? So how did you know, before posting, that it did not work ?
 
Upvote 0

Forum statistics

Threads
1,215,779
Messages
6,126,854
Members
449,345
Latest member
CharlieDP

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