[Log In ] [New Posts] []
Go Back   GotApex? Forums Forums > General Topics > Software, OS, and the Internet
User Name
Password

Reply
 
Thread Tools Search this Thread Display Modes
Old 09-10-2003, 10:25 AM   #1
kimchicowboy
Admiral
 
kimchicowboy's Avatar
 
Join Date: May 2000
Location: in the middle of the pacific ocean
Posts: 5,344
Send a message via AIM to kimchicowboy Send a message via MSN to kimchicowboy
some MS Excel help

hey everybody. been pretty busy. hope everyone is doing well. but i can use some help regarding some data.

in an excel spreadsheet, i have a bunch of data like:

XM_287097.1
XM_283717.1
XM_283707.1

now what i need help with is how to get rid of that last decimal place. i can't seem to do it the normal way because of the letters at the beginning. i refuse to do it one-by-one because i have over 10,000 of these entries.

thanks for any help!
kimchicowboy is offline   Reply With Quote
Old 09-10-2003, 10:32 AM   #2
coleslaw
Arrrhh!
 
coleslaw's Avatar
 
Join Date: May 2000
Location: LI NY
Posts: 6,807
Send a message via ICQ to coleslaw Send a message via AIM to coleslaw Send a message via Yahoo to coleslaw
I'm assuming that the format for these cells is "text", so you could then use the LEFT function, specifying the number of characters in that string that you want returned.

e.g. If these strings are in column B and in rows 1 - 10,000, you could create a separate column and then use the left function as follows:

=LEFT($B1,9)

Copy this forumula to the remaining 9,999 rows and then "Hide" the original column if needed.

__________________
A priest, a paladin and Varimathras walk into a bar...
coleslaw is offline   Reply With Quote
Old 09-10-2003, 10:35 AM   #3
ramazank2
Commander
 
ramazank2's Avatar
 
Join Date: Jun 2000
Location: Costa Mesa, CA
Posts: 1,295
That is realy good to know. Thanks
ramazank2 is offline   Reply With Quote
Old 09-10-2003, 10:42 AM   #4
kimchicowboy
Admiral
 
kimchicowboy's Avatar
 
Join Date: May 2000
Location: in the middle of the pacific ocean
Posts: 5,344
Send a message via AIM to kimchicowboy Send a message via MSN to kimchicowboy
thanks a lot coleslaw! a new scientific breakthrough may come out of this. hehe.
kimchicowboy is offline   Reply With Quote
Old 09-10-2003, 10:44 AM   #5
ski
Admiral
 
ski's Avatar
 
Join Date: Mar 2001
Location: Utah
Posts: 5,420
Now if only someone could help me in my Bluetooth thread!!

http://www.gotapex.com/forums/showth...threadid=65855 (Wanna help me with my Bluetooth project at work?)

ski is offline   Reply With Quote
Old 09-10-2003, 10:46 AM   #6
RoniMan
Admiral
 
RoniMan's Avatar
 
Join Date: Apr 2000
Location: Temple City, CA
Posts: 5,140
Send a message via AIM to RoniMan
i was going to say to split up your entries into two columns, one with the letters and the underscore, and one with the numbers (then you could format the way you wanted to previously), but coleslaws way is probably much easier.
RoniMan is offline   Reply With Quote
Old 09-10-2003, 11:06 AM   #7
coleslaw
Arrrhh!
 
coleslaw's Avatar
 
Join Date: May 2000
Location: LI NY
Posts: 6,807
Send a message via ICQ to coleslaw Send a message via AIM to coleslaw Send a message via Yahoo to coleslaw
Quote:
Originally posted by kimchicowboy
thanks a lot coleslaw! a new scientific breakthrough may come out of this. hehe.

I get 5% royalties.

I'm an Excel master because I use it basically every day. My favorite function is VLOOKUP and my life would be less exciting without pivot tables.
coleslaw is offline   Reply With Quote
Old 09-10-2003, 12:04 PM   #8
eSDee
Old Skooler Numba 1
 
eSDee's Avatar
 
Join Date: Nov 2000
Location: Diego
Posts: 10,063
Send a message via AIM to eSDee
The hack way to do it is go to Find->Replace, put .1 in the Find and leave the Replace field empty. Like I said, it's a a hack.
__________________
~~~~~~~~~~~~
3 days ~ Willie Nelson

3 days I dread to see arrive
3 days I hate to be alive
3 days filled with tears and sorrow
yesterday today and tomorrow
eSDee is offline   Reply With Quote
Old 09-10-2003, 01:22 PM   #9
CluelessSi
Rear Admiral Lower Half
 
CluelessSi's Avatar
 
Join Date: Jun 2000
Posts: 2,038
Send a message via AIM to CluelessSi
That way would work is we assume that all the fields are the same size =) and does this affect calculations at all? meaning will the .1 be calculated in even though it is not shown?
__________________
~Reality is an illusion~
1 Thess 5:16-18
CluelessSi is offline   Reply With Quote
Old 09-10-2003, 01:38 PM   #10
eSDee
Old Skooler Numba 1
 
eSDee's Avatar
 
Join Date: Nov 2000
Location: Diego
Posts: 10,063
Send a message via AIM to eSDee
Quote:
Originally posted by CluelessSi
That way would work is we assume that all the fields are the same size =) and does this affect calculations at all? meaning will the .1 be calculated in even though it is not shown?

The Hack version does nothing but do what it is told to do, which is get rid of the .1. The data might be ususable after the Hack is used, but that's not the Hack's worry. The Hack only cares about number 1....




eSDee is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 07:58 AM.