I have some code that is importing data from a text file that contains ~35,000 line items and is ~50 columns wide (this part of the code is working fine).
Once the file has been imported, I need to copy certain line items to a sheet called output. The code would be something like this if reading line by line:
If the value in row x, column 5 (it is always in the 5th column) in AccountList then
copy entire row and to next empty row in sheet(output)
The AccountList is separate sheet with a list of account numbers in column A with ~250 items.
I am not sure if the code to extract this data should occur while I am importing the data or if I should do it after and run through the data again.
I have data for the distances of cars journeys. I'm looking to extract the 1st journey distance for each date for each car. The car registration number is in column A.
This is an example:
Sheet1 ABCDEF1Reg number Date distance 1st Journey distance 210D1449904/01/20119.271 9.271310D1449904/01/201110.016 1.876410D1449905/01/20119.292 510D1449905/01/20119.629 610D1449906/01/20119.327 710D1449906/01/20113.185 810D1449906/01/201110.163 910D1555506/01/20111.876 1010D1555612/01/20119.534 1110D1555712/01/20111.48 1210D1555812/01/20115.628 1310D1555912/01/20115.356
Basically, I need to extract data from a grid/table (11 columns wide) and transpose it into a list for use in a pivot table. It like sort of reversing a pivot table to access the original data but I only need 5 of the columns repeated for each occurrence.
I have read many internet sources but they don't seems to fit my needs. Here is a solution from a similar question posted on StackOverflow entitled "How to “flatten” or “collapse” a 2D Excel table into 1D?"
The attached simplified mock-up explains what I am trying to do. I have colour coded the data to understand. The number of rows (10) will always be the same but the number of columns (Branches in this case) can extend for many columns.
This will get kind of complicated just a heads up.. I will try to take it in phases.... Without actually uploading my true sheet I will do my best to give a representation of what I'm trying to accomplish. Basically I will have Lists for the Year by Month. In each month the list will compile a list of problems and there corresponding data for each problem. Most of the problems will be internal, however some will be due to external (a supplier). When this occurs the suppliers name will be input into one of the columns. I want to beable to pull out the suppliers from each month and then sort them in order from top offenders to minor offenders by "QTY"
See the attached example sheet. That should give a better understanding of what I need to do.. I am not sure if this can be done with worksheet functions so I posted it under the Programming thread.
Im using XL 2k and working on several worksheets. Im trying to create a formula to do the following.
On Hardware Wksht Tab cell B20 should extract data from HardwareLIST Wksht if it matches to cell C20 from Hardware Wksht Tab. The cell in HardwareLIST A10 is a drop down list of hardware.
C20 Specifies 4 x 8 Only C21 Specifies 4 x 9 Only C22 Specifies 4 x 10 Only
However the drop list contains 3 different types of 4x8's, 4x9's & 4x10s. If selected then B20 should read drop list and match criteria & return the value from HardwareLIST D10. Im having trouble formulating this one.
I have a spreadsheet which in the first column has dates for every day of the year(for many years), and figures in the second column. I want to extract the data relating only to the month end dates. What is the best way to go about this?
The month end date may also only be the last working day of the month rather than the actual month end date
This excel includes some text data, in each cell there is an email address along with additional text. I only want to get the email addresses from the entire data.
I'm trying to extract data from once cell and list it for each cell where certain criteria are met. I'm using Index and Match...it works great for the first set of criteria, but returns the #REF for all following criteria. Here's my formula and I attached the file for your use:
I have a list of U.S. cities and their crime numbers. The list contains roughly 8700 records. What I need to do is pull the records for 10 specific cities from that list. Exactly which cities are singled out may change from year to year. And this is something I'll need to do every year when the crime stats are released by the FBI.
Say I had a list of words, all 9 letters long and I wanted to find all the words that had anagrams of themselves (e.g. ISOPTERAN - PATRONISE) and then list them separately as a new list.
I have tried all sorts of Excel spreadsheet solutions, but I always hit a dead end.
Can anyone write some code that I could add to a module that would accomplish this? The logic would go something like this:
Start with first word, check that word against all the words in the list (column of words), if it is an anagram with another word (e.g. ISOPTERAN - PATRONISE), then both words would be extracted and pasted in a new list for the first occurrence, if while still checking the first word in the list against the remaining words it found a second match, only the second word found would be extracted and pasted in the new list. After the first word was checked against all the words in the list the second word would be checked. Then the third, etc. until the whole list was checked.
I have a column of names of people who have logged calls within a period. Some of these names obviously pop up more than once and I am wanting to report on those top 3 people who have logged calls in that period.
In short, I want the top 3 most frequent in a list.
Trying to get the list from a combobox in an online form. I'm doing this as a check to make sure what I need to be there is there. Then the macro will select what I need and move on. If not found in the list, then it will move on...
So I start thinking about it and I'm not quite sure how to do that in Forms. Does ListIndex get me there?
I'm unable to give the site because you'd have to login with a password, but here's the code I have to Set the combobox:
Set PartNumOffr0EDrop = .Document.all.Item("PartNumOffr0EDrop") myVal = PartNumOffr0EDrop.ListIndex
I need to know how to loop through the combobox and store the value of each member of the list to a variable or cell.
- In column A, I have list of items that take up 700 cells (i.e. the text is in cells A1, A2... A700).
- I have applied conditional formatting to these 700 cells, so some of them are now highlight YELLOW based on a criteria (i.e. cells A3, A14, A422, A654 are yellow)
- I want to create a list of these yellow cells in column B.
I want to know how I can make Excel look at a list of information on one worksheet, extract certain items from the list, and place it on another workshet
For example, the following list would be imported from an inventory program as text and pasted on worksheet 1:
P+green beans d-2.99 c=2 cd+10258
p+cherry tomatoes d-3.99 c=1 cd+11204
p+red apples d-.69/lb c=3 cd+08902
p+tissue d-1.99 c-2 cd+20023
How can I have Excel take this information and create a list like the following on worksheet 2? ...
I have a table with multiple columns. I would like to extract a sublist from column A, based on 1 criteria (<94) on column J. I used the index-array-row array function, however, it does not give me the intended result. It repeats the same name.
My final intended result is to extract the whole row based on criteria on column J.
I have set up a 'week of' calendar for a year. This allows users to enter data in a cell for the week. For example, the today would be displayed on the calendar, the 11th.
What I would like is, in a separate tab, to list (in list format) only dates with data entered.
How can I write a formula that checks a cell, and displays the data, but if there is no data, it goes to the next cell (to the right). In the new tab, I would like the data to be listed top to bottom even though the calendar is left to right.
It would also be cool if in a separate column in the new tab to display the date, but im not sure how because the calendar isn't of actual dates, but of a few cells on the top with the month, and the actual number is in the cell.
Right now I have this as a start, but it's not much...
=IF(Category!C11>"",Category!C11,"")
I have attached an image of how the calendar is set up.
I am trying to extract email addresses from a two column list. looks like the information may have been copied and pasted from a business card application of some sort. so first column contains name and a few other bits and pieces, the second column contains email address, phone numbers, status etc. unfortunately some records seem to be six lines, some seven.
I thought I might try using a pivot to create a list of the account names and then do a lookup/offset combination formula but i cannot seem to work into it the means to locate the "@" in the email address (to identify which line contains the email address). my end result will be two columns: name and email address. or maybe, since the name is already on the first line of each record, i could use some sort of formula to pull the email address up the first line of column c??
Celebrant Details
Abbey*Dayrell, Ms 12 Battunga Street, Wishart QLD 4122
Say, I have 100 names , in that two names /employees joined during the week of 04/21/2014-04/25/2014 - 5 business days and one resigned during the week - Thats my first worksheet Which gives the employee name , Employee id , Joining Date , Resignation Date.
Second worksheet i am giving a summary -
In that i would like to get only the names joined during the week and resigned during the week
Is it possible ? Will the offset function can provide me the desired result ?
how can i extract all number values from a table column and list them on a separate worksheet? there are blanks in the table column, which have to be omitted.
Here's my problem... Column A contains employee name & column B contains Team Leader name of the respective employee. Range D1:G1 should contain names of team leaders from column B. After that, depending on the name populated in D1, cells going downwards from cell D2 should contain name of employees of that team leader. Similar thing should be repeated for columns E, F, & G. If an employee shows up under two team leaders then it should be displayed under both lists.
Is there any formula/VBA code which can do this? Been after this for last 3-4 hours and now just lost in a maze of various Index Match combinations and array formulas..
I have lots of DVDs and decided to catalogue them using Excel 2010. I made use of 3 Sheets. In Sheet 3 there are 2 lists: Category (PG, M18, General, Adult) and Language (English, Chinese, Japanese, Korean, Spanish). Sheet 2 contains the data under the following headings: Title, Category, Language, Genre. I used Sheet 1 to create a drop down list for selecting a Title and then the information of the title are displayed, that is, its category, language and genre (I used vlookup). This is working fine.
Then I created another drop down list for Category. I want to be able to select a category, such as M18, and then a list of titles that fall under this category will be displayed. However, when I tried using vlookup with index, I failed to get the display of titles.
I have two lists in different columns, which are defined ranges. I want to extract them to a unique list with an array formula and at the same time sort albafetically, without duplicates, like this:
List1 List2
Final List
Audi Ford
[Code] ....
So far, I have this formula which is working in what concerns removing duplicates and exctract a unique list. But it is not ordering alfabeticaly.