MID Function For Irregular Pattern

Sep 9, 2013

I'm trying to extract specific character from a set of text strings which have irregular patterns. For example:

CJWHCon.D005 - JN Holding Inc Corporate
CUSViWind.D404 - Windows Ringtown Vinyl

My goal is to get only the 'DXXX' which sometimes might be only 'DXX'. I've tried using the following formula but I seem to be going wrong somewhere as I only get 'D'.

=MID(F10,FIND(".",F10)+1,FIND(" ",F10,FIND(" ",F10)+1)-1-FIND(" ",F10))

View 2 Replies


ADVERTISEMENT

Fill Handle Pattern (not Finding My Pattern)

Jan 31, 2007

Pre-requisite: I would consider myself to be very poor with excel, based on what I've read on this forum and found on my web-searches. I have a worksheet that has a list of data on the left going vertically, then a summary of this data going horizontally across the top. It is not arranged in such a way that transposing the data will do what I want. I am pulling the 5th word out of the title of each block of the vertical data and need to show this word on the horizontal section.

When I use this formula to pull the 5th word: =MID(MID(MID(SUBSTITUTE(A2," ","^",4),1,256), FIND("^",SUBSTITUTE(A2," ","^",4)),256),2,FIND(" ",MID(MID(SUBSTITUTE(A2," ","^",4),1,256),FIND("^",SUBSTITUTE(A2," ","^",4)),256))-2)

I need to increase A2 to A30, then A58 (up by 28 every time) in every instance in that formula. The fill handle increases the values by 1, instead of 28 (even if I do 3 or 4 instances manually) How do I do this? I've run into this problem in other scenarios, and there HAS to be a way to get around it.

View 5 Replies View Related

Three Criteria Irregular Lookups

Sep 14, 2009

Without using helper columns, what is the best way to return a value from an array using three criteria from irregular data? The attached sample gives and example.

View 10 Replies View Related

Searching Irregular Strings

May 1, 2007

I am trying to parse stock holdings for certain companies but I am running into trouble because they are not uniform in their form. The data has a general form but each company uses a slightly different style for the forms. These differences are hamstringing my efforts to effectively parse the data. I have attempted to parse the data using the split function to get it into a more manageable form, and then use various comparisons to tease out the right information. This, however, has not panned out like I hoped. Below are some sample data forms and some of my (albeit poorly written and structured) VBA to try and solve the problem.........

I am trying to extract the same fields from each, such as name or number of shares:

3COM CORP 885535104 1,700,000
Prudential Financial, Inc. 432848109 100,000
this would be a desired output.

here is some of my code to try and accomplish this. this seems to work the data if it is formatted correctly, but I would like write a general parser, and this is what I am struggling with. I cannot figure out how to write something that will correclty parse these irregular strings.

txt = ActiveCell.Value
x = Split(txt, " ")
name = ""
cusip = ""
shrs = "".....................

View 2 Replies View Related

Inserting Irregular Number Of Rows

Jan 22, 2013

I need to write a macro which inserts rows such that each ID has exactly 10 rows (1 for each brand). The difficulty is that each ID has a varying number of blank rows required.

ID
brand

10
1

10
3

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

View 9 Replies View Related

Sorting Irregular Data From CSV File?

Jul 18, 2013

im looking for a way to sort some data exported from an old stock recording software. the system outputs the data as a .csv file but each item bought is grouped into a particular heading, a line is only generated if money is spent under that particular heading. i cannot make the software generate lines if no money is spent so the number of lines generated each period changes.

period 1
3202 fuel £3000
3203 PPE £250
3204 major units £5000
3205 planned maint £212
3207 unplanned maint £457
period 2
3202 fuel £2500
3203 PPE £120
3204 major units £1000
3208 storage £212
3210 windows £457

if the data was regular i could simply add the totals each month and divide to get the average.

what i am looking for is a way to auto sort the data onto lines by possibly injecting the missing headings with zero as the total spent.

View 1 Replies View Related

How To Get A Chart To Work With Irregular Dates Correctly

Jan 3, 2014

I've tried for some time now to create a chart where the x-axis make up for irregular dates. Making the line between 2 points longer if it's long time between them and short if it's short time between them.

I've finally understood line charts doesn't support that and I have to use scatter graph. It seems to work but the dates, the get all messed up. I type 2014-11-11 but the x-axis in the graph shows 2283-12-12 or something like that.

Got a notion that I might have to transform it to the date value manually first but I get #VALUE ERROR

i.e. 2014-11-11 in A1, then I type in A2 =DATEVALUE(A1).

How do I get a chart to work with irregular dates correctly?

View 4 Replies View Related

Identify Non-blank Cells In Irregular List

Jun 21, 2007

I regularly import a list of data into Excel containing employee team names, employee names, and (for these purposes, irrelevant) data. The team name is the only data in column I, and therefore I can easily pick this up an summarise it in a lookup. The employee name is always one row above it, and in column D. However, it is not the only data in column D, and each employee's records contain varying numbers of rows. How can I have Excel copy the employee name in to column J, alongside the team name in column I, but ONLY in rows where there is data in column I?

View 3 Replies View Related

Array Copying And Pasting Columns Following Irregular Distance?

Jun 21, 2014

I am trying to copy several columns into another sheet within the same workbook.

I want to copy Columns 1,2, 15, 19, 23, 40.

I don't know how to work with arrays.

View 4 Replies View Related

Text To Columns Macro For Irregular Spacing Of Data

Mar 1, 2010

i have written a macro to parse data in to four columns using the text to columns fixed width option, but unfortunately the data i get changes its spacing and configuration every day, meaning that the fixedwidth columns dont separate the data correctly. below is how it looks some of the time.

46632hac5 Jpmcc 2007-ld12 a5 19,340,005 315
0738qac5 bscms 2007-pw17 a5 23,142,005 265
61746wcz5 msdwc 2000-prin a5 3,600,005 305
32108hp75 bacm 2007-2 a5 2,000,005 465
46630edf5 lbubs 2006-c1 a5 1,000,005 285...............

View 9 Replies View Related

Auto Sum With Irregular Rows With Existing Formula - Bold It And Draw Lines

Feb 28, 2014

I have a file with many different row sizes and after calculating the figure, we will need to add up the total for a particular job. Due to the irregular data on each job (some with only 1 line item where sometimes the job have few line items).

The cell to sum already has a formula for the data.

For example, I already have a formula on Column L to get the figures. After few line items, I will need to add a total to the lines item, also on Column L. I think we can uses 2 sets of data from 2 different column as "pointers", Column D and the formula column itself (but I don't know how to). The columns that I need a sum function will be from Column L to X. After doing the sum, can we at the same time draw a sum line? (single top line and double bottom line).

Am I being "too greedy" ? Imagine if we have more than thousands lines of such data to be added manually and to draw these lines manually.

View 3 Replies View Related

Transfer Large Volumes Of Name Address Data But Filtering Other Irregular Data?

Aug 14, 2014

I use excel and would like to know how to copy a large volume of address data but at the same time filtering out irrelevant data placed under each other in a row, in this case, air compressors air conditioning web address etc ( see below for example). I need the first 5 lines only. The rows of unwanted data are irregular i.e some have 10 lines, others 5 , and others 2 or one line which makes using a formula difficult as there is no consistency. The data eventually need to be placed horizontally in columns to be compared to other address lists. To make matters worse, the text data has been merged and wrapped.

BDD LIMITED
3 Telford Place
L*****r QLD 4315
Phone: 07 5777 3622

View 14 Replies View Related

Visually Inspect The Data And Then Delete Any Column Containing Irregular Data

Jun 10, 2009

I have 1000's of columns of data to go through, I just need to visually inspect the data and then delete any column containing irregular data. At the moment; I select a section of the first column of data and insert a column chart for that data. I then need to change the source of the chart data to that of the next column, to do this I click on the data within the chart and it will show the data on the worksheet that I have selected by surrounding it in a blue box, I then click on this box and drag it to the next column of data. Clicking on the blue box (which sometimes I miss, and I then have to go back to the chart to activate it again) and dragging it to the next column is getting annoying, especially as I have sooooo much data to go through. Does anyone know if there is a shortcut key for this, or how I could write a macro to do this?

View 9 Replies View Related

VBA Adding In Certain Pattern

Mar 15, 2012

I am trying to enter this formula in cell B2 and i just wanted to know if there was a better and quicker way to do this. I need to do this all the way to BP however my list can extend however the pattern will stay the same.

Ws.range("B2").value=
F & LROW * D1 +
K & LROW * D6 +
P & LROW * D11 +
U & LROW * D16 +
Z & LROW * D21 +
AE & LROW * D26 +

[code]....

View 1 Replies View Related

Pattern Matching

May 19, 2008

I need to have a string comparison done in a macro,

I have a files with names similar to "TEVT_GURUPRASAD_WEEK08" and a array of strings having names "Guruprasad,AnilKumar,....etc." I Need to match the name in the array and the name in the filename.

View 9 Replies View Related

Macro To Fix Auto-Pattern?

Apr 7, 2009

The spreadsheet I'm working on is kinda hard to describe, but I'll try.

It's a finance calculator of sorts that I need done, and it shows me the total cost of various products. Each of these products require different components, and numbers of components, and also these components all cost different prices. So what I have is the following spreadsheet setup:

View 9 Replies View Related

Repeating Pattern In Excel?

Jul 15, 2014

I'm trying to repeat a pattern which outputs 4 equal numbers and then increments that number by 1 for another four row as follows

1
1
1
1
2
2
2
2
and so on

how to do this?

View 9 Replies View Related

Email Pattern Macro

Feb 14, 2008

Need a macro that will autofill in an email pattern from a customer list i recieve. So far i have been having to manually do it.. but when have documents over 3k entries.. ouch.

This is what i got.. hope the way i type it in makes sense
A ..........................B ..........................C
First name........Last Name ............Email Pattern
John ..................Smith ...............First name initial, last name@abc.com
John ..................Smith ...............First name initial, dot, last name@abc.com
John ..................Smith ...............First name, dot, last name@abc.com
John ..................Smith ...............First name, initial of last name@abc.com

Is there a macro i can make that will automatically fill in the email based on the criterea found in column C before the @ symbol? then take the required info from Column a and b?

View 9 Replies View Related

Pattern Matching With Alphanumerics

Oct 2, 2008

I am a beginner to VBA and Macros, and I have a fairly complicated macro that I am pressed to make.

I am working with alphanumeric data that is unorganized. Here is an example of what it looks like: ...

View 7 Replies View Related

Distributing Numbers In A Pattern

Dec 21, 2008

I am trying to come up with a formula that will distribute the numbers as shown in this diagram:

To get the value of each number divide 42,000 by the last number in the pattern. For example the fifth column from the left would be 42,000/18. That means that each number would have a value of 2,333.33. By the time you reach the half way mark, nine in that example, you should have around 21,000, and the other 21,000 should be distributed between the last half (block 10 thru 18). The formulas would have to work on all of the patterns. Can anyone think of a way to match the pattern shown? It doesn't have to be exactly the same pattern just as long as the number of blocks remains the same for each half, and they total 21,000 for each half without going over 42,000 all together. There has to be 11 rows from top to bottom.

View 9 Replies View Related

Cell Pattern Palette

Jul 28, 2006

Is it possible to change the borders/pattern of a single cell so that it looks like the image in the attached document? This may seem a strange thing to want to do, but there is a good reason! Merged cells will not suit my purpose. The pattern palette allows a cell to be filled with horizontal lines, but I need there to be just two lines (i.e. dividing a single cell into three boxes).

View 2 Replies View Related

Random Pattern Is Repeating

Apr 12, 2007

I made a code that automatically checks the date and then compares it to the date of the last save. If it is a new date then the colors of the tabs will randomize. It can also be done manually via a button. The problem is that I have now realized that the colors are always have the same pattern. Every day the first color is an orange color, no matter how many times I randomized yesterday...and so on. Is there a way to make the randomness not have a repeating pattern?

Sub MMVII_4_9_b()
Dim NewDate
If Sheets("Scrappaper"). Range("F2") = Date Then
NewDate = 0
Else
NewDate = 1
End If
'Determines whether it is a new day or not
Sheets("Scrappaper").Range("F2") = Date
'Updates the date
If NewDate = 0 Then
'Does nothing if the date is the same
Else

View 7 Replies View Related

Extract Pattern From A Cell

Dec 18, 2007

I'm trying to write 'user-defined' function in Excel, that doing following:

Getting two arguments: cell and 'like' pattern (_ _ , *, e.t.c).

As a result returns data that match this pattern.

For example:

1. Cell = "golf car is really comfort", pattern = "_ _ _ _" will return "golf"
2. Cell = "toyota is number one", pattern = " num*" will return "number one"

View 6 Replies View Related

Sorting By Date For Irregular Date Format

Mar 14, 2014

I have a dataset where the dates are in the following format:

19970803 = 3rd August 1997 (YYYYMMDD)

My aim is to sort the data into months and into 'turn of the month' periods.

-Is there a way to isolate rows using a search term like "****08**" for all the august entries?
-Likewise if i want data between 27th-3rd for every month is there a way to sort for entries between "******27 - *******03".

View 6 Replies View Related

How To Select Value Most At Right In An "irregular" Table

Sep 26, 2008

I feel quite stupid about this one as it seems easy at first glance, but I just can't figure it out ...

I have a table with 4 columns (A B C D)and need to output in a 5th column (RESULT) the value that is most at the right on each line. The trick is that this value can be in any of the 4 colums, and is not always the biggest (max) value ...

P

A B C D RESULT 1 2 2 2 1 1 4 3 3 1 2 3 4 4

View 9 Replies View Related

Specific Pattern - Fill Won't Recognize It

Aug 1, 2014

I am comparing two years' data, one on top of the other (Rows 1 and 2). For each cell in each row, I am referencing a cell from a different tab. This needs to be done with about 290 data items, so 580 rows.

When I attempt to copy the two rows down, it doesn't go in the correct order (skips a cell reference number). It looks like this:

Excel Forum Q.xlsx

It would save me a lot of time considering each of the 580 rows has about 30 different column with each cell referencing various things.

View 4 Replies View Related

Create A Work Pattern Using Something Similiar

Jun 9, 2009

Create a workpattern using something similiar to the Networkdays function. I want to be able to calculate how many working days are between 2 dates if the employee works a non standard Monday to Friday Week. For Example if someone works ever Mon, Tues, Wed how many working days are there for them in June.

View 11 Replies View Related

Analyze And Make Pattern From CSV File

Apr 5, 2013

I need to perform data mining from a CSV file,and use correlation function to analyse and generate a pattern from the provide data (CSV) for a particular set of error for a given time sample.

Find the CSV file which contains the data which needs to be analysed and generate a pattern.

eventLog_20121205_140322_00000000002119445219.csv

View 4 Replies View Related

How To SUM From Different Sheet Based On Text Pattern

Jul 14, 2014

I have a formula such as below..

=SUMIF('MBX TO DBS'!$G$1:$G$818,"*livedb01*")

This will sum the values in G1-G818 that contain livedb01 on the "MBX TO DBS" sheet, however this is not exactly what I want.. I want the SUM function to look for the livedb01 string in G1-G818 and SUM the values in D1-D818.

So instead it would look for livedb01 text in G column and take the value from D and SUM those once the text qualifier was found in G column..

Is this possible with Excel?

View 2 Replies View Related

Increasing Row Number In Regular Pattern

Jun 10, 2014

I want the first 60 rows of column C to be constant meaning C1, C2, C3, C4..C59 and after 60 rows it should start again with C1, C2, C3.....C59 rather than C60, C61, C62. In other words i+1 but after 60 rows i should be reset to 1 and then again increase by 1. how can i implement these changes

[Code] ......

View 2 Replies View Related







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