More Excel help
#1
Posted 06 June 2011 - 03:59 PM
SD-V-324
SEC DRAINAGE EDUC
BILGE SUCT PRESS GA ROOT
What I want to do is break the data up. the "SD-V-324" is an identification number and the "SEC DRAINAGE EDUC BILGE SUCT PRESS GA ROOT" is a description. I want each in it's own cell. Basic text-to-columns won't work, because there is no delimiter that I can safely use without having to piece back together a lot of data and using it with a fixed width is very limited as well because the trailing numbers (324) vary between 1 & 2000.
#2
Posted 06 June 2011 - 04:21 PM
rajncajn, on 6/6/11 3:59pm, said:
SD-V-324
SEC DRAINAGE EDUC
BILGE SUCT PRESS GA ROOT
What I want to do is break the data up. the "SD-V-324" is an identification number and the "SEC DRAINAGE EDUC BILGE SUCT PRESS GA ROOT" is a description. I want each in it's own cell. Basic text-to-columns won't work, because there is no delimiter that I can safely use without having to piece back together a lot of data and using it with a fixed width is very limited as well because the trailing numbers (324) vary between 1 & 2000.
#3
Posted 06 June 2011 - 04:26 PM
You can also use the LEN function to count how many characters are in the complete string and then use the =RIGHT function using the LEN minus the 9 (from the FIND function) to bring back the correct number of characters for your description.
If I confused you could PM and you could e-mail me the file and I could help. Or I could give you a phone number to call and discuss which is probably easier.
#4
Posted 06 June 2011 - 04:26 PM
gbpfan1231, on 6/6/11 4:21pm, said:
#5
Posted 06 June 2011 - 04:31 PM
gbpfan1231, on 6/6/11 4:26pm, said:
You can also use the LEN function to count how many characters are in the complete string and then use the =RIGHT function using the LEN minus the 9 (from the FIND function) to bring back the correct number of characters for your description.
If I confused you could PM and you could e-mail me the file and I could help. Or I could give you a phone number to call and discuss which is probably easier.
#6
Posted 06 June 2011 - 04:35 PM
#7
Posted 06 June 2011 - 04:35 PM
rajncajn, on 6/6/11 4:31pm, said:
=FIND(" ",A1,1) the result should be 9 I believe for your example. Then in Cell C1 do the following:
=LEFT(A1,(B1-1) this will then bring back the first 8 characters of A1 by taking the result of cell B1 which is 9 and subtracting 1 to get you the 8.
Capiche?
#8
Posted 06 June 2011 - 04:39 PM
JPT-V-300 JP-5 XFR DISCH
TO FILL MAIN
JPT-V-306
RESCUE BOAT ISOLATION
JPS-F-30
JP-5 SERVICE
FILTER / SEPARATOR
Edited by rajncajn, 06 June 2011 - 04:39 PM.
#9
Posted 06 June 2011 - 04:47 PM
rajncajn, on 6/6/11 4:39pm, said:
JPT-V-300 JP-5 XFR DISCH
TO FILL MAIN
JPT-V-306
RESCUE BOAT ISOLATION
JPS-F-30
JP-5 SERVICE
FILTER / SEPARATOR
#11
Posted 06 June 2011 - 04:54 PM
gbpfan1231, on 6/6/11 4:47pm, said:
JPT-V-306RESCUE BOAT ISOLATION
#12
Posted 06 June 2011 - 04:58 PM
=SUBSTITUTE(F5,"*",",")
Copy and paste in the address bar for the cell. BEFORE exiting cell, highlight the * and press alt+enter, then tab out of the cell. Your values should now be replaced with commas.
Copy all cells, then Paste Special.
Text to Columns with commas.
#13
Posted 06 June 2011 - 05:14 PM
rajncajn, on 6/6/11 4:54pm, said:
JPT-V-306RESCUE BOAT ISOLATION
What Lenny said might work but do you have more than one carriage return? Then the text to columns will still create two or more columns for your one description. Instead of replacing the carriage return with a comma like he said replace it with nothing - so instead of "," just use "" (basically two quotes stuck together.
#14
Posted 06 June 2011 - 05:21 PM
lennykravitz2004, on 6/6/11 4:58pm, said:
Copy and paste in the address bar for the cell. BEFORE exiting cell, highlight the * and press alt+enter, then tab out of the cell. Your values should now be replaced with commas.
Copy all cells, then Paste Special.
Text to Columns with commas.
I need a beer...
#15
Posted 06 June 2011 - 05:36 PM
JPS-F-30
JP-5 SERVICE
FILTER / SEPARATOR
This is what I end up with using Lenny's formula:
=SUBSTITUTE(A3,"*"," ") where "*" is the carriage return
JPS-F-30 JP-5 SERVICE FILTER / SEPARATOR
And this is what I get using gbpfan's formula:
=FIND(" ",B3,1)
=LEFT(B3,(C3-1))
JPS-F-30
Now all I need is the formula to get me this:
JP-5 SERVICE FILTER / SEPARATOR
#16
Posted 06 June 2011 - 06:41 PM
rajncajn, on 6/6/11 5:36pm, said:
JPS-F-30
JP-5 SERVICE
FILTER / SEPARATOR
This is what I end up with using Lenny's formula:
=SUBSTITUTE(A3,"*"," ") where "*" is the carriage return
JPS-F-30 JP-5 SERVICE FILTER / SEPARATOR
And this is what I get using gbpfan's formula:
=FIND(" ",B3,1)
=LEFT(B3,(C3-1))
JPS-F-30
Now all I need is the formula to get me this:
JP-5 SERVICE FILTER / SEPARATOR
=RIGHT(B3,Len(B3)-FIND(" ",B3,1))
I think the above should do it if I have the cells right - you can do the formulas in multiple columns if it makes it easier than embedding multiple formulas into one formula.
#17
Posted 06 June 2011 - 08:12 PM
#18
Posted 06 June 2011 - 08:18 PM
rajncajn, on 6/6/11 8:12pm, said:
#19
Posted 14 July 2011 - 10:33 AM
If cell B has any of the same info as cell A then highlight it. For instance:
|My name is Mud | Your name is Mud |
becomes
My name is Mud | Your name is Mud |
#21
Posted 14 July 2011 - 02:58 PM
gbpfan1231, on 7/14/11 12:35pm, said:
#22
Posted 14 July 2011 - 04:03 PM
=ISNUMBER(FIND(A2,B2)) This will give you a True if the contents of column A are found in the contents of column B, however, note that it is case sensitive and must be an exact match
ETA: Once you do that and copy the formula for the entirety of column C, simply filter for "FALSE" on column C and you will have all of the items that do not match
ETA2: If you don't need the search to be case sensitive, use this formula instead: =ISNUMBER(SEARCH(A2,B2))
Edited by Big Country, 14 July 2011 - 04:09 PM.
#23
Posted 14 July 2011 - 04:29 PM
Big Country, on 7/14/11 4:03pm, said:
=ISNUMBER(FIND(A2,B2)) This will give you a True if the contents of column A are found in the contents of column B, however, note that it is case sensitive and must be an exact match
ETA: Once you do that and copy the formula for the entirety of column C, simply filter for "FALSE" on column C and you will have all of the items that do not match
ETA2: If you don't need the search to be case sensitive, use this formula instead: =ISNUMBER(SEARCH(A2,B2))
#24
Posted 14 July 2011 - 04:55 PM
Big Country, on 7/14/11 4:03pm, said:
=ISNUMBER(FIND(A2,B2)) This will give you a True if the contents of column A are found in the contents of column B, however, note that it is case sensitive and must be an exact match
ETA: Once you do that and copy the formula for the entirety of column C, simply filter for "FALSE" on column C and you will have all of the items that do not match
ETA2: If you don't need the search to be case sensitive, use this formula instead: =ISNUMBER(SEARCH(A2,B2))
#25
Posted 14 July 2011 - 05:39 PM
gbpfan1231, on 7/14/11 2:55pm, said:
Wish I could take the credit, but it was the result of a successful Google search and making some minor modifications to the samples presented.
But, this may well be something that I can use in the future, especially in some FF related research.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users












