Sorting/Filtering Data in excel onto a summary tab

HolyLemon

New Member
Joined
May 13, 2010
Messages
46
I have an excel 2007 spreadsheet at my work, its about 30 colums across and contains a couple of thousand clients, one client per row.

I'm pretty happy with it at the moment Ive done some (what I would consider) nifty stuff when it comes to summarising the data on there, stuff per month, that kind of thing.

What I need to do is create a new worksheet, on which is a little box where you can enter the members number and either hit enter or a button or something and below the number you have entered and all of the information that is on that line will show up, preferably in an order that I choose. a "data extract".

I am a VBA/macro novice, I know how to open VBA, that is it. I used it alot in school but cant remember it at all.

Any help would be so amazingly appreciated.

NB, Some of the clients have Scheme codes to say if they are in a different country whereas UK clients dont so it would need to take that into account aswell.

If you could help me I would be so grateful

Thanks again.

Harry
 
Last edited:
HolyLemon,


Sample worksheet with nothing in cell B4:


Excel Workbook
ABCDEFG
1Member search
2
3Scheme Code 
4Member Number
5
6
7Name MGA (Assessment)Info
8Current MG Category Name of Assessor 
9Date of Referral Date Assessment Completed 
10Referral Route Assessment Score 
11Agreed PRMP? Outcome of MGA 
12Retired/Deferred? Condition1?
13For Assessment? Condition2?
14For reassessment? Condition3?
15Condition4?
16
17Date MG01 Sent? 
18Type of letter sent? 
19Date letter sent? 
20
Member Search
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B91. / Formula is =MOD(ROW(),2)=0Abc
G91. / Formula is =MOD(ROW(),2)=0Abc
B171. / Formula is =MOD(ROW(),2)=0Abc
B191. / Formula is =MOD(ROW(),2)=0Abc





I have changed the names on worksheet "Proposed MGP3" for the following two examples:


Excel Workbook
ABCDEFG
1Member search
2
3Scheme CodeMAM
4Member Number212893
5
6
7Namehiker95MGA (Assessment)Info
8Current MG CategoryStandard RiskName of AssessorPWM
9Date of Referral2/1/2001Date Assessment Completed8/24/2007
10Referral RouteMCDAssessment Score100
11Agreed PRMP?YesOutcome of MGAActive
12Retired/Deferred?YCondition1?
13For Assessment?YCondition2?
14For reassessment?NCondition3?
15Condition4?
16
17Date MG01 Sent?2/1/2001
18Type of letter sent?No letter
19Date letter sent?5/21/2010
20
Member Search
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B91. / Formula is =MOD(ROW(),2)=0Abc
G91. / Formula is =MOD(ROW(),2)=0Abc
B171. / Formula is =MOD(ROW(),2)=0Abc
B191. / Formula is =MOD(ROW(),2)=0Abc





Excel Workbook
ABCDEFG
1Member search
2
3Scheme Code 
4Member Number118118
5
6
7NameHolyLemonMGA (Assessment)Info
8Current MG Category Name of Assessor 
9Date of Referral1/19/2010Date Assessment Completed8/30/2007
10Referral RouteMCDAssessment Score 
11Agreed PRMP? Outcome of MGAActive
12Retired/Deferred? Condition1?
13For Assessment?YCondition2?
14For reassessment?YCondition3?
15Condition4?
16
17Date MG01 Sent?1/19/2010
18Type of letter sent? 
19Date letter sent?5/27/2010
20
Member Search
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B91. / Formula is =MOD(ROW(),2)=0Abc
G91. / Formula is =MOD(ROW(),2)=0Abc
B171. / Formula is =MOD(ROW(),2)=0Abc
B191. / Formula is =MOD(ROW(),2)=0Abc





There are question marks for the four "Conditions". I did not know what columns in worksheet "Proposed MGP3" to reference.
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Wow, you have done an amazing amount of work, I need to look into that lol, PS, the Conditions 1,2,3,4

They refer to the outcome 1,2,3,4 columns, sorry, my mistake there.
 
Upvote 0
Thank you so so much, ive put it in and thats amazing. I have one question about the formula though, I understand the string of arguements you used in it. I may seem ungrateful but im really not, is there a way to make it check for a scheme code aswell as the membership number, the problem being this:

Sometimes there is a member number lets say 50 if there is no scheme code this is for the uk, but round the world, in another country, the membership numbers start from scratch again, so on the spreadsheet, there could be 2 50's, one of them would have a scheme code for the uk, one could have one for america, one for australia, one for hong kong there could be 4 numbers, the only difference being the scheme code. Is it possible to make that another point of entry so it can filter between the numbers with/without the various scheme codes?
 
Upvote 0
Sorry about multiple posts. Ive been looking at this and a couple of other spreadsheets today and ive managed to edit it a little with some of your formulas.

The new document can be found here ---> http://www.box.net/shared/p3enk90t00

Thanks for your help, and if anyone can think of a way to sort out the scheme code problem I would be really grateful.
 
Upvote 0
HolyLemon,


Sample worksheet with nothing in cell B4:


Excel Workbook
ABCDEFG
1Member search
2
3Scheme Code 
4Member Number
5
6
7Name MGA (Assessment)Info?
8Current MG Category Name of Assessor 
9Date of Referral Date Assessment Completed 
10Referral Route Assessment Score 
11Agreed PRMP? Outcome of MGA 
12Retired/Deferred? Condition1 
13For Assessment? Condition2 
14For reassessment? Condition3 
15Condition4 
16
17Date MG01 Sent? 
18Type of letter sent? 
19Date letter sent? 
20
Member Search
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B91. / Formula is =MOD(ROW(),2)=0Abc
G91. / Formula is =MOD(ROW(),2)=0Abc
B171. / Formula is =MOD(ROW(),2)=0Abc
B191. / Formula is =MOD(ROW(),2)=0Abc





For several "Member Number", including on worksheet "Proposed MGP3" the pulldowns for "Scheme Code":


Excel Workbook
ABCDEFG
1Member search
2
3Scheme CodeMAM
4Member Number212893
5
6
7Namehiker95MGA (Assessment)Info?
8Current MG CategoryStandard RiskName of AssessorPWM
9Date of Referral2/1/2001Date Assessment Completed8/24/2007
10Referral RouteMCDAssessment Score100
11Agreed PRMP?YesOutcome of MGAActive
12Retired/Deferred?YCondition1Member Risk Assessment
13For Assessment?YCondition2N/A
14For reassessment?NCondition3Inactive
15Condition4Medical Records Audit
16
17Date MG01 Sent?2/1/2001
18Type of letter sent?No letter
19Date letter sent?5/21/2010
20
Member Search
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B91. / Formula is =MOD(ROW(),2)=0Abc
G91. / Formula is =MOD(ROW(),2)=0Abc
B171. / Formula is =MOD(ROW(),2)=0Abc
B191. / Formula is =MOD(ROW(),2)=0Abc





Excel Workbook
ABCDEFG
1Member search
2
3Scheme CodeCSA
4Member Number118118
5
6
7NameHolyLemonMGA (Assessment)Info?
8Current MG CategoryInactiveName of AssessorIS
9Date of Referral1/19/2010Date Assessment Completed8/30/2007
10Referral RouteMCDAssessment Score100
11Agreed PRMP?NoOutcome of MGAActive
12Retired/Deferred?YCondition1Condition
13For Assessment?YCondition2Condition
14For reassessment?YCondition3MTA
15Condition4CCP
16
17Date MG01 Sent?1/19/2010
18Type of letter sent?Other
19Date letter sent?5/27/2010
20
Member Search
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B91. / Formula is =MOD(ROW(),2)=0Abc
G91. / Formula is =MOD(ROW(),2)=0Abc
B171. / Formula is =MOD(ROW(),2)=0Abc
B191. / Formula is =MOD(ROW(),2)=0Abc





For data to be filled in on worksheet "Member Search", worksheet "Proposed MGP3" must have data in the respective field/column (manually entered like "Assessment Score", or choices for the data validation fields).



is there a way to make it check for a scheme code aswell

Done.


What column on worksheet "Proposed MGP3" does "MGA (Assessment)Info" refer to?
 
Upvote 0
Thanks very much, what you've done is fantastic, I think I must have explained myself poorly though. I need to be able to search using both the Scheme Code and the Member Number, problem is they are in different boxes on both forms. I dont know if an And/If function would do it, but I have no idea how to properly edit your work.

As always, your help would be very much appreciated.
 
Upvote 0
HolyLemon,

Your cell A23 displays a 0 if cell B4 is blank.

You may want to change the worksheet "Member Search" formula in the merged cell A23 to:

=IF($B$4="","",IF(INDEX('Proposed MGP3'!$AD:$AD,MATCH($B$4,'Proposed MGP3'!$F:$F,0))=0,"",INDEX('Proposed MGP3'!$AD:$AD,MATCH($B$4,'Proposed MGP3'!$F:$F,0))))
 
Upvote 0
HolyLemon,

I need to be able to search using both the Scheme Code and the Member Number, problem is they are in different boxes on both forms.


Please explain in more detail.
 
Upvote 0
This spreadsheet is a list of worldwide members, each member has a member number (column F). If a member is in a country other that England or the United Kingdom, they have a Scheme Code (column E) it is possible for there to be two or more members with the same number, but one of them wont have a scheme code and the others will.

On the spreadsheet I uploaded, search for 123456

It will come up with Rachmaninov with a scheme code of SA.

In the Proposed MGP3 tab there are infact two members with the membership number 123456, the other is Mozart who doesnt have a scheme code because "he" would be based in the UK.

If it could be possible to search the "Proposed MGP3" by both columns E and F it would eliminate the problem.

Your help would be very much appreciated (again) lol

thanks
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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