Find , (comma) And Return All Characters After It

Jun 25, 2009

Excel 2007 - Windows XP

I have the below in cells A1 and A2. I need to find the last comma then return all characters after it. I need the same formula for both cells because the value is always changing.

HUG,PU-TUB,BW,-,-,64 Need to Return 64 in B1
HUG,PU-RFL,BW,-,-,176 Need to Return 176 in B2

View 9 Replies


ADVERTISEMENT

Lookup Comma Separated Data And Return Comma Separated Answer

Mar 19, 2014

Comma separated data on sheet 2, look up info on sheet 1, return comma separated data on sheet 2.

Sample file attached : Book1.xlsx

View 3 Replies View Related

Remove Characters Right Of Comma In A Web Query

Aug 7, 2009

I currently have a macro that imports data from a web-based query then deletes column A from the query. I do this because I am using a VLOOKUP on the data and the VLOOKUP value would be in column B if I didn't.

The website has changed the format and now once column A is deleted, I'm left with a format of FirstName LastName, POS TEAM (i.e. Tom Brady, QB NEP). My VLOOKUP looks for FirstName LastName so I'm getting the "N/A" error now. I need to remove the "," and "POS" and "TEAM" from the imported data. This would be easy enough if the number of characters right of and including the comma was consistent, but it isn't. (Also, text to columns then CONCATENATE won't work because VLOOKUP looks at values, not formula results...)

Now I know the formula =LEFT(A1,FIND(",",A1)-1) works, but how would I incorporate this into the worksheet to keep the values in column A and not add additional columns to throw off my VLOOKUP.

Ideally I'd like a simple macro to add to my current macro to use the above formula, but I'm not sure of the wording.

View 9 Replies View Related

Separate Numbers From Characters That Are Separated By Comma

Feb 17, 2010

For example the cell contains 1,M2,M7,M1,M8:2,M15,M9,M4,M5:3,M3,M6,M14,M11,M12:4,M10,M13 and I need to create M1, M2 , M3 ..etc columns and attach the coresponding number to each one of them. For instance M2,M7,M1,M8will get 1 and so forth and so on. I was acutally thinking using the Notepad to replace the , with a TAB space and paste them back in to my data set and create some IF statements. On the other hand running VBA scrip would make it even easier. However I would preffer to use a function (that I am not 100% familiar with) and leave the VBA scrip out of the question for the moment.

View 12 Replies View Related

Replace Comma With Hard Return

Nov 14, 2006

I have a string in a cell which is essentially comma separated and want it in the same cell but with enters instead of commas. Cell info to start with would look like this

Bob, The, Builder

And the result I am looking for is

Bob
The
Builder

All within the same cell so I can create a label which uses this information on a user form. I have attached a small example.

View 4 Replies View Related

VLookup Multiple Values And Return In One Cell With Comma Separated

Apr 6, 2013

code1
code2
lookup Range1
lookup Range2
Return Value
Lookup
Multiple Return

[Code]....

I am trying to vlookup multiple value and return multiple values in one cell

View 7 Replies View Related

Find Text Right And Left Of A Comma

Feb 22, 2008

I have the name bloggs, Joe in cell A1. Is there away to flip the name around and get rid of the comma.

i.e. Joe Bloggs

View 9 Replies View Related

Match Function To Find Name With Comma

Jun 10, 2009

I have a spreadsheet in which I use a match function to find the row a name is on. The name may be listed several times and the name has a comma in it, for example, "Tom, George". I got it to work once, but it doesn't always work. Is it because of the comma or because it is in the lookup several times? It's my understanding the Excel will return the row number for the first time it sees the name in the list, which is what I want.

View 9 Replies View Related

Find Number In A Cell With More Than 2 Numbers Separated By Comma

Oct 7, 2006

When the entry in a cell is of the format e.g 3,4 is there any way to find the value 3 or 4 in that cell?

Attempts like:

Cells(i, 1).Value = variable (e.g variable=3)

or

Set cell_found = Cells.Range("A1:A10").Find(variable, lookat:=xlWhole)

do not find the cell with the 3 (or 4). The above work fine when 3 or 4 are alone in the cell. Is there anyway to find these values in the cell?

View 4 Replies View Related

Find Difference Between Cells Data Are Separated By Comma And Space

Mar 2, 2009

Table A: I have data separated by coma & space in cells A1:A4

A: Data Table
*A110, 20, 30, 40, 50, 60
211, 21, 31, 41, 51, 70
316, 19, 37, 48, 59, 81
418, 23, 33, 42, 57, 78

Table B: I want to calculate difference between cells A1:A2, A2:A3 and so on…
And if it is possible as shown in cell B2:B4

B: Result Table
*AB110, 20, 30, 40, 50, 60

211, 21, 31, 41, 51, 70
+1, +1, +1, +1, +1, +1
316, 19, 37, 48, 59, 81
+5, -2, +6, +7, +9, +11
418, 23, 33, 42, 57, 78
+2, +4, -4, -6, -2, -3

Separating cells A1:A4 data in separate cells can do this.

But if it is possible solution can be done as shown by VBA will be greater.

View 9 Replies View Related

Macro: Return 1st X Characters

Nov 9, 2006

I am trying to extract some data based on two criteria. The first is that one row cell value is greater in than an agreed date/time, in my case this is 7:00am yesterday. The second is that the first 5 characters of a second cell, in the same row but several columns along, are not equal to 'Monit'. If both of these are met then the code will strip out several cells of data from that row.

I can do the first and last parts of this but the 5 characters check is proving a little more difficult in my limited VBA knowledge. The second cell is simple text format and I can't do a LEFT equation in a different cell to get those 5 characters (restricted workbook range so no room). how to go about running a check? I'm thinking it's probably quite simple but trying to search for an answer to it is tricky.

View 4 Replies View Related

VBA To Insert Carriage Return After Certain Characters

Jan 26, 2010

Is there any way to insert a carriage return after each instance of a character? I have a section of data that requires a carriage return after each instance of -v eg:

View 8 Replies View Related

Reference Cell & Only Return X Characters

Oct 20, 2006

how I would go about referencing a cell on another worksheet to return only the last so many characters from the data in that cell. EG:

Sheet 1 cell A3 contains the number (stored as text) 12345678
Sheet 1 cell A4 contains the number (stored as text) 98765432

On Sheet 2 I want to put into cell B2 5678 (the last four characters from the data in Sheet 1 A3.) Also on Sheet 2 I want to put into cell B3 5432.

View 2 Replies View Related

Return X Characters Based On X Cells Having Whole Numbers Above Zero

Sep 14, 2007

IF there is a whole number in either column a, b or c, I need to have column e reflect that with the insertion of a / for each column that has a whole number. i.e.

Column - A - B - C - D - E
3 4 / /
5 6 9 / / /

I am attaching a copy of the spreadsheet showing the examples, I can't seem to get the function to work.

View 8 Replies View Related

Compare Two Cells & Return Unique Characters

Apr 8, 2008

I have two columns that have similar information. I want to copy the unique information from one cell to a third, blank cell. In my case cells d2 and cell e2 are almost identical except cell d2 has addition information. I want to copy that information into cell f2. I have a feeling I am making this harder than it needs to be.

View 2 Replies View Related

Find And Replace Certain Characters

Jan 31, 2010

I have some records that include greek addresses. The greek alphabet contains letters that are common to the english one (A,B,E,Z,H,I,K,M,N,O,P,T,Y,X) and records with mixed characters will cause me problem. What can I do to find and replace any of those letters with the greek version of the letter.

example:

for a record:

T.È.5123 (this is the Greek abbreviation for P.O.BOX 5123)

I'm looking for a function to replace the first letter T (wether is Greek or English) with the Greek version of it

example 2:

KYMHÓ 6 (kimis is the street, 6 the number)

I should replace English (first four ) letters with the Greek version...

example 3:

BAËÁÙPITOY 14 (valaoritou is the street, 14 the number) ...........

View 3 Replies View Related

Formula: If Value Return Is = To Value Of Cell Above Then Find Return Next Value

Feb 17, 2010

Is there a way with the following formula to tell it that if value return is = to value of cell above then find return next value?

View 6 Replies View Related

Find And Replace Blank Characters

Aug 28, 2009

I download several sets of data from an internet site. The only way I can do this is to copy and paste into Excel. The problem is, that all of the cells with numbers in them show up as text, and when I press F2, I find that there is a blank space at the end of each number.

Find and replace, searching for a blank space does not work - Excel "cannot find any data to replace". That function does work on cells in which I have created my own space at the end of a number, but not on these numbers. That leads me to believe that that "blank space" is actually some other invisible character that I need to be searching for. I've attached a bit of my data - maybe somebody else can identify my phantom character.

To get around this, I have been using the formula =(left(A1,len(A1)-1), and that works, it's just that it is a pain to create another table of 20-some columns with this formula, then copy those to values, then for each column convert text to columns to change the text to values, then search and replace for #value! where the original cells were blank.

View 9 Replies View Related

Find Duplicate Characters In A Cell?

Feb 5, 2011

The background to my problem is that I'm trying to create a unique dictionary for a game I'm programming. I have imported the dictionary into Excel and need to manipulate it with the following conditions:

Word length can only be 3-5 characters longWord cannot contain special characters like hyphen or apostropheWord cannot have repeated characters

I got the first two criteria done using pretty brute for methods. The first using the LEN function to find words greater than 2 and those less than 6 and then comparing those two lists to get the list of 3-5 character words. The second I did manual search for characters and replaced them with six random characters so they would fail criteria 1 and be filtered out.

The last one I'm having problems figuring out. The game I'm programming only lets you use a letter once. So words like "dad" (or coincidentally enough "mom") would not be valid.

Is there a way I can look at the words in the cell and see if any character is repeated and then act upon that (e.g., copy to another column if no letters are repeated)?

View 8 Replies View Related

Find Position Of Various Characters In String

Jul 11, 2014

Is it possible to find the location of different characters in a string (using VBA)? Normally I would use InStr of InStrRev option in VBA but my situation is a little more complicated.

The character I am looking for is not always the same, sometimes it is a , or a . or a : or a "blank" etc

I tried to do it like:
dim strChar as string
strChar = "[,.? /]"

SearchPosition = InStr ("cell location", strChar) (searchposition is the name of the function I am trying to make)

This works if I define only 1 character, this way it gives me a 0 as outcome

I have tried to change it to strChar = "[,]" or strChar = "[.]" or strChar = "[ ]" but this doesn't work.

View 13 Replies View Related

Find & Replace All Characters In Cell Like #

Oct 14, 2009

I need help with a formula (no VBA) that will find all the semi-colons ";" and pound signs "#" in a cell and replace them with this "<br> - ".

Example of Cell A1: ;#Red;#Green;#Blue;#

I started with this:

=REPLACE(MultChoice,SEARCH(";#",MultChoice),1,"<br> - ")

but it only replaces the first character.

View 12 Replies View Related

Find And Replace Certain Characters In Formula?

Sep 28, 2013

I basically want to find and replace certain characters in a formula, but the formula is quite intricate so I will give some background to the problem first:

I have a complex spread sheet which is used to check if a data array matches another data array (both data arrays are different sizes). One array has a set of parameters for a variable and the other array has the variables and the actual values for each variable. I have a section with the following formulas to check if the actual value (C121&D121) matches the parameters ($A$9:$A$108, $B$9:$B$108) & ($C$9:$C$108, $D$9:$D$108)

I have the following formula in cell AB121:
=(C121=INDEX($B$9:$B$108,ROW(101:101)-INT(ROW(100:100)/$D$1)*$D$1))

In cell AC121:
=(D121=INDEX($D$9:$D$108,ROW(101:101)-INT(ROW(100:100)/$D$1)*$D$1))

And have similar formulas from AD121 to AY121. I mention this to point out that excel regards this as an inconsistent formula, I haven't copied and pasted it over, I have had to re-enter it in each cell adjusting the parameter sections.

The problem I have is that currently this is set up to check through a data set and wrap around every 100 rows ('100' Entered in $D$1) but I want to adjust the formula when there is a different amount of rows to check. So basically the only way I can think to be able to do this is to have a formula or something in VBA (which I have very low level experience with) to be able to go into the formula and change certain characters within the formula. For example, if I wanted to check 95 rows instead of 100, it would need to have 95 in $D$1, which I enter in manually, but then how to go in and replace (101:101)-INT(ROW(100:100) with (96:96)-INT(ROW(95:95) in 2 sections in the 1 formula then do the same with the inconsistent formula from AC121:AY121?

View 3 Replies View Related

Find The First 3 Characters Of A Text String

Nov 17, 2007

How I can change this formula to find the first 3 characters of a text string?

Instead of using numbers in column A, it will be Names, I need the user to enter only the first 3 characters of the name and then display the results, (Meaning that all others irrelaavnt rows will be hidden.

Sub myHidingRoutine()
Dim foundCell As Range

With ThisWorkbook.Sheets("Sheet1")
Set foundCell = .Range("a:a").Find(What:=.Range("a2").Value, After:=.Range("a2"), _
LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False)

View 9 Replies View Related

Find And Replace :: Change Characters

Dec 29, 2009

I have about 40,000 lines in Column A that have text like so...

13HMPS32TRE600001OP000000601
13L9KUPSOTE600001OP000000601

I need a formula to change all TR and OT to characters QT. I did a find and replace but its changing other columns of text that I don't need changed.

View 9 Replies View Related

Macro To Find And Replace Accented Characters

Aug 11, 2014

I have list of email ids and some of which contains accented characters.I need to replace these accented characters with regular character.

Example:

rian.pieda@intt.com.cn
ario.sancez@acca.com

View 2 Replies View Related

Formula To Find Characters After Last Space In A String

Aug 27, 2007

I have text string and would like two formulas to find,

1) the characters after the last space and

2)to find the number of characters after the last space.

View 9 Replies View Related

Formula To Find Characters After The Last Space In A String

Aug 28, 2007

I have text string and would like two formulas to find, 1) the characters after the last space and 2)to find the number of characters after the last space.

View 9 Replies View Related

Find Text Between Characters And Remove Hyphens

Sep 19, 2006

I need to make a macro that will find text between "o/" and "/", remove hyphens from the text it found, and then add it to the end of the current cell contents.
I know how to add to the end of current cell contents, but cannot figure out how to grab text between certain characters or replace hyphens and replace with spaces.

View 3 Replies View Related

Find Numbers Next To Specific Text Characters In A Cell

Oct 15, 2012

I'm faced with receiving data for time, in a text format, as follows:

Example of possible cell contents...

20secs
40m20secs
2h40m20secs

I'm not interested in the secs value but need to isolate the h (hours) and m (mins) values to use in another formula as numbers. The time could be shown in either of the above formats with either; (a) just secs, (b) mins & secs or (c) hrs, mins & secs... and of course the hours or mins values could be 1 or 2 digits in length. How can I determine (using formula only, not vba) what the values for hours and/or mins are dependent upon what is present?

View 9 Replies View Related

Find Fields That Start With Characters Entered In Search Box

May 16, 2014

Is there a way to force Excel to look at only the first characters in a field when searching?

If I use:
MySearch = Range("C3").Value
Cells.Find(What:=MySearch, After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate

It will find any instance of the characters entered in C3; however, I want it to find only fields that START with those characters. E.g. if I enter TRA in the search box it will come up with CITRATE when I want TRACLEER, etc.

View 7 Replies View Related







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