Auto Filter And Show Only Relevant Data
Jun 16, 2014
My task is to write a macro on auto filtering. I got 2 columns of relevant data. Cells in column A show the team name and corresponding cell in column C shows the person who belongs to the team.
For clear illustration, this is an example of the list I got.
A1: A, C1: XX
A2: A, C2: YY
A3: A, C3: ZZ
A4: B, C4: XX
A5: B, C5, 00
A6: B, C6: 11
What I need to do is to write a macro that auto filters and shows only relevant data.
Assume XX used to be in team A but now moved to team B. When i filter for team A, i need all members who are/were in team A.
For instance, when i want team A, it has to include A1-A4 and when i want team B, it has to include A1,A4-A6.
View 4 Replies
ADVERTISEMENT
Jan 12, 2013
A stab in the dark here, but is there any way to be able to 'jump' to a particular position within a filtered list. My list has around 20,000 items in it and I'm having to go through each one systematically to make edits on the relevant line and it is so laborious trying to find the correct place in the list every time.
Is there anyway to be able to may be key in the first letter or two letters to avoid all the continuous scrolling to find the relevant entry?
View 4 Replies
View Related
Jul 31, 2012
How can I auto populate certain relevant cells that has been chosen by input in a different worksheet?
Example:
Input cells in Worksheet 1:A1= 100 (Data to Show in Periods chosen below)
A2= 3 (begin period)
A3= 5 (end period)
Result on worksheet 2: A1(PERIOD 1) = 0
A2(PERIOD 2) = 0
A3(PERIOD 3) = 100
A4(PERIOD 4) = 100
A5(PERIOD 5) = 100
A6(PERIOD 6) = 0
A7(PERIOD 7) = 0
View 4 Replies
View Related
Feb 3, 2014
So I have a pivot table of about 2000 rows with data on employees.
In the table, there is a field associating each employee with a location (midwest, southeast,where ever) and I have a report filter on it that lets me view only people from a given region.
It was working fine, but I'm doing a lot of VBA macro related to the pivot, and I think I somehow changed a setting somewhere in the process and don't know how to reverse it.
When I apply the filter now, it only shows data for people in the region i choose, except it still shows all the other lines that should be hidden, just with no values. Here is a crude visual
Name region sales
Jim_____MW__10
Henry___MW__34
Jerry____SW__20
Aaron___SW__44
Scot____MW__22
AFTER FILTER for "MW"
Jim_____MW__10
Henry___MW__34
Jerry________0
Aaron_______0
Scot____MW__22
(jerry and aaron should not be visible at all)
View 2 Replies
View Related
Dec 4, 2013
I have scoured the net for the following and have not been able to find a solution. I have found variations but not something specific for the use needed here.
I have attached a file with sample data which has the following format.
Column 1 = vehicle model (in this example golf, jetta, but there will be over 100 choices)
Column 2 = vehicle package option for specified vehicle model (automatic transmission, manual transmission, automatic transmission with air conditioning, etc...)
Column 3 = vehicle colour available for vehicle package option
Please note that Column 2 values for 'golf' are different than values available for 'jetta' (in the sample data I have blocked out common values with the same colour for quick and easy identification)
Also please note that Column 3 values of colour options vary for each 'vehicle package option'.
The behaviour that would be ideal is to have 3 drop down menus. The first drop down menu will allow selection from column 1 and will show each model only one time and repeated values will not be shown. The second drop down menu will only show the options available based on the selection in the first drop down menu. Likewise, the third drop down menu will show the colour options available based on the selection in the second drop down menu.
Since my data will involve hundreds of unique values in column 1 with plenty more added over time, it seems that the format of the data and the way it is laid out in the attached sample is the easiest way to organize it. It is perhaps also the easiest way to include new data without a lot of reprogramming.
Sample Data - Dependent Drop Down Cells Question.xlsx
View 8 Replies
View Related
Feb 25, 2014
I am trying to write a macro that will:
A: copy data in cell A1 from Sheet1
B: Add an auto filter in sheet2 column A = to what was copied in Cell A1 from sheet 1.
View 1 Replies
View Related
Nov 16, 2008
I have column A containing either "Correct" or "Incorrect".
I have another column D which also contain same values "Correct" or "Incorrect".
I applied auto filer on Column D , criteria is "Incorrect" and on Column A criteria is "Correct".
All the above is done using VBA.
Now, I want a code to convert the value in column A from "Correct" to "Incorrect", only for the rows retured by auto filter.
View 6 Replies
View Related
Nov 27, 2008
I have the following code which I cant figure out why isn't working for the first part. I am copying data from two sheets where the autofilter looks at blanks. The copy function on the first sheet is selecting all of the data and not the filtered data. On the second one it works fine.
View 14 Replies
View Related
Nov 14, 2006
I am having trouble with using the auto filter, and I suspect it is due to my data format.
I am importing data from an outside source (I have no control on how the data is output). The data in the column I am concerned with contains various formats, such as numbers, letters, and a combo of the two. e.g.:
12345
sample
sam123ple
I have been taking the entire column and formatting it as text to make all of the data consistent. The problem I see comes when I go to use the autofilter, to say custom>begins with "123". The value 12345 does not show up in my filter. However, if I double click the cell 12345, then hit enter, and re-run my autofilter, it shows up.
Does anyone know the reason why this double-click-enter method forces Excel to recognize the value? And is there a way to mass-produce this command for the entire data set? Right now, I'm up to 5000 lines of data, so to do this on each would take a while.
View 9 Replies
View Related
Aug 27, 2008
I have some auto Filters I need to apply to my data,
I have a file with supplier and description columns and i need to apply around 15-20 autofilters and move the corresponding data/ results to a different worksheet (which has the same headers but already has data - so want to move it to the bottom of the list) in the same workbook.
I was wondering If you would guide me on the If statements so that I could create a macro that works?
View 9 Replies
View Related
May 9, 2014
I am filtering data using listbox (userform).
I want listbox show only names(without duplicates).
View 4 Replies
View Related
Apr 10, 2008
Im looking for a way to select between multiple choices linked to one criteria. Eg criteria beeing Chain x Article 1, which should give me the option to show and select from multiple unique values linked to that criteria (in attached example values 1 or 30 in column AQ marked in yellow). If possible solution should be formulas/functions.
View 2 Replies
View Related
Jan 30, 2009
The problem lies in cell H11, which gives me a value error with the following formula:=SUMPRODUCT((A39:A1020=B4)*(B39:B1020=B5)*(C39:C1020=B6)*(D39:D1020=B7)*(E39:E1020=B8)*(V39: V1020))
using auto filter i made your there was data in that field see line V103.
View 2 Replies
View Related
Jan 2, 2010
macro which autofilter data & copy to another sheet.
below mention are the steps, i dont knw how to write vb code to autofilter month. Please find sample workbook on
below mention link
[url]
1.Auto Filter Date 2(Column C)
2.Select First Month (eg.May 09)
3.Auto Filter Date 1 (Column B)
4.from, the month, which filter in Date 2 (from May 09 to Dec 09..last month of year)
5.Auto Filter Column A
6.Copy each unique value on output sheet
View 9 Replies
View Related
Apr 26, 2008
Setting up all 50 states was not so bad, and I tried a Pivot Table but I have very little experience with them and could not figure out how to show only the nonzero states. So, I looked up how to filter the pivot table and discovered I could just filter the state data without the pivot table.
So, I put all 50 state abbreviations in one column. In the next column I put countif formulas to count how many customers came from each state. (In the meantime, I learned how to use an indirect formula to pull the state ID from the first column and copy it down and have the formula advance for each row... cool!) Then, I filtered the columns on the count twice. First, in descending order; then, without the zeros.
However, the weak side of the filter is that it does not automatically update when a new state is entered. I have to go and manually filter again. So, is there a way to get the filter to update dynamically? I know that a pivot table is dynamic but I have a lot to learn and I can probably browse around and figure out how to show only the nonzero states. Once I learned that, would it dynamically update when a new state is added?
View 2 Replies
View Related
Nov 19, 2009
I have an excel sheet with over 4,000 rows of records regarding our 80+ employees clocking in. There are three columns:
A: Date (MM/DD/YYYY)
B: Time (HH:MM:SS)
C: Employee Name
Our employees are expected to be at work (and clock-in) at or before 8am.
At first, I just filtered the data to display only rows that have a time value of between 8am and 9am (the hour when most people are tardy). However, I now realize this is not a very accurate way of reporting tardiness.
Our forklift driver, for example, almost always arrives at 7:45am, but then works around the entrance and has to scan his card (clock-in) several times throughout the morning to get back into the building. So if he's moving something outside and comes BACK inside at 8:30am, my current "filter" inaccurately reports him as tardy for that day.
Is there some way to filter this data to first reduce it down to their earliest clock-in for the day, THEN isolate only the 8am - 9am data (if we did that, the forklift driver problem would be solved because his only time for that day would be 7:45am - his TRUE clock-in). The forklift driver is just one example. Many other employees occasionally go in/out of that door and end up clocking in multiple times, so are getting wrongly reported as tardy.
View 9 Replies
View Related
Apr 10, 2008
My goal is for any of my team members to be able to use a macro to delete all of the unwanted text from a fairly large worksheet and only show their specific information. I created it for myself and posted a slimmed down version of it below. Instead of the macro deleting any rows that do not have BRANDON SCOTT in column D, I want a pop up box to enter your name, and then any rows that do not have your name in column D will be deleted. I’m sure it is something simple, but I have not been able to find another forum with this information.
Sub MyTeam2()
With Columns("D")
. AutoFilter field:=1, Criteria1:="<>BRANDON SCOTT*"
.Resize(Rows.Count - 1).Offset(1).EntireRow.Delete
.AutoFilter
End With
End Sub
View 3 Replies
View Related
Jun 16, 2014
What I would like to do is create a userform where I can input a case reference number and click a command button which searches the CSV/TXT file for any notes for the specific reference number and then returns all notes (seperated by a blank line) in the textbox within the userform in the posted/saved format.
I can find lots about importing to excel but nothing about importing data to userforms.
CSV file added for format. The userform contains two text boxes, one blank for import and one for completing the case reference number (format on CSV file. Line item 1).
i.e. if I searched by SL-001-0155648 I would get the below (It's not code but I thought the best way of showing what I mean):
[Code] .....
Attached File : Notes Test CSV.txt‎
View 15 Replies
View Related
Jan 27, 2014
I've taken part of our instrument service data and eventually want to trend the performance but have decided it will only useful to use data where I have 4 or more data points. However with so much data I want to automate the process rather than scrolling through the column. I assume this requires a lookup table of sorts but I don't know how to combine that and getting the other bits of relevant information (I.e. all dates and results).
GavInstrument Spec data.xlsx
View 1 Replies
View Related
Oct 8, 2008
I have two worksheets and need to consolidate the relevant data into one worksheet.
On both worksheets there is one column that I can relate to the other worksheet, called "TKR", which contains a code in each field, such as "000210 K", or "004170KS". Both worksheets have this column. In the first worksheet, called POS, each "TKR" code tells me that this is a relevant "TKR" code in the DB worksheet. I am not interested in the data in POS, just the code to tell me which records are relevant in DB.
In DB is the information I need to extract. But in this worksheet, there are many irrelevant records, which I need to ignore. I need to reference the data in the TKR column in the POS worksheet with the data in the TKR column of the DB worksheet, then extract the record from the DB worksheet and place it in a new worksheet, along with each other extracted record, compiling a consolodated list. I could do this by cut and paste, but I have 30 different databases, both POS and DB, each containing up to 6000 records.
In the POS worksheet there is more than one record for each "TKR" code. I can run an Advanced Filter to extract a consolidated list of "TKR" codes. I am stumped however on how to then use that list to reference the same codes in the DB worksheet and extract the records to a new sheet.
View 5 Replies
View Related
Apr 22, 2009
I am trying to do what I thought was a simple look-up. On one sheet in colum A I have some text and in colum B I have a number. On a second sheet i have a list of text that may or may not match the text on the first sheet in colum A. If the text in colum A matches one of the text items in the list, I want to have the value in colum B appear next to it in colum C. I tried to modify a vlookup formula but would only get a value error if there was a match.
View 3 Replies
View Related
May 14, 2009
IF/ AND/OR
I have 6 tables on one sheet that I want to match data and print out the name of the relevant table ie brown, white ,pink etc
There needs to be a data match in both columns of a table before it prints the name of that table.
I have tried the following but haven’t quite got it right:
IF(AND(B3>9,B349,E39,B327,E3
View 9 Replies
View Related
Apr 2, 2014
I have attached the the excel sheet where in i want to calculate the total number of completed data points for one person.
Let's say "Wasim" would have completed 7 tasks and would updated the relevant cell as Completed.
Now in a huge data list How will i find "Wasim" and how do i calculate how many he has completed.
I believe Pivot table would be the answer here but is there any formula which would replace the pivot table?
(Please see the attachment) Example.xlsx
View 2 Replies
View Related
Mar 5, 2009
I have a list of names that I'm looking up, and I want to list the data relevant to each name in a seperate place using a VLOOKUP ,(maybe theres a better way to do it) but some of the names appear more than once, resulting in an error.
I have on the first sheet, Name, Customer, Amount and Variance.
On the seperate sheet (in the same workbook) I have then name with 4 VLOOKUPS underneath, trying to extract the data Customer, Amount and Variance. But, I get errors in all of them.
Is there anyway I can List all the data relevant to each name using a Lookup function or is there another formula I should be using?
View 4 Replies
View Related
Oct 26, 2009
I have a spreadsheet with multiple columns. (Sheet1) The heading row is my customer name. (Sheet1) My column are the dates. On another spreadsheet, I would like to find the customer in Sheet2 in Sheet1, then do an index to find the relevant data I need, returned in Sheet2.
Sheet2: find customer "ABC" in Sheet1, if found, then find the date that also matches Sheet1 and Sheet2, and return data "apple" .
sheet1
DATE ABC DEF
2007-04-01 £55.60 £61.13
2007-04-02 £56.33 £60.27
2007-04-03 £52.14 £62.58
2007-04-04 £51.69 £61.28
sheet2
CUSTOMER DATE RATE
DEF 2007-04-04 This should be £61.28
ABC 2007-04-02 This should be £56.33
View 3 Replies
View Related
Feb 24, 2014
I want to find a way to create multiple worksheets and matching data to be placed on appropriate sheets.
Here are more details (Please check the attached sheet screenshot as well):
Excel_Macro_Requirement.jpg
In a workbook, there is a "Master-Sheet". This master sheet contains 8 columns.
I want to create as many new worksheets after master sheet as the values are there in column B (Column 2 i.e. Ad Group). In above attached screenshot, there are 8 values (B2:B9 or A-H). So, I would like to create 8 new worksheets after the master sheet. Also, I want to rename them based on their value from Ad Group column.
Each newly created worksheet should have same columns as the master sheet . Same 8 columns with their name intact.
Finally, I want all matching data of the Ad Group values to be placed on their respective newly created worksheet. For example, worksheet A should have A2:H2 data. Worksheet B should have A3:H3 data, and so on.
Please note that same ad group may have more than one row data. But I don't want to create multiple worksheet of same name ad group. The worksheet should be just one, but all matching data should be placed in that one sheet.
I know it is a bit complex task, but I am sure there would be a way to perform this automatically - probably a macro.
View 1 Replies
View Related
Dec 9, 2009
Is there an easier way to use a column FILTER without using the very ugly AUTO FILTER ?
View 9 Replies
View Related
Dec 2, 2013
Is it possible to show a filter in a Header.
Example:
Column H has a list of names i.e. Fred, Barney etc.
Is it possible that when you select all the Barney names in header (the left one) shows the wording "Filter: Barney" ?
Just a thought only sometimes I have to filter and print off a sheet and the area with the names in does not get printed therefore a "Filter: xxx" would be quite useful.
View 1 Replies
View Related
Jun 24, 2014
In my code to filter on some data i'm trying to filter out the top 5 highest values.
[Code] ......
The code just fails to run properly.
View 4 Replies
View Related
Dec 14, 2006
i am using e2k and i have got to filter some data where the filter relevant data is in one column formated as "standard". it contains either only numbers or letters mixed with numbers. in case of a mixed cell the first symbol is always a letter.
i need a way to filter only those rows which contain a mixed cell. the filter criteria should be something like !=#*
View 2 Replies
View Related