Extracting Data Based On Partial Data In A Cell

Jan 23, 2013

I have a spreadsheet full of data and I need to extract only those lines of data which can be identified by the last three letters in a cell. I am adding an example spreadsheet which highlights the rows I am trying to extract based on the contents in column B but only where column B ends in KY.

Example data extract requirement.xlsx‎

View 5 Replies


ADVERTISEMENT

Excel 2010 :: How To Filter / Sort Data Based On Partial Match Of Data In Cell

Apr 16, 2013

I am using Excel 2010. I am a novice user.

I have a lot of data to filter / sort. I want to initially to create a filter for a column of data - which has the format similar to hierarchical paths to files. The data is a mix of text/numbers. e.g.

pathA/path_X/path_Y/path_Z/lso0_rxs_reg_254__5_0/d
pathA/path_X/path_Y/path_Z/lso0_rxs_reg_253__5_0/d
pathA/path_123/path_456/data_out_reg_17_0/d
pathA/path_123/path_456/data_out_reg_0_0/d
pathA/path_X/path_Y/path_Z/lso0_rxs_reg_255__5_0/d

[Code] .........

Doing an alphabetical sort of this date would return the following order. As you can see while each strings in unique - there are many instances where they are simialr - if you ignore the unique numeric values at the end of the string.

pathA/path_123/path_456/data_out_reg_0_0/d
pathA/path_123/path_456/data_out_reg_17_0/d
pathA/path_123/path_456/data_out_reg_4_0/d
pathA/path_X/path_Y/path_Z/lso0_rxs_reg_230__6_0/d

[Code] ......

So what I want to do is to create a filter for the strings - but ignoring the numeric bits at the end i.e.

reg_[0-9]+_+[0-9]+/d

The strings are obviiously of varying length and the number of hierarchical paths is different, so I can't split string on "/".

Similarly folder paths names can contain "_" so can't split string on this either.

As I don't know how many "/" or "-" instances there will be in the string I don't believe I can use the find function. Also as the amount of number will be different i don't think I can use =right(a1,X) either.

I may be able to search for the pattern above - as this is probabay unique - so maybe it's something like the following pseudo code:

Function GetString(txt As String) As String
With CreateObject("VBScript.RegExp")
.Pattern = "reg_d+(_)+d+//d"
GetString = .execute(txt)(0)
End With
End Function

If I do require VBA code - how do I then use this for creating a column filter? Or will I have to extract the filtered data first from the column (and its associated row data) into another worksheet to use?

Once I have the filter in place I want to create tables using the filtered data - so for example each column value above has a lot of associated data values in each row e.g

26 pathA/path_123/path_456/data_out_reg_0_0/d
32 pathA/path_123/path_456/data_out_reg_17_0/d
8 pathA/path_123/path_456/data_out_reg_4_0/d

So my table would show the name "data_out_reg" and the range of values 8-32

View 1 Replies View Related

Linking Partial Data From One Cell If Data In Another Cell Meets Requirements

Jan 6, 2009

The merged Cell B6:G6 will receive a ten-digit number followed by a dash and then one or more numbers. (For example: 1234567890-123)

Cell B15 will then receive data shortly afterwards. I already have a validation macro for this cell which allows either 'I' or 'I I I'.

Upon exiting Cell B15, merged Cell B16:H16 needs a macro which will check Cell B15 and if it contains 'I', Cell B16:H16 will display the data from the ten-digit number entered in Cell B6:G6 minus the first five digits. (For example: 67890-123)

Now the data in Cell B16:H16 can only be somewhat editable hereafter. It can be erased or replaced with numbers in smaller or greater digit combinations than five before the dash (i.e. 67890-123 can be replaced with 123456-7), and digits can be added after the whole group (i.e. 67890-123 & SEE DWG) without any error messages. But if any five-digit number with a dash and some numbers exist in Cell B16:H16, they must correspond with the number in Cell B6:G6 minus the first five digits.

However, if Cell B15 ever receives a 'I I I' afterwards, all data in Cell B16:H16 must be erased. Cell B16:H16 can never contain data if Cell B15 contains 'I I I'.

Also, if the data in Cell B6:G6 changes later on, the corresponding digits in Cell B16:H16 must change as well, even if there are digits after the whole group.

So here is an example of what a good macro would do for me: ...

View 14 Replies View Related

Extracting Data Based On Other Columns Data?

Nov 18, 2013

My query is , I require the UCF column for the ID having maximum number (last five digits) of UCF column for the respective year column values

IDUCF Yr
559589876543212610007971212
559589876543212610000333712
559589876543213610004703013
563829876543212630000323912

My answer should be like below (or) having an additional column saying Active/Inactive.
IDUCF Yr

559589876543212610007971212
559589876543213610004703013
563829876543213630004703113
563829876543212630002782312

View 1 Replies View Related

Summarize Data Based On Partial String Matches

Jun 30, 2006

I have two questions:

a. Check the code below:

Dim news1 As String, news2 As String

news1 = "new"
news2 = "polygon"
Dim countie As Integer
For buddie = 2 To b1.UsedRange.Rows.Count
'If b1. Cells(buddie, 1).Value Like "new*polygon" Then
If b1.Cells(buddie, 1).Value Like news1*news2 Then
countie = countie + 1
n1.Cells(buddie, 10).Value = "test"
End If
Next buddie

I have 2 strings, news1 and news2, i need to use the like function to check the occurance of these two strings in all the cells, and just for testing purpose, im printing 'test' it out in another excel sheet.

How do i make that work? the commented line shows what exactly i want, only that i dont want to hard code the string values.

b. If i have a value in the cell:
/new/blahblah/anycra/polygon
how do i split it so as to assign two variables to have 'new' and 'polygon'.

View 9 Replies View Related

Retrieve Partial Cell Data

Jul 31, 2014

Is there a way I could achieve copying cell's content minus some characters?

For example in the cell A1 would be: "two apples"

I would put into the B1 cell something like =A1(-4charactersincludingspace) - the result in B1 should be "apples"

Is it understandable what I mean?

View 1 Replies View Related

Linking Partial Cell Data

Jan 5, 2009

I have two cells on Sheet 1 - Cell A1 and Cell A2.

Cell A1 is the first cell that will receive either a number, or nothing. When it receives a number, the number will always contain five digits. (For example: '23456'.)

The contents of Cell A2 depend on the contents of Cell A1 - If Cell A1 contains a five digit number, then Cell A2 will display that same five-digit number with '-1' following it. (In our case: '23456-1'.) If Cell A1 contains no number, then Cell A2 will just be another ordinary cell allowing the user to enter whatever he/she desires.

The extension in Cell A2 should remain editable at all times - if the user wishes to change the '-1' to a '-2', for example, he/she should be able to do so without any error messages appearing. However, the user must not be able to change any of the first five digits in Cell A2 as long as Cell A1 contains data. A message should appear stating that changes to the first five digits should be performed in Cell A1 - which would then change Cell A2 accordingly.

Also, if the contents of Cell A1 are erased for any reason, Cell A2 should keep the five digit number, but lose whatever '-x' extension it contained.

Can this be done using Data Validation?

View 14 Replies View Related

Extracting Data Based On Dates

Aug 5, 2009

I have a table with 'Product Rereference', 'Date', and 'Estimated Assets' Columns. I need to run a formula that will extract the number in my 'Estimated Assets' column, based on speicific list of 'Product Reference' numbers that I have filetered, and a specific date - 1/31/ of each year.

I've been trying to create a formula, however I can't seem to work it out.

I have attached a file, which should make things a lot clearer :P I am trying to make the data extract into the table to the right. I have filled in the first few columns manually, to show what I would like to formula to achieve.

View 4 Replies View Related

Extracting Data To New Worksheet Based On Two Values?

Jul 11, 2014

I currently have a macro that looks at one value and copies the data to another worksheet.

I'd like to modify it to look at two different values and then copy the data. I've tried modifying the VBA code, but can't seem to get it to work. In the "ETF Report (1)" tab, i want it to look at the "ETF Report" and "PO No" values.

The Final Version tab is what i'd like the results to look like.

View 4 Replies View Related

Extracting Data Based On Alphanumeric Pattern?

Jul 3, 2013

I have a column of data that contains text such as 'as per A3', 'B4 requested' and 'as per F6 Mark' (these aren't cell references).

I'm trying to find a formula that will just strip out the 'A3', 'B4' and 'F6' element of the text. I've tried SEARCH with wildcards but it's not working, and can;t use the LEFT RIGHT or MID functions due to the inconsistent data.

View 4 Replies View Related

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

View 4 Replies View Related

Excel 2011 :: Extracting Data That Is Text Based (Mac)

Jul 26, 2014

I have a workbook with 2 sheets.

Sheet 1 will act as a summary for sheet 2, showing only the last 5 entries from sheet 2.

Sheet 2 is based on football results of a season which will have a total of 34 league games plus cup games.

Sheet 2 has 4 columns:

Game Number Home Team Result Away Team
1 United 2-0 City
2 Sportive 4-2 Uniao
3 Real 1-0 Ateltico
4 Villa 1-3 City
5 United 2-1 Real
6 Atletico 0-0 Villa

So sheet 1 will show the last 5 results as the season progress's and new data is added.

I have been able to extract column 'GAME NUMBER' using the following formula:

=INDEX('Back end 1'!A:A,MATCH(9.99999999999999E+307,'Back end 1'!A:A)-ROWS('Back end 1'!A2:A$6)+1)

I am struggling to find a way to pull the last 5 data that is text based.

I am using Excel Mac 2011.

View 3 Replies View Related

Extracting Data Based On Drop Down List Choice

Oct 4, 2006

I'm trying to do is build a form that will allow me to select from a list of options, that links back to a catologue of data so that when i click on the generate button it will pull the data associated to the item selected from the list into a text box in excel. I have attached the form that I have created.

View 4 Replies View Related

Extracting Data And Posting In Another Sheet Based Upon Macro Selection

Mar 9, 2009

I have written basic macros (probably not the most efficient solution, but its what I know how to do). Up to the present point things are going well. (I tried to attach file, but without success - So I will email the file directly it is pretty easy to figure out) I have option buttons tied to macros that populate a data sheet based upon the input.

This works out quite well and I am able to generate the statistics I desire quite easily. Now comes the second phase, (this is where I am stuck) - when I click the option button "no", I would like this to generate a line item in a separate existing worksheet which lists the item number, tells the discrepancy (as written in the column on the inspection criteria sheet), has a text field for the inspector to briefly explain the exact nature of the discrepancy, and also keeps discrepancies in proper order. Conversly, if "yes" is selected, I would like to be able to check the associated comment page, search the page for that discrepancy number, and if found, delete the line item, then re-oder the page.

View 8 Replies View Related

Extracting Unique Data Based On Multiple Criteria With Formulas

Sep 27, 2013

I have data and after doing some data manipulation it looks like this

Job #
Part #
Lot #
Total
Grand Total

[Code]..

What I'm trying to do is making a summary sheet that has only the first record with unique values using the Job number, part number, and lot number as the criteria. The grand total in the first record is the total for all of that job,part,lot so i need to bring that value over to the sheet as well. I have been able to do this easily with the duplicate finder, but need a formula to automatically do this.

View 2 Replies View Related

Extracting Data Based On Multiple Criteria - Index Match Array?

Jan 2, 2013

I have sheet full of data containing results of multiple tests on various equipment.The sheet contains many columns of data but below are the specifc criteria i want to use to extract the data. As maintenance is carried out regularly the list is always growing. I want to create a dashboard summary of the "Machines" which i will colour using condition formatting. I will list the machines in the columns and would like the rows below each machine to be populated with the results.

Column 1 Lists the various factories
Column 2 Lists the Machine
Column 3 Lists the Part
Column 4 Lists the result.

Results can either be "ok", "warning", "Alert" only

View 6 Replies View Related

Extracting Data From A Cell

Jul 24, 2013

I have a bunch of contributions events and I am trying to extract the date ... for example. each line has "contribution 11/02/2011" or "contribution 12/17/2010" is there a formula that will pull out the date. this way I don't have to do it manually.

View 1 Replies View Related

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.

View 4 Replies View Related

Extracting Parts Of Data In A Cell

Sep 1, 2007

i have a cell which contains data like this

in cell A1
12. John Smith (67)

There are hidden spaces in cell a1 as well which are not needed, which i can get rid of using TRIM so that may need taken into consideration ??

In Cell A2 i would just like John Smith
In Cell A3 i would just like the 67

the number and . at beginning is not needed just the name and number (no brackets)

View 9 Replies View Related

Extracting Data From Cell After Particular Character?

Sep 19, 2012

How di I extract charaters from a cell after a particular character/symbol

View 6 Replies View Related

Extracting Part Of Cell Data

Sep 8, 2008

I need to extract part of the data from a number of cells. I was thinking a vlookup would be the right way to go about this but i don't know how i can make it look for only part of the data in a cell.

example data Required Extraction Data
PXC-WIS-HAR075/001 = I need the data HAR075/001
GXR-Cru-WOO046/001 = I need the data WOO046/001
LST-Wis-KAV001/001 = I need the data KAV001/001
GXR-CAP-EDL001/001 = I need the data EDL001/001
RXW-ACT-WAL081/001 = I need the data WAL081/001
SXS/mf/SMI085/001 = I need the data SMI085/001
SYM-CEN-HAP001/001 = I need the data HAP001/001
SYM-Act-MAY025/001 = I need the data MAY025/001

I should have also wrote that I do have a list of the file numbers for the vlookup to.

View 9 Replies View Related

Extracting Part Of Data From Cell

Apr 24, 2009

Extracting part of data from cell .....

View 9 Replies View Related

Matching Partial Data With Full Data

Jul 18, 2006

I need to match up the columns of 1 spreadsheet with those of another. I have a partial address that only lists city and state in one workbook. I need to match these partial addresses up with the master list that contains full addresses. It seems like it should be an easy thing to do, but I can't figure it out.

View 9 Replies View Related

Extracting Records With Partial Text In Multiple Columns?

Jan 3, 2013

I have a questions regarding extracting records using a partial text search in multiple columns.

I would like to do a partial text search of the letter "j" in the Name column, and search for the number "1" in the Phone column and extract the corresponding records.

The formula I have been using is as follows: =IF(ROWS(C$2:C2)>$B$2,"",INDEX(C$2:C$6,SMALL(IF(AND(ISNUMBER(SEARCH("J",$K$25:$K$29)),
ISNUMBER(SEARCH("1",$L$25:$L$29))),ROW($J$25:$J$29)-ROW($J$25)+1),ROWS(C$2:C2))))

However, the formula is not working correctly.

find my sample data below:

A
B
C
1
Partial Text Search

[Code]....

View 5 Replies View Related

Extracting Data From Within Excel Cell Range

Jul 18, 2013

I have this text in excel in every cell, but I want to extract only certain data from within the cell eg:

Name: John Doe
Price min: $2000
Price max: $3000
Contact Number: 1800-600-400
E-Mail: john doe@somewhere.com

*** Please note that we are trying our best ***

I need to extract only the name, contact number and e-mail from withing these cells, or delete the info I don't need from all the cells. The text does appear exactly like this in the cell. see attached screenshot

This info was extracted from Outlook into a CSV format and this is the body of the mail only....

View 6 Replies View Related

Extracting Multiple Data From Mixed Cell?

Feb 15, 2013

I have data stored in mixed cell that i need to extract to different cells.

Q/K code: AZVR Name: "AzVR" Ltd Nominal: 0.1 USD
R. Number: AZ3570011 Category: ABC

So i need each of AZVR, "AZVR" Ltd, 0.1, AZ3570011 and ABC in different cells. The characters could be in different lengths. Is there any formula that can find Q/K code in text then write characters after it until space or Name starts?

View 2 Replies View Related

Extracting Multiple Data From Mixed Cell?

Feb 15, 2013

I have data stored in mixed cell that i need to extract to different cells.

Q/K code: AZVR Name: "AzVR" Ltd Nominal: 0.1 USD
R. Number: AZ3570011 Category: ABC

So i need each of AZVR, "AZVR" Ltd, 0.1, AZ3570011 and ABC in different cells. The characters could be in different lengths. Is there any formula that can find Q/K code in text then write characters after it until space or Name starts?

View 2 Replies View Related

Extracting Data In One Cell And Populating Another Sheet?

Apr 26, 2013

I want to create a sort of complex logging system for my work.

As of right now i use a simple temple. Column A has the job number, column B has drawing numbers. Each cell in column B has multiple drawings. So for example cell B2 might contain 101, 102, 103, 104 and so on or something like 101...104. Depending on the situation. The ... means drawings 101 thru 104. What i want to do is have a second sheet that has Column A be the job number but column B has just one drawing #, so an example would be . A1 = 10939 and B1 = 105, 107, 109..111. Sheet 2 would then have A1 = 10939, B1 = 105, A2 = 10939, B2 = 107, A3 = 10939, B3 = 109, A4 = 10939, B4 = 110, and so on. Is something like this possible.

View 4 Replies View Related

Extracting Text (Exported Data) From A Cell

Mar 13, 2014

I have a spreadsheet where the data held in column A is an export from another system and the exported data looks like this:

??????? Stn ??????? ??????? ??

What i would like to be able to do is to split out the data in column A so that the text before the 'Stn' (but including Stn) are shown in column C with text after 'Stn' is shown in column D. i have looked at using =LEFT, =MID or =RIGHT with =FIND but the problem i have is that the text prior to the letters Stn could be one, two, three or four words and the text after could be similar.

View 2 Replies View Related

Creating An Entry By Extracting Data From A Cell

Jan 10, 2007

I have been sent a spreadsheet that i need to extract the first 4 characters of the data in column C and put that data into column D.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved