Deleting part of a cell

jaybeen

New Member
Joined
Apr 4, 2002
Messages
1
Hello,

I want to delete part of a cell in Excel. For example if a cell had the data "BlueGreen" how would I delete the "Blue" bit just to leave the "Green" bit behind? Surely there is an easier way then physically deleting the first part in each cell??? I have about 4000 cells to work on!!
Please help and regards,
Jaybeen.
 
Could I use this type of formula to delete the dashes from a column of social security numbers?

Example: 123-45-6789 turned into 123456789.

The original cells are text cells, so I need to make the program recognize that they're numbers. The normal formatting of cells functions do not work.
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Why would you want to change them? You will have a problem with any SSN that begins with one or more 0.
 
Upvote 0
I need to validate them versus another column of SSN's using a Countif formula. However, as this column is considered text (not numbers), the Countif won't work.
 
Upvote 0
Count works with numbers while Counta works with text but countif works with both text and values. What type of formula are you using?
 
Upvote 0
It's a very simple: countif(a:a, b2) where column A is filled with SSN's that are numbers and column B has what looks to be numbers but is actually text such as (123-45-6789). It seems that if the dashes are typed, rather than placed there by the format cells function, the program doesn't think it's really a number.

I could use the countif for two columns of SSN as text...or two columns of SSN as numbers, but not a combination, it seems.
 
Upvote 0
I think you would be wiser if you converted your numbers back to SSN. Do you have ASAP utilities? There are several routines in there that would do the trick for you.
 
Upvote 0
Here is another option for you.
Assume values in column D and text in column E
=COUNTIF(E:E,TEXT(D5,"000-00-0000"))
 
Upvote 0
It might be wiser first to check that column A consists solely of numbers and column B consists solely of text.
(And then try my formula.)
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,851
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top