Extract Certain Values From Text
Apr 21, 2008
I have a couple of things to do here which I hope you can help me with.
1. I want to be able to extract a date which can be either dd/mm/yy, dd/mm/yyyy, mm/dd/yy or mm/dd/yyyy from a text string
2. Any value that comes before a '%' sign to be stripped out too.
So for example if I have the following:-
A1: Bank Of Scotland 4.125% mod feg VYF 27/06/09
B1: 27/06/09 (from part 1 above)
C1: 4.125% (from part 2 above)
Would prefer VB to do it but formula solutions very welcome too.
View 9 Replies
ADVERTISEMENT
Dec 6, 2013
I need a formula which I can extract the specific values from a string of text & values. I included an example in excel.
View 2 Replies
View Related
Aug 21, 2012
I have the following text below and need a formula to extract the text
check deposit fee 0.020% per Month
mortage security $ 2.25 for every $1.00 borrowed
View 9 Replies
View Related
Oct 1, 2013
There should be a formula to extract the largest values and its corresponding values. For example, if column
Products Costs
A1 Pen 200
A2 Pencil 125
A3 Radio 670
A4 Apple 1500
A5 Xbox 222
A6 TV 100
The desired outcome
Products Cost
Apple 1500
Radio 670
Xbox 222
Pen 200
Pencil 125
TV 100
The second goal is extracting the top 3 largest values using a formula.
Sample file is attached for your convenience. Desired outcome is in GREEN.
View 6 Replies
View Related
Jun 3, 2009
Hi, I'm very new to writing Excel Macro's and wanted to know if I could do the following. Conceptually, I understand what I need done and think it should be fairly straightforward.
There's 2 main events in this loop (I hope that's the correct terminology):
Input 1) User defines the beginning cell to start the loop. In this case, A2.
Input 2) User defines the range of columns/rows to display. The formula for rows that I've thought of is 4r. So if a user wants 20 rows below cells A2, they simply input 5 for r. The number of columns is a constant 5. So if r=5, then I'd want the range to be A2:E22......
View 13 Replies
View Related
Jul 19, 2012
Column C5:C9999 & D5:D9999 contains alphanumerical values.
In E5:E9999 i want the result=Column C provided it matches Column D else null.
Ex:
C5=Peter ShowROOM D5=RooM E5=Peter ShowROOM
C6=Peter ShowROOM D6=r sh E6=Peter ShowROOM
C7=PeterShowROOM D7=r sh E7="" (null)
C8=PeterShowROOM D8=P E8=Peter ShowROOM
View 5 Replies
View Related
Jul 9, 2014
I have a set of task descriptions that I am attempting to trend on. Some of these (Column B) have the customer's name added to the description; others do not. I need to be able to make a list of task names (ColumnA), removing the name from the text string.
The formula I am using is [=LEFT(B3,FIND("for",B3)-2)].
The problem I am having is when the description does not contain the "for" built into the formula, I get "VALUE" error. What adjustment can I make to the formula to pull over the Description if the "for" does not appear in the text string?
View 3 Replies
View Related
Sep 4, 2009
An original text string entry appearing in an Excel cell would be:
"N7C Neuroprotective J5Z Antiviral, other M2Z Antiarthritic, other J5A Antiviral, anti-HIV"
I need to extract N7C, J5Z, M2Z and J5A from this string and list these alphanumeric values in separate cells adjacent to the original text string. The challenge is that these alphanumeric references may appear in different positions within the original string with no fixed value e.g. a "," separating them. The alphanumeric references may also be 3 or 4 characters in length and there may be different numbers of alphanumeric references in the original string.
Another example would be (very different from the first):
"T2Z Recombinant, other K5B Radio-chemoprotective J3Z Antibacterial, other D3A Vulnerary A10C Symptomatic antidiabetic K6Z Anticancer, other R8A Antiasthma B6A Septic shock treatment I1Z Immunostimulant, other S1Z Ophthalmological R8B Antiallergic, non-asthma M1A1 Anti-inflammatory"
You can see that in this further example "A10C" & "M1A1" are 4 character alphanumeric strings wheras the others feature 3 characters.
View 9 Replies
View Related
Mar 12, 2014
I am trying to extract numbers after a specific text in a text string, for eg :abc SN 12345 xyzedf SN No. 456 mnoAs per above, i want to extract any numbers afters "SN". the numbers can be vary in digits i.e. it can be 3 digit numbers or 4 or 6. Also, at times there is some other text in between (like SN No.) numbers and search word (i.e. SN)Any formula to get result as "12345" and "456".
View 5 Replies
View Related
Jun 22, 2006
I had VBA run a third-party program ("HYD") using data listed in my spreadsheet. HYD produces a textfile and I want to extract a number from that log (line 58, columns 6-10 to be exact).
I started with
Open "C:TempHYDLOG.TXT" For Input As #1
but I don't know how to have it skip down to line 58 or which function to use to extract the number I want. I've read through tons of help files and forums but none of them treat anything as simple as scrolling down to specific lines.
The entire subroutine up to that point is as follows: ....
View 4 Replies
View Related
Dec 15, 2009
How can I extract non zero values from a list of values
View 9 Replies
View Related
Jun 27, 2014
Looking for a formula to extract values based on drop down options selected in column M3, N3 and O3. Desired outcome is in green color. See attached sample workbook for your convenience.
EastGolf2012, 2013
Month2012 Golf2013 Golf
January2849
February649
March6612
April
May
June
July
August
September
October
November
December
View 3 Replies
View Related
Jul 30, 2014
This formula's array
=IF(COUNTIF($A$2:$B$12,$A$2:$B$12)=1,COLUMN($A$2:$B$12)-COLUMN($A$1)+1)
returns
{FALSE,FALSE;FALSE,2;FALSE,FALSE;FALSE,FALSE;FALSE,FALSE;1,2;FALSE,FALSE;1,2;1,2;1,FALSE;1,FALSE}
This is the column number for each TRUE value
What I want to know is when I drag the formula down how can I obtain the values from left to right? ie:
2
1
2
1
2
1
2
1
1
View 9 Replies
View Related
Aug 27, 2013
I am trying to extract unique values from a column but i can't, i am using excel 2010 and i have try the formula: =INDEX(List;MATCH(0;COUNTIF(C1:$C$1;List)+(COUNTIF(List;List)<>1);0)) but nothing.
Example:
NAMES UNIQUE VALUES
ΑΒΑΚΟΒΑ ΛΑΡΙΣΑ ΑΒΡΑΜΟΠΟΥΛΟΣ ΗΡΑΚΛΗΣ
ΑΒΑΚΟΒΑ ΛΑΡΙΣΑ
ΑΒΟΥΡΗΣ ΔΙΟΝΥΣΙΟΣ
ΑΒΟΥΡΗΣ ΔΙΟΝΥΣΙΟΣ
ΑΒΡΑΜΟΠΟΥΛΟΣ ΗΡΑΚΛΗΣ
ΑΓΑΘΟΣ ΕΥΑΓΓΕΛΟΣ
ΑΓΑΘΟΣ ΕΥΑΓΓΕΛΟΣ
View 11 Replies
View Related
Feb 18, 2006
Given a long column of values, how do I extract only unique values? Small example > Values of 1, 2, 2, 3, 4, 4, 4, 5 in column A. Would like to extract unique values ... 1, 2, 3, 4, 5 ... and put them in another column.
View 13 Replies
View Related
Aug 27, 2007
I have the following in Cell B2 :-
LD(24,6,3,6)=163
How can I extract with VBA the ...
24 < this could be 3 digits
6 < this could be 2 digits
3 < this could be 2 digits
6 < this could be 2 digits
163 < this could be 4 OR 5 digits
... so they go in Cells E6:E10 please. There will always be a comma and the final figure will always follow the = sign.
View 9 Replies
View Related
Dec 23, 2009
I Want To Extract One Value From The Row Skipp Repeated
In Other Word Need Formula For Row Instead Of Advanced Filter, Unique
Sheet2 ABCDEFGHIJKLMNOPQRSTUVWX1Data123451234554512234511882Result123458 Excel tables to the web >> Excel Jeanie HTML 4
View 9 Replies
View Related
Mar 9, 2008
How can I extract a list of the top five maximum values from a range of cells. This is similar to using the the "top ten list" in the Auto Filter but I don't want to filter my data in place. Instead I want to extract a list sorted in descending order along with desciption data located in adjacent columns for each maximum value.
In other words take the following list with descriptions in column A and values in column B
Item 1 = 10
Item 2 = 10
Item 3 = 2
Item 4 = 20
Item 5 = 4
Item 6 = 100
Item 7 = 5
and extract the top five values and their desciptions to another location in descending order
Item 6 = 100
Item 4 = 20
Item 1 = 10
Item 2 = 10
Item 7 = 5
I am wondering whether this can be solved with a combination of matching functions and indexing functions or whether I will need VBA code to solve this.
View 9 Replies
View Related
Apr 26, 2012
There has to be a smarter way to do the formula in A3?
Code:
-----------------------------------------------------A------------------------------------------------------
1 West @ Industry - 331.3421
2 =LEFT(A1,FIND("@",A1)-1)
3 =LEFT(MID(A1,LEN(LEFT(A1,FIND("@",A1)+2)),LEN(A1)),FIND("-",MID(A1,LEN(LEFT(A1,FIND("@",A1)+2)),LEN(A1)))-2)
4 =MID(A1,FIND("-",A1)+2,LEN(A1))
Results
Code:
------------A-------------
1 West @ Industry - 331.3421
2 West
3 Industry
4 331.3421
View 7 Replies
View Related
Sep 6, 2007
I trying to extract the group, sqd, office1 and office2 from a symbol. Each is seperated by "/".
I can get the Group pretty easy but after that its been giving me trouble.
View 9 Replies
View Related
Aug 12, 2008
I know there is a formula for the following but I cant remember which one. I have a text string with words seperated by a "". Which formula should I use to display the words from the string in a cell?
View 9 Replies
View Related
Jun 15, 2014
Looking for formula to extract values from column A, D through K from raw data table if conditions are met. Desired outcome is in green color.
Sample data attached : Pull.Sample.Data.2008.xlsx
Outcome
WestTarget
ProductQ1BBQ1Q2BBQ2Q3BBQ3Q4BBQ4
Product 1348477119150
Product 2578251973823
Product 8763949644583
View 6 Replies
View Related
Mar 13, 2014
In a long string of characters and values, for example in B2:
Cos PGA 3.00 8.98 0.75 Cis TAK 1.00 2.99 0.25 Gsr PAM 14.00 41.92 0.82 Art GUN 3.00 8.98 0.18 Tlu NRG 9.00 26.95 0.33
I want to extract the second value after the specific string which is in in column headers C1, D1,E1...:
Art GUNCis TAKAxa MLPGsr PAMPen NMECos PGATlu NRGRot KGR
so for the example the result should be 8.98 in cell C2; 2.99 in cell D2; no value in E2; 41.92 in F2...
I attached a sheet with the table.
View 14 Replies
View Related
Oct 24, 2012
How can I extract the unique values from the original list but only those whose their SUMIFS is greater than zero? in my example "Blue" , "Yellow" & "Red" should not be extracted.
Sheet1 ABCDE1Original Unique2Purple10 Purple103Blue0 Blue04Pink1 Pink15Yellow0 Yellow06Green13 Green31
7Blue0 Red08Green18 Black29Yellow0 10Red0 11Black2 12Pink0 13Black15 14Purple6 15Red0
Spreadsheet FormulasCellFormulaD2{
=IFERROR(INDEX($A$2:$A$15,MATCH(0,COUNTIF($D$1:D1,$A$2:$A$15),0)),"")}E2
=IF(D2<>"",SUMIFS($B$2:$B$12,$A$2:$A$12,D2),"")D3{
=IFERROR(INDEX($A$2:$A$15,MATCH(0,COUNTIF($D$1:D2,$A$2:$A$15),0)),"")}E3
[Code] ...........
View 9 Replies
View Related
Nov 3, 2013
Extracing unique values based on two lists(2 sheets).
My scenario:
Sheet1 has 2 columns with one million lines. (Master sheet)Sheet1 ColumnA=serial numbersSheet2 has 200,000 lines with same format. columnA= serialsheet2 has some new serials and some existing serials
Serial is 18 digit number saved as text (dunno of that matters)
Solution:
how can I get vba to check serial agaisnt serial ( Sheet2 ColumnA against Sheet1 column A)extract all new serials (unique of sheet 2 only)unique lines to export to new sheet or replace sheet2
View 5 Replies
View Related
May 14, 2014
I have a very large table in Sheet 1, in the following range A10:1:3068.
Column C has the company name, and there are multiple instances of the same company name in this column.
(Columns E to I are part of a pivot table and I have various formulas in A thru D).
In column A I have a value indicating whether the company has 'exposure' (an internal meaning for our sales team). If the company has exposure, then the word exposure is indicated otherwise the cell is blank.
What I need to do is in Sheet 2, create a table that extracts a unique list of company names from column C only where it has the word 'Exposure' next to it in column A.
I would like this to be dynamic so if I change a value in the pivot table in sheet 1 the values in the table in sheet 2 will update accordingly.
I am figuring this is an index and match or perhaps a countifs.
View 9 Replies
View Related
Sep 17, 2007
I have cells with alphanumeric values. I need to extract the numeric values based on certain criteria and put these values in adjescent rows.
The sheet I am using has 3 rows . Row B contains data. Row C is Amount, Row D is Month, Row E is Action
To put values in Rows C, D and E , I need the data from row B in following criteria.
data in B row is as follows :-
RS 555/STMT DT 170807/BP12/TO PAY MEMBERSHIP FEE
RS.555/STMT 020907/BP12/ OFFER
ANNFEE RS 555/- / STMT 020907 / BP 12 / FIRST TIME
RS595/STMT 0807/BP12/ first time
MEM FEES RS 525 /STMT 120807 / BP12/1ST TIM
criteria for row C
if the cell contains "AMT" or "RS" or "INR" or "AMNT" or "RS."then extract the value till first "/" or "" and put it
under Amount row. ( E.g: "AMT 595 /" or "Inr 595/" or " Rs. 595")
criteria for row D
if the cell contains "stmt" or begins with "0" or endswith "07" then extract the value till first "/" or "" and put it under Month row.
criteria for row E
if the cell contains "BP" or "OP" then extarct the value till first "/" or "" and put it under department row. ( e.g " BP01 /" or "OP 02 ")
View 9 Replies
View Related
Jan 24, 2009
I want to extract all those unique values in column A, if and only if, all their repeated values in A
have zeros in B. I mean, if one value appears N times in column A, and for the N repetitions its
respective value in B is zero, this value in A must be extracted from the list.
I was trying with count frequency of values, but I dont know how to extract
unique value with the required condition.
Example:
*ABCDEFGH1********2XYA-121******3XYA-120******4VVT_320******5VVT_320******6VVT_320******7RRT0******8UBN-550******9UBN-550******10PPT_431******11********12********13*Extracted values have all their repetitions with 0 in column B**14VVT_320Value extracted because appears 3 times, and those 3 times its value in B is 015RRT0Value extracted because appears 1 time, and that 1 time its value in B is 016UBN-550Value extracted because appears 2 times, and those 2 times its value in B is 0 Excel tables to the web >> Excel Jeanie HTML 4
View 9 Replies
View Related
Sep 21, 2007
I have 2 sheets in a workbook. Column A on sheet 1 has numbers such as 123456, 123457, 123458 ect ect. Column A on sheet 2 has same amount of numbers but mostly different. However there are a few duplicates. QUESTION: How can i write a code that will fit in a new sheet lets say sheet 3 that will pull out only the list of numbers from sheet 1 and sheet 2 that are NOT duplicates?
View 5 Replies
View Related
Jan 16, 2008
I Need to loop through col W Used range except the last row which is totals or the first 4 rows which is Heading stuff, and if value > 0 post it to a column on the right based on the day code. ( 31 values 1 for each day)
Day code is in cell M1 and is an Integer
eg
Day 1 = Post to Col 101
Day 2 = Post to Col 102
etc...
View 6 Replies
View Related