How to extract data in Microsoft excel that satisfies certain criteria - excel-formula

The question I have is kind of confusing, so I am going to give a little background on the particular task I'm working on so you can have a better understanding. In one of the spreadsheets I am working on (Called the Fixture Mix Template), I have a list with a bunch of fixture components that are identified by their respective codes (the company calls them oracle codes), which are listed in Column G. Out of these components, some are categorized as "main components" and if they are a main components, they will have their oracle codes in Column E within their respective rows. For the components that aren't "main components" I just left their cells blank in this column. On a separte worksheet (Called the SUmmary Tab), I have a table that lists the main component codes with the costs that it takes to make and assmeble them. The question I was wondering is if anyone knows a particular formula I could use where if a component on the Fixture Mix Template tab is identified as a main component, then it would autopopulate the table on sheet 2 in the cells where someone would have to enter in the main component oracle code. I hope this makes sense!
I will also show you a picture to give a better understanding as well.
http://imgur.com/2Gk6CVU (this worksheet is called the Fixture Mix Template). My main question is if anyone knows a way where I could extract only the cells that have an oracle code in column E of that worksheet into column A of this picture http://imgur.com/gh00vIE (This is another tab in my workbook called the Summary tab)
IMAGES Posted
First Image:
Second Image:

I will edit my answer later and show how to apply it to your data later, but the following link will show you how to extract a distinct list of items in one column based on the critera in another column.
http://www.get-digital-help.com/2009/06/27/how-to-create-a-unique-distinct-list-where-other-columns-meet-two-criteria/
Hope this helps,

Related

Is there a way to enter, save and delete entire row in a scrollable list and reflect the same changes in main data sheet in excel

Fisrt i would like to state that i don't know much about vba other than what i pick up from the internet and forums like this one. I have a problem and i'm hoping some on this forum will come to my rescue.
I'm trying to create a simple equipment maintenance system in excel. I do not want to use the vba user form Because i do not have much knowledge of vba coding.I have two sheets, Sheet1 (called Form) and sheet2 (called Data). So i have craeted an on sheet form on the left of the sheet1 (Form) which i would like to stay visible at all times So to achieve this i picked up a method from the internet of creating a scrollable list (Displaying all data entries from sheet1 (Form), i have also picked up vba code to save and reflect form entries on Sheet1 (Form) on sheet 2, so far so good. Coming to the problem, i would like to make and delete entries directly on to the scrollable list which would also reflect on the data sheet. Another problem i would like to know if possible is how to make the maximum value of the scrollable can increase automatically as data rows increase.
Please HELP!

Auto populating Excel Table from keywords, error checking for defined names, etc

I am attempting to find a solution with either excel or visual basics.
I have an expanding column of remarks on multiple sheets that I need to search through for a keyword (I’m using the word “change” or “chang” to capture “changing” when needed)
When this keyword is found, I need it to give back the cell address, along with a defined name I’ve set up (one for each sheet).
I was able to make a table on a “summary sheet” to include the “new comment”, address, and defined name, and it works well enough. My only concern now is if I add a new row and therefore add a new comment in the column on one sheet, I will have to go back and add a row to my table, and make sure the address and defined name are also corresponding to that “new comment”. This will get very messy and errors can occur, especially since I could have 20+ sheets.
So far all I have been using is excel formulas. But I have also been playing around with excel macros to try and accomplish this (with no luck).
Any help would be greatly appreciated! And I of course can explain this better if need be.
Edit: I added a picture of the general basis of what I’m trying to accomplish. I can’t add the code I’ve been trying as it’s on my work laptop- so I made a simple mock-up of my sheet to include here. I took pictures of the highlighted cell in sheet 1 to show the formulas, and then a picture of sheet 2.1

Limit with creating a drop-down list dependent on a selection in excel

I have an excel file with two sheets. The second sheet (Report) contains data validation cells based on the first sheet (Data). From the second sheet, the drop-down list that displays in the Select XXX depends on the selection in the Generate Report. When the Generate Report is set to anything beyond the first five in its list, the "Select XXX" displays year as a default list (no problem with this) via the code ...INDIRECT("Year").... The problem is that excel does not allow for addition of more code (seems I hit the limit). The question is - how can I manipulate this code to accommodate every option in the Generate Report? or perhaps, is there another method to implement?
The data validation source code for the drop-down list is =IF($B$4=Data!$Q$5,INDIRECT("Client"), IF($B$4=Data!$Q$6,INDIRECT("Month"), IF($B$4=Data!$Q$7,INDIRECT("Product_Service"), IF($B$4=Data!$Q$8,INDIRECT("Sector"), IF($B$4=Data!$Q$9,INDIRECT("Trans_Type"),INDIRECT("Year"))))))
Please, see the sample file at https://drive.google.com/file/d/1VKkGHjlJzLQqx4J9kyd_bCKG4r0Q7HkG/view?usp=sharing
What you could do is put the range names in column R, and VLOOKUP them:
=IFERROR(INDIRECT(VLOOKUP($B$4,Data!$Q$5:$R$9,2,FALSE)),INDIRECT("Year"))
You could then have as many item lists as you wish.

Excel: Data Analyzing and Drop Down Options

Trying to create an excel spreadsheet which will allow me to select an option at the top of the page (a dropdown) which will be a list of names. I then want a grid below to be able to show (as an example) an individuals results over a month. This is a preference as I didn't want to have to go through multiple pages to view individual information and rather see it all in one location.
Thank you ! :)
Use a data validation linked to the range of student names on another sheet and then an INDEX, MATCH or VLOOKUP formulas to populate the table from the other sheets..

VBA to update multiple sheets from main spreadsheet based on department name

I have a spreadsheet that is used to track audit scores for 9 different departments in a plant. The 9 departments are broken down to 117 different area locations. Once a month I add a new column and update the scores. What I would like is a seperate sheet for each department with the audit scores updating automatically when I import the original data in. I'm new to VBA programming and this may be over my head a little bit, is there a way to do this?
Why not using a pivot table in each tab ?
You'll only have to use the "actualize" command once ( Data-->Refresh all) whenever you're adding a column.
The thing you have ot be careful with is to set-up you master table as a list (Home tab-->Format as a table command ) or else the pivot table will not take account of an added new column.
Without seeing the actual data and the format the it is currently in...
Assuming that you make a separate sheet for each department each with a row corresponding to its respective area...
I would utilize a class to hook the application's events and update each sheet on the Worksheet_Change event. Chip Pearson provides an excellent example of this concept here and I'm sure that a cursory search of SO will turn up quite a few examples as well.
From that point it is a matter of identifying the imported data and it's corresponding location in the workbook.
If you have an example I would be happy to look at it...

Resources