Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default simple cell formating question.

Ok so i have a column with cells like this:

Persons name - Number

I want to create soemthing that will automatically change it to this:

Number

there are different names and different numbers so im not sure how to go
about it.

Any help would be great
thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default simple cell formating question.

=--RIGHT(A2,LEN(A2)-Find("-",A2)-2)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Ewing25" wrote in message
...
Ok so i have a column with cells like this:

Persons name - Number

I want to create soemthing that will automatically change it to this:

Number

there are different names and different numbers so im not sure how to go
about it.

Any help would be great
thanks!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default simple cell formating question.

sorry im not sure where to put that?

If i put it in a cell it just gives me zero and it rejects it in VBA

"Bob Phillips" wrote:

=--RIGHT(A2,LEN(A2)-Find("-",A2)-2)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Ewing25" wrote in message
...
Ok so i have a column with cells like this:

Persons name - Number

I want to create soemthing that will automatically change it to this:

Number

there are different names and different numbers so im not sure how to go
about it.

Any help would be great
thanks!




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default simple cell formating question.

Just kidding i figured it out

Thanks! worked perfectly

"Ewing25" wrote:

sorry im not sure where to put that?

If i put it in a cell it just gives me zero and it rejects it in VBA

"Bob Phillips" wrote:

=--RIGHT(A2,LEN(A2)-Find("-",A2)-2)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Ewing25" wrote in message
...
Ok so i have a column with cells like this:

Persons name - Number

I want to create soemthing that will automatically change it to this:

Number

there are different names and different numbers so im not sure how to go
about it.

Any help would be great
thanks!




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple cell formating question Metafreak Excel Worksheet Functions 4 July 7th 08 05:06 AM
CELL LOCATION!! SIMPLE QUESTION!!!! HERNAN Excel Discussion (Misc queries) 3 October 18th 06 06:55 PM
Simple question - auto populate cells - dependent on other cell value. David Smithz Excel Discussion (Misc queries) 2 June 18th 06 01:15 PM
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM
Question on custom formating cell excel_naive[_3_] Excel Programming 11 April 16th 04 10:33 PM


All times are GMT +1. The time now is 06:08 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"