#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default changing cell fomats

What is the formula to change cell formats from "112234501" to look like "
112-23-4501"
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default changing cell fomats

Custom Format as
###-##-####

"Darryl" wrote:

What is the formula to change cell formats from "112234501" to look like "
112-23-4501"

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default changing cell fomats

Format, Cells, Number tab, Special, SSN

Darryl wrote:

What is the formula to change cell formats from "112234501" to look like "
112-23-4501"


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default changing cell fomats

I have two columns that should have the same numbers. One columns is
formatted like "112234501" and the other "112-23-4501" I am trying to find
the rows that do not match. So, I want to create a formula in a third column
to show cells in rows that do not match. When I change the format as you
suggest, the true value remains 112234501. And, 112234501 (minus)
112-23-4501 cannot be calculated. Can you help?

"Sheeloo" wrote:

Custom Format as
###-##-####

"Darryl" wrote:

What is the formula to change cell formats from "112234501" to look like "
112-23-4501"

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default changing cell fomats

If the nos like 112-23-4501 are in Col B (and numbers to compare in Col A)
then in
C1 enter
=(SUBSTITUTE(B1,"-",""))*1

Now you can use something like
=IF(A1=C1,"Same","Different") in D1 to compare

Copy down the formulae to the end of your data set


"Darryl" wrote:

I have two columns that should have the same numbers. One columns is
formatted like "112234501" and the other "112-23-4501" I am trying to find
the rows that do not match. So, I want to create a formula in a third column
to show cells in rows that do not match. When I change the format as you
suggest, the true value remains 112234501. And, 112234501 (minus)
112-23-4501 cannot be calculated. Can you help?

"Sheeloo" wrote:

Custom Format as
###-##-####

"Darryl" wrote:

What is the formula to change cell formats from "112234501" to look like "
112-23-4501"



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default changing cell fomats

You can check to see if the number 112234501 appears in the other column as text
(112-23-4501) by using:

=isnumber(match(text(a1,"000-00-0000"),b:b,0))

Where A1 holds a number and column B holds the text values.

You could use the same kind of thing to see if the text values show up in the
number column:

=isnumber(match(--substitute(b1,"-",""),a:a,0))

The =substitute() will remove the hyphens, but return text values
The -- will coerce the text values to a real number.

Darryl wrote:

I have two columns that should have the same numbers. One columns is
formatted like "112234501" and the other "112-23-4501" I am trying to find
the rows that do not match. So, I want to create a formula in a third column
to show cells in rows that do not match. When I change the format as you
suggest, the true value remains 112234501. And, 112234501 (minus)
112-23-4501 cannot be calculated. Can you help?

"Sheeloo" wrote:

Custom Format as
###-##-####

"Darryl" wrote:

What is the formula to change cell formats from "112234501" to look like "
112-23-4501"


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default changing cell fomats

thanks much

"Sheeloo" wrote:

If the nos like 112-23-4501 are in Col B (and numbers to compare in Col A)
then in
C1 enter
=(SUBSTITUTE(B1,"-",""))*1

Now you can use something like
=IF(A1=C1,"Same","Different") in D1 to compare

Copy down the formulae to the end of your data set


"Darryl" wrote:

I have two columns that should have the same numbers. One columns is
formatted like "112234501" and the other "112-23-4501" I am trying to find
the rows that do not match. So, I want to create a formula in a third column
to show cells in rows that do not match. When I change the format as you
suggest, the true value remains 112234501. And, 112234501 (minus)
112-23-4501 cannot be calculated. Can you help?

"Sheeloo" wrote:

Custom Format as
###-##-####

"Darryl" wrote:

What is the formula to change cell formats from "112234501" to look like "
112-23-4501"

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
Cell colors or text color changing when date in cell gets closer. Chase Excel Worksheet Functions 5 October 19th 06 08:57 AM
Changing one cell colour by inserting date in another cell JohannM Excel Worksheet Functions 3 September 4th 06 07:42 PM
changing a cell to changing the link Jared Excel Worksheet Functions 7 May 8th 06 08:41 AM
Changing a cell reference within a formula w/another cell tx12345 Excel Worksheet Functions 5 March 7th 06 01:52 AM
how do i record changing cell data (cell is dde linked) Morph Excel Discussion (Misc queries) 1 September 22nd 05 12:28 AM


All times are GMT +1. The time now is 05:10 AM.

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"