If Then Containing Character
Jul 27, 2009
I would like to create an If Then statement in which the condition is based on if a string is a simple text or a formula. Some of my cells contain a formula and some contain simple text...and I would like to cycle through all of them- only do something different to them based on what the cell contains.
View 18 Replies
ADVERTISEMENT
Nov 27, 2012
To all sifus out there, how can i transfer from these:
NAS517-3-2
-41353913
NAS517-3-5
NAS517-3-4
-42MS27253-2
-43353908
-44357182
To these:
NAS517-3-2
353913
NAS517-3-5
NAS517-3-4
MS27253-2
353908
357182
View 1 Replies
View Related
May 18, 2008
I have got a list of numeric abbreviations, for instance 10739011/21/31/41. What it should really display are the numbers 10739011, 10739021, 10739031 and 10739041 (the first six figures stay the same). All the numbers in my list are 8 figures long. I want to change the list from the list seperated by the backward slash to the complete numbers. I have uploaded an example of the list with backward slash between the numbers. Is there a way that Excel can automatically change these numbers to the full numbers?
Because all the numbers are 8 figures long, I thought the first 6 figures of the 1st number can be copied and those 6 figures pasted before the other two figures after the backslash. Auto Merged Post Until 24 Hrs Passes;sorry, pressed OK too quickly. The problem is that there are sometimes 4 numbers in the cell, sometimes 6 and once three. I would like Excel to complete all the numbers in the cell and then move on to the cell underneath it and so on. Also, I would like each number to have it's own cell.
View 5 Replies
View Related
Sep 20, 2009
I have a cell which will contain SER01+SER02+SER03
and what i need it to contain is [SER01]+[SER02]+[SER03]
and shocker is i've got this to work for the first instance but not the other two
code as below... be grateful for your help
Sub measure1()
Dim list As String, pos As Integer, refl As String, refr As String, newlist As String
list = Cells(1472, 16).Value
pos = InStr(list, "+")
refl = Left(list, pos - 1)
refr = Right(list, pos + 1)
newlist = "[" & refl & "]"
Cells(1472, 17) = newlist
End Sub
View 9 Replies
View Related
May 6, 2008
Need a formula/code that will determine what the corrected part number should be (insert dashes if they are missing) by comparing to other values in the list.
Original A1:A5 = {452, a-bc, 123, 4-52, abc}
Corrected C1:C5 = {4-52, a-bc, 123, 4-52, a-bc}
I can do this using an intermediate working column, but can this be done all in one formula, or via VBA?
My formulaic solution is thus: .....
View 5 Replies
View Related
Mar 6, 2009
I have some cells with some spaces and then text where I want to find the position of the first letter. Do any of you know about any function I can use?
The example below contain 5 spaces and then my name. It should give me the answer 6.
" Magne"
View 8 Replies
View Related
Nov 10, 2009
I want to add a letter to the end of value and have it start over at "A" when the cell value changes. For example
My Column contains
BIR1510
BIR1522
BIR1524
BIR1524
BIR1524
BIR1524
BIR1532
BIR1532
BIR1533
I want this in another column
BIR1510A
BIR1522A
BIR1524A
BIR1524B
BIR1524C
BIR1524D
BIR1532A
BIR1532B
BIR1533A
View 6 Replies
View Related
Dec 10, 2009
i have a column that is 1900 long and i need to add a "comma" to the end of everything in each cell in that column. How do i go about this? so at the moment it look like this:
random1
random2
random3
random4
But i need to look like this:
random1,
random2,
random3,
random4,
View 3 Replies
View Related
Dec 17, 2008
A list of URL's in each row. Here's an example:
webmd.com/diet/rapid-weight-loss
webmd.com/food-recipes/features/10-everyday-super-foods?page=2
webmd.com/news/20000529/over-the-counter-drug-works-to-suppress-appetite
weightdepot.com/
weightloss.about.com/
weightloss.about.com/od/easyweightlosstips/
weightloss.about.com/od/southbeachdiet/a/aa060705a.htm
weightloss.com.au/
Here's what I'd like to accomplish: For each row that contains a URL that ends with a / I would like to remove it. If I use the find/replace feature, it would remove all /'s, which I don't want since a good majority of the URL's contain the /'s in various parts of the URL, such as in the example above. I'd also like to accomplish adding a / to the end of every URL for a list that does not have the /'s at the end.
View 5 Replies
View Related
Jan 9, 2009
I'm looking to create a macro that will take a input from extract master.xls workbook and search that contain in the transaction.xls workbook.
I need not want to search the entire row exactly, instead if the search string found any where in that row, that search string alone need to be removed from that row.
For example.
Search String (File : extract master.xls, Column : TAG) :- ....
View 6 Replies
View Related
Nov 18, 2008
I'm adding some necessary code to the beginning and end of some cell contents in Format | Cells | Custom and I seem to be coming up against a character limit.
I'm using the phrase "!!<"@">!!" to add the code, but with some cell contents the result is ########### (but much longer), and I'm having to remove some of the text to make it work. The limit seems to be around 255 characters.
View 2 Replies
View Related
Feb 9, 2012
Is there a way to do a left formula where you can have it pull the whole cell except the last character? Basically, I have a sentence that looks like this:
apples, oranges, pears,
And I want to drop that last comma. But the length of the each cell varies from row to row.
View 3 Replies
View Related
Jun 17, 2013
I'm trying to find a formula to add a "Y" to the beginning of a value less than 7 characters and and not to add a "Y" to the beginning value that is equal or greater than 8 characters.
This is how I need it to look.
Y123
Y1234
Y12345
Y123456
Y1234567
12345678
View 8 Replies
View Related
Mar 4, 2007
I copied this from Excel:
Length of cell contents (text) 32,767 characters. Only 1,024 display in a cell; all 32,767 display in the formula bar.
I have an Address Book from an old Personal Information Manager that exports the file as ASCII.
My problem is when I view the .asc file in Excel, Excel has created two rows for several entries.
That creates a problem as I wanted to select Column "A" then do Text to columns with a comma delimiter (the asc files has the comma in place)
However, since Excel put in the second line, I'll not be able to put in a header column.
When I look at the .asc file there is no way that there is more than 32,767 characters in each row. So why did Excel split it up? ....
View 9 Replies
View Related
May 23, 2008
I've searched for this in the forums but can't find anything. I need to find/replace a character in Excel, it's a question mark in a box and looks like this
I've tried searching for special characters (using the ALT key and number pad) but I can't find anything matching this.
When I save the spreadsheet as a CSV (TAB delimited) this character gets picked up as a TAB, but when I try find replace on the TAB character it doesn't work!
I'm using Excel 2007.
View 9 Replies
View Related
Nov 6, 2008
I have a whole bunch of dates in a column that look like this:
5/01/1998 when it is supposed to be 5/01/2098 is there a character you can use when you are using the find & replace mode i.e.
*/**/20** I know it is not the asterisk but I believe there is some other character that can be used and it won't change any other of the numbers except the 19. I tried reformating and it does'nt work because of the way they sent it to me.
View 9 Replies
View Related
Mar 27, 2009
do you know any function that recognises which character is in a particular cell?
View 9 Replies
View Related
Jun 27, 2006
I'm looking for some VBA code that would look at a column of data, look at each cell value in that column and if the cell value starts with the letter 'G' and the 5th character in that cell is not 'Z' or 'X' I would like to highlight that cell. Example:G123-123 would be highlighted whereas G123Z-123 would not.
View 4 Replies
View Related
Jan 3, 2007
What formula should I use to search for cells which have a certain single letter or digit.
Ex. Those with the letter O
2007-FHYO-45 YES
2006-FHY-45 NO
2007-FYY-38 NO
2007-FYY-21 NO
2007-FGHO-81 YES
View 3 Replies
View Related
Jan 3, 2007
I would like to get the nth character from a string. For example, let's say there is a string "jupiter", and I would like to get the 3rd character of this string, "p". Is there a function in excel vba that would allow me to do this?
View 9 Replies
View Related
Jan 9, 2007
I am new to Excel and just starting with formulas. I am wondering if a formula can handle the following:
We have a column that has a url in each cell. Example (I removed the http:// before it so that all the words show up and it doesn't change to a clickable link):
i25.photobucket.com/albums/c54/bigbusy/S_Images/sylvantropicalbirdi.jpg[/url]
We would like to tell it to copy the portion after the last forward slash and until the period and put it in another cell. In the above example it would give us sylvantropicalbirdi. We then would want to append a _t to it.
Is this possible or am I just wasting my time trying to figure it out?
View 9 Replies
View Related
Jul 7, 2007
I need to replace the sixth character in each row of a column within an excel spreadsheet and wanted to know how to do this within vba and if anybody had any example code
View 5 Replies
View Related
Oct 9, 2007
I'm trying to go through a short list of letters and change the contents of every cell in the list that contains a "c" into a "M". I've written this code, but I get a #Value! message on my spreadsheet when I run it:
Function FindCpmDpm(SearchRng As Range)
Dim CelRng As Range
For Each CelRng In SearchRng
If CelRng.Value = "c" Then
CelRng.Value = "M"
End If
Next CelRng
End Function
I am having trouble accessing the cell which contains the "c".
View 9 Replies
View Related
May 29, 2008
I have large spreadsheet that analyses the number of times specific characters etc appear in individual cells, but only takes into consideration the filtered cells. My current formula that works fine is:
= sumproduct((subtotal(3,offset($c$66,row($c$66:$c$6959)-min(Row($C$66:$c$6959)),,1))),--isnumber(search("F",$s$66:$s$6959)))
So at the moment every time an F or other specified values is in one of the filtered cells it is counted and displayed in the respective cells. What I would like it to be able to do is recognise when a cell has say 3 F's, and increment the displayed product accordingly.
View 6 Replies
View Related
Feb 23, 2013
get the function to get the text in the middle of long text
i have text like this 125/565/797/7222/222/2122
how i put the formula to get text after multiple "/" example the text : 125/565/797/7222/222/2122 in cell A1 i want to get after third char "/ " value 7222 Before the fourth "/"in cell A2 and after the last "/" in cell a3 or value 2122
View 4 Replies
View Related
May 13, 2013
I'm looking for a formula that can sum the first character of a list of values together, based on the cagegory.
Example below:
Column A = The category (or name of a person)
Column B = The status, I'm interested in the first character of the status (which is always a number)
Column C = The sum of the status based on the first character of the status for that specific person
James
1.0 Not Started
8
James
1.1 Not Ready
8
[Code] .....
I want to do this without adding another column (i.e. I can get the result adding a column with formula "=value(left(B2,1))", but I don't want to add the extra column)
I'd also prefer to avoid doing this with a macro, as this part of the formula is only a smaller part in a larger formula.
I tried to look for an entry in this forum, but couldn't find one that matches what I need.
View 4 Replies
View Related
Aug 15, 2007
I have a cell in my worksheet with a fully qualified filename like 'D:abcDefGHIJklxyz123.app
I would like to extract only the xyz123.app. Obviously, the number of characters is going to vary based on the filename. The find and search functions appear to locate the cell but not the substring in the text. The right and left appear to work based on number of characters and in my case these are varying. Also, there does not appear to be any function that can do a search a string from right to left.
View 6 Replies
View Related
May 28, 2014
What I want to do today is, I want to get the extension (Type) of a file from the string. I have managed to get formula for that.
PHP Code:
=IFERROR(RIGHT(C12,LEN(C12)-FIND(".",C12)+1),"")
But the problem is, if the name of the file also have any dots, it is not giving correct result.
For Eg, if the string is ABCD_V1.0.mpp, I am getting 0.0.mpp not .mpp
NB: The file name may or may not have dots. So cannot tell that, it is always the second instance. Need to find the last dot and trip the things before that
View 11 Replies
View Related
Dec 28, 2013
My mission is to extract email addresses from cells. or I want any word that contains "@" in column A to be extracted in column B.
For example, if cell A1 contains: tracy jane@gmail.com , I want jane@gmail.com to be put in B1.
View 3 Replies
View Related
Feb 17, 2014
I have this data and want to extract the character after the letter Y if the string has a Y in it.
Example data Output
AU 2013 OD ANR B24 Y2 2
AU 2013 OD ANR B24 Y4 4
AU 2013 OD ANR B24 Y5 5
AU 2013 PD HLD NOV B SPA
AU 2013 PD HLD NOV C SPA
AU2013OD ANR B25 Y1 1
AU2013OD ANU B25 Y5 5
AU2013OD WCR FPVN B49
AU2013OD Y6 FPVN B49 6
AU2013OD WCR FPVN B40
AU2013OD WCR FPVN B43
View 6 Replies
View Related