# Extracting Data: Extract Information From A Given Set Of Cells

Dec 4, 2009

I am trying to write a formula which will extract information from a given set of cells. The information format is

XXXX-YYYYY-ZZZZ

What I need to do is pull out the information which precedes the second. so in the above the answer would be XXXX-YYYY. I was thinking of using a mid or left, right formula till I discovered that the # of characters for X, Y and Z can be any length ie they could be

X-YYYY-ZZZZ
XXXX-Y-
XX-YYYY-ZZZZZ

So the formula needs to find the second dash (-) and extract information prior to it.

## Extracting Information From Cells?

Apr 23, 2014

I'm trying to extract information from a cell that I cut and paste from another source:

09/02/2014-12/11/2014 Lecture Tuesday, Thursday 08:00AM - 09:15AM, Nichols Engineering Hall, Room 441

Each cell is different in that it may be a different day or time:

09/02/2014-12/11/2014 Lecture Tuesday, Thursday 08:00AM - 09:15AM, Nichols Engineering Hall, Room 434

I want to make a formula that will extract the pertinent information (day of the week and time), and store it to another 2 cells, making a list as it "extracts":

Day
Time

Tuesday
8:00 - 9:15

Thursday
8:00 - 9:15

## Extracting Certain Information From Cells

Jan 31, 2006

I am trying to extract only partial information from a cell that contains
mutliple entries without seperator. Ie I want to get 3rd reference from
cell containing abcde(I want to extract onto another sheet the "c" and only
the "c")

## Extract Data Depending On Cell Information

Sep 11, 2006

i have 20 different materials which have codes assigned to them

wh = white
ivory = ivory
db = duck egg blue

etc etc

when i create an order some of the codes will be called up
i want to be able to put them codes plus the description into the worksheet Ideally into the header. if not call a1

## Extract Unique Data From Information In Output Data?

Jul 2, 2014

I am trying to extract unique Data from the information in the output data in the file attached after i have extracted data based on criteria from the database sheet. i have noticed that because i extract data from the database sheet and from there i perform the extraction of the of the unique data , it is not able to extract unique isser name form the output sheet.

## Extract Information From Closed Workbook Representing Data From A Country

May 22, 2013

I'm having a problem with getting a result from another workbook. The purpose is to extract information from a closed workbook representing data from a country (ie US.xlsm, UK.xlsm) into the open one (summary). I want to count the number of results in a column which are above a certain amount (in this case 100).

So this is my coding for getting this result

Which works no problem for getting the number of results in the E column above 100. my issue is that I want to be able to change the name of the country in a cell, and then get the results automatically from the relevant workbook. I've been using CONCATENATE for these purposes and EVAL (from MOREFUNC)... and I get #REF!

So if I split up the above coding into two cells "=" and "SUMPRODUCT(--(('C:address[US.xlsm]Worksheet name'!\$E\$2:\$E\$30000)>100))" (just to keep it simple) and then use CONCATENATE to combine them in a cell. Using EVAL on that cell gives me #REF!

I've tested SUMPRODUCT with EVAL and CONCATENATE on formulae like the one above which do not link to other workbooks, and they seem fine. and SUMPRODUCT and linking to a workbook also works fine in the first example.

So the problem is somehow coming from the combination of SUMPRODUCT, EVAL and accessing an external sheet.

## Extracting Information From Cell

Jun 17, 2008

I receive a workbook on a monthly basis and it arrives in csv format. I need to format it and split it into several pages prior to sending to managers. I'm comfortable with the vba for formatting and splitting it into several pages but I have a problem with some cells that always have data in them in the same (incorrect) fashion.

how to go about fixing these cells and then I can get on with writing that into the macro.

Currently looks like:

A || B || C
No requested || No Supplied || Percentage
4 || 4100%
12 || 875%
6 || 350%

Should look like:

A || B || C
No requested || No Supplied || Percentage
4 || 4 || 100%
12 || 8 || 75%
6 || 3 || 50%

I was thinking of some kind of Left() formula to extract the leftmost character and place it into it's new cell BUT realise that sometimes I might need to extract 2 (or perhaps even more) characters.

## Extracting Information From A Cell

May 7, 2009

I'm trying to extract information from one specific cell, and place it into another. This other thread kind of does what I'm looking for. I wish to extract from the following; "20/04/2009 5:42:51 AM". Placing the date in one cell, and the time in another. All spacing within the quotation marks is respective of the cell. Obviously dates and times would vary.

## Extracting File Information

Jun 5, 2008

I have a macro that lists all documents in a selected folder and am looking to add the author/owner, created on date, last saved date as shown in the document properties.

The code I'm using is: ....

## Extracting Information From Email Receipt

Apr 29, 2014

I'm looking to find a way to extract an email address an a reference number from an email receipt that i have extracted to excel. The problem is when I paste the information its pastes onto multiple rows and not a single row.

I'm using this formula to extract the email address and can do something else to get the ref number out however the results are on multiple lines which is not good to me.

[Code] ......

I have attached a document to show you how the data extractS on (EXAMPLE TAB) The information I want to extract is the stuff in Red. I then want the results to look like the Results Tab in the example.

Example.csv‎

## Extracting And Comparing Information From Pivot Table?

Jan 14, 2014

I have some data that I have created a report from. However it doesn't show a "true" picture for the stat we want. I have a pivot table set up with data showing the hours worked for an individual. What I am wanting to do would be to cross reference the data but not sure how to compare data. I have provided some make shift data to see if it is even feasible. The end goal is to get a true picture of P.P.H The data we are able to get is in a horrible format. I would eventually like to automate this in VBA but will work on the later. I thought about doing a vlookup but the is no real matching data for all employees. Some of the names are wrong in one system and there is no matching emp ID.

## Extracting Information (post Codes From Whole Address)

Jun 16, 2009

I am not sure if this is possible but I am trying to extract information from a spreadsheet, the problem is that i need only the postcode but this is in a line with the rest of the address as follows:

123 street, town, AB1 2CD

Is this possible as i need to do this for 1000's so doing it individually will take forever!

## Extracting Information Within A Merged/combined Cell

Nov 4, 2009

I am doing an export of info from one system and running an excel spreadsheet to manipulate the data. The problem is..That the exported data sometimes will export info into combined cells. Look at attachment

This is what I need...

I need the ability to search all the info on the POC tab and pull it into the info tab, by searching on a system and returning the POC info..

I have tried the vslookup formula and it will return the first row not the second row which is where the info is that I need (shown Highlighted)
=VLOOKUP(A4,POC!A2:b50,2,FALSE)

## Automatically Extracting Information From A Cell In Different Spreadsheet

Aug 10, 2012

I use a spreadsheet (FY-2012) to track approx 700 work requests. I enter the work request number (name of the spreadsheet) in column A, which is hyperlinked to the actual work request spreadsheet. I would like to automatically fill in this cell with the information entered in cell J42 of the work request entered in column A. Cell A5 of the tracker "FY-2012" indicates Work Request "BB-12003". Cell D5 of the tracker "FY-2012" indicates the completion date. I would like to extract the completion date entered in cell "J42" of Work Request "BB-12003" and have it automatically fill in Cell D5 of the tracker "FY-2012".

## Extracting Store Locator Information From Websites

Feb 3, 2010

tools to extract store locator information from a company's website into excel?

For example: [url]

I am under an impression to loop the extracting process with all known US zipcodes and later remove duplicates. If looping is the way then how to pass on the zipcode to the store locator?

## Extracting Data Into Cells From String

Sep 21, 2009

I am accessing a ratings system for horse racing and trying to extract the top-rated runners for each race using a database query. The problem is that every runner and rating is in one cell and separated by spaces. I have tried using text to columns but obviously can't use space as a delimiter as the horse names have spaces in them sometimes. The one cell basically contains the following string...

COCONUT MOON 100 CARIBBEAN CORAL 100 HOWARDS TIPPLE 97

A2 = COCONUT MOON
B2 = 100
A3 = CARIBBEAN CORAL
B3 = 100
A4 = HOWARDS TIPPLE
B4 = 97

So that I have each horse and it's rating alongside it in the adjoining cell, I figure I somehow need to use LEN, RIGHT, LEFT or something but can't think how to do this

## Extracting Data From Cells In A Row Based On Other Cells

Apr 30, 2007

Please check the attached workbook. Sheet "Data" has some bank account data, and whether the dues are paid or pending.

What I need is, I need to extract only the data of Column A and B into a new worksheet, only if G is in the Pending status.

I don't want to use a macro, nor a pivot, nor autofilter. I need to do it through formulas. I have seen this been done before, but can't figure it out. The max number of pending accounts wont be more than 10, so need to just pull the formula down 10 rows. I have already entered the data in the second sheet that would be the result.

This second sheet is sort of a supervisor sheet, so that whenever they want they can open it to see the number of Pending accounts.

## Extracting Specific Information From Text String To Conform To Format To Upload Into QB

Mar 21, 2014

I have a string of information in an Excel download from PayPal that I need to upload into QB; but, the information needs to be in a different format. The string from the download is:

Property Address - 1116 South PaxonBorrower " Testa and Son Contractors,LLCLoan # - 1402088Acct Executive " Brandon Tully

But, I need it to be:

1402040;TPAPR;141 North Clinton Street, East Orange, NJ 07017;Leslie P Carter

Is there a formula that I can use to extract specific information from the original string into columns so I can then concatenate the columns into the information I need to upload? Or is there a better way to do this? The Property Address and Borrower Name are not static sizes so I can't use a formula that counts spaces.

## Excel 2010 :: Extracting Information From Multiple Form Control Dropdown Buttons

Aug 23, 2013

My problem is I cannot copy from a Form Control drop down box, and I need to do this for ~10 drop down boxes in about 200 xls files. The files follow a template so the drop down button Inputs are uniform. Here is some more detail:

I’m building an Access Database so that our data (currently in many, many Excel Spreadsheets) can be efficiently queried. The old system was that when asset data was collected, the data would be entered into an Excel spreadsheet, using a Template. So for example:

Project A1234

Name
Main Street Pipe
High Street Pipe

Ref No.
12345
12346

Installation date
22/08/13
19/07/12

X Coordinate
55667
99212

Y Coordinate
77889
12364

We have hundreds of these files, but I managed to get all the files in one folder and Paste and Transpose the data from the relevant Cell Ranges in each file (using a VB sub) into ONE summary sheet. Success; or so I thought.

Unfortunately for one generation of the template (people changed them slightly every year), the template had people enter information into Drop Down Menus. Not a problem when they’re associated with a cell, but these were free floating Form Controls.. so you can’t actually click and copy from them, or call them in VB as you would a specific cell.. afaik.

So my issue is how can I extract the data from those Form Buttons? I’ll try and provide as much info as I can:

Firstly I tried to find some sort of identifier for each Form Button. The dropdowns are called Combo Boxes, (Developer tab > Insert > Combo Box (Form Control) ), and when you select them (by right clicking) and hit the View Code button in Developer Tab > Controls the following shows up in VB.

Sub DropDown44_Change()

End Sub

I’m guessing that the number is related to the button so that’s one useful thing, an identifier of sorts. There’s no actual code there though really from what I can see.. My problem is I have no idea how to extract from DropDown44!

The range of values in the drop down comes from a separate sheet where there’s just a list of the values. There aren’t any cells linked to the drop downs though. If I enter a cell in (Right Click) Format Control > Cell link: then it prints the number (e.g. 4) of the value in the range. So if the drop down options are “Monday”, “Tuesday”, “Wednesday”, “Thursday” and “Thursday” is selected, the linked cell says: “4”.

They didn’t link a cell, then I could call that cell in a VB sub and the job would be done. Unfortunately they didn’t, so I tried Recording a Macro and selecting the drop down form control.. That didn’t really work, except if I right clicked it, I got some more info from the macro VB:

ActiveSheet.Shapes.Range(Array("Drop Down 19")).Select

So is my drop down an Array? My understanding of an Array is that it’s a list of arguments.. all I get there is the name of the button. I am not experienced in VB so this is as far as I’ve got. Perhaps I can get a sub to select the button using the above line, but I need the info from it, i.e. which value is currently selected in the Drop Down.

(Using Excel 2010 but the .xls files are from ~2005)

## Extracting Rows Of Data Based On A Cells Text?

Jul 9, 2014

one of my suppliers can only provide me with a basic .xls product list as shown in the attached test sheet.xlsx.

Is it possible to create and run a macro from test sheet.xlsm that will extract data from test sheet.xlsx, specifically from below the heading on row 64 down to and above the heading on row 123 and paste into the (new) worksheet in test sheet.xlsm

This sheet is updated daily and all the heading rows are constantly fluctuating as products are sold and added.

I can do this manually easy enough but if there's any way that this can be automated

## Extracting Data From File In Directory And Extracting Filename

Mar 20, 2014

I have a directory folder with an active workbook and another workbook id like to copy data from. The Following macro opens up a file in the same directory, copies some data and pastes it in the active workbook. However with this code I have to specify the filename, 'Data.xlsm' in the example code. I would like it to copy data from the only other workbook in the current directory WITHOUT having to specify the name in the code, so just opening it up no matter what filename it has.

In addition I would like to extract the filename from the workbook im copying data from and paste it into the activewoorkbook in sheet 1 Cell A1. I had a look at getopenfilename function but cant seem to make it work for my purpose.

## Extract Information From Table

Apr 1, 2009

I am not sure how would I go about finding the last data entry in a table and using formula to extract information. Attached excel 2007 file to better understand. Need formulas for cell B20 and E20. You can use column A as a reference if it is easier as this column is counting the number of entries and the next value will simply be a +1 to the last value entered in column A(or 75 in our case).

For Cell B20: Need to calculate the days difference between todays date (Cell A20) and the last entry date(in this case B5, this will change as new data will be entered). A subtraction of two dates would suffice - my problem is that I do not know how to find the last entry on the table and use it. You have to remember that table gets updated and new entry will be added so then cell B20 should give the difference between A20 and the last date entered.

## Extract Information From Template

Sep 17, 2009

i have 2 sheets, one is a database sort. and the other sheet is a template tat i had design. i have inserted a filter to the database sheet that i wan to extract info from my template (diff catergory). but shows nothing,

## Extract And Use Information In A Comment Box

Jul 22, 2009

My user has data in a comment in a cell that provides additional information about the data in the cell. He does not want to have to retype that information into another spreadsheet but wants it to automatically populate.

For example:

Column Headings: A1 = Tardy; B1 = Absent; C1 = Detention

Data in the following cells: A2 = 2; B2 = 1; C2 = 3

Comments are: A2 = Smith - 10 min, Jones - 5 min; B2 = Adams - Sick; C2 = Brown - Talking, Green - Talking, Gray - Sleeping

He wants another workbook that has a column for each name in three separate tables, 1 each for Tardy, Absent, and Detention. He wants the Tardy table to show 10 min under Smith, 5 min under Jones, etc.

Is this at all possible? I will say that I tried to get him to change his spreadsheet so that he inputs the data into the three separate tables then summarizes it in the sheet he presently has but he cannot change the original sheet. It is a shared sheet by many of our office locations and changing it is not an option.

## Extract Outlook Information

Oct 18, 2009

Is there any way.. probably a macro which can extract the following information from a particular folder folder in outlook / PST into an excel sheet :

1. Sender
2. Recepient
4. Subject

## Extract Information From PDF And Convert To Excel

May 21, 2014

Is there any way to create a specific template that will extract information from PDF file and make it to an Excel File ? The Template would know each PDF and will know which information to extract to excel ?

## Vlookup Formula To Extract The Information

Jun 11, 2008

I am using the vlookup function accross two tabs. . . we'll call them TAB1 and TAB2. On TAB1 I have all my base information which I am referencing from, TAB2 is the sheet where i am using the vlookup formula to extract the information i need from TAB1.

Using cell B2 as an example from TAB2:
I used a vlookup formula in cell B2 and got the information from TAB1. The vlookup formula pulled, correctly, cell F17 from TAB1.

## Filter And Extract Or Search Cell Information

Feb 22, 2007

In column A I have various part numbers with alph-numeric characters. In column B I have a similar list. In column C I have the quantities for the part numbers in column B.

What I need is for say a macro or forumla to look at each part in column A and match it with the part in column B and in column D insert the appropriate quantity from column C.

I'm not sure if this falls under say a filter, extraction or search type of function.

## Lookup File: Extract Information From Sheet

Jan 21, 2009

My company use a program called Bartender which is a barcode printing program. Bartender has the ability to extract information from an Excel sheet which is really useful and prevents repetetive keying in of information. We have found that if you simply print the Excel sheet when Bartender next uses the file it says it is corrupt and simply copying the data into a new spreadsheet and resaving it as the same name does not resolve this issue.

## Extract Date Information, Disregard Year

Apr 9, 2009

I need to do an if then statement that takes the date (which is in the form of "3/31/2009" and only use the "3/31" info. Only its slightly more complicated than that, its a formula that links to another program. Basically, the current quarter end date is "curdate()" so if i want a cell to show that, i enter "=curdate()" and i would like to build an if then statement using that date but only using the month/date combo (only possibly dates are 3/31, 6/30, 9/30, 12/31) so I guess I could even use just the month, the problem would be to extract that information in a formula and build the if then statement around it.

So:
if its 3/31, show 1
if its 6/30, show 2
if its 9/30, show 3
if its 12/31, show 4