Get rid of £
-
- 5StarLounger
- Posts: 964
- Joined: 08 Nov 2012, 17:54
Get rid of £
Has anyone had rouble with this at all?
Lisa
Lisa
-
- Administrator
- Posts: 78633
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- 5StarLounger
- Posts: 964
- Joined: 08 Nov 2012, 17:54
Re: Get rid of £
Hi Hans.. beste wensen!
No. I mean the pound sign. =alt 0163.
I tried to put an image here and don't know how to do that apoligies. trying to get something together to to send.
The "new" snipping tool isn't helping eithee
aapologies onc
e more.
Lisa
No. I mean the pound sign. =alt 0163.
I tried to put an image here and don't know how to do that apoligies. trying to get something together to to send.
The "new" snipping tool isn't helping eithee
aapologies onc
e more.
Lisa
-
- Administrator
- Posts: 78633
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Get rid of £
An image is just an attachment; you can add it in the Full Editor.
A £ sign can be part of text values. You can remove it as follows:
- Select the range.
- Press Ctrl+H to activate the Replace dialog.
- Enter £ in the 'Find what' box and leave the 'Replace with' box empty.
- If you don't see the search options, click 'Options >>'.
- Make sure that the 'Match entire cell contents' check box is not ticked.
- Click 'Replace All'.
For number values, the £ sign can be part of the number format. You cannot remove those using the Replace dialog. Instead, select the cells, and set the number format to General or to Number.
A £ sign can be part of text values. You can remove it as follows:
- Select the range.
- Press Ctrl+H to activate the Replace dialog.
- Enter £ in the 'Find what' box and leave the 'Replace with' box empty.
- If you don't see the search options, click 'Options >>'.
- Make sure that the 'Match entire cell contents' check box is not ticked.
- Click 'Replace All'.
For number values, the £ sign can be part of the number format. You cannot remove those using the Replace dialog. Instead, select the cells, and set the number format to General or to Number.
Best wishes,
Hans
Hans
-
- 4StarLounger
- Posts: 588
- Joined: 14 Nov 2012, 16:06
Re: Get rid of £
In my universe (codepage 437 or 850) I found the pound at alt-156. (you might try GWK )
-
- 5StarLounger
- Posts: 964
- Joined: 08 Nov 2012, 17:54
Re: Get rid of £
Hans . here is a screenshot of whay'ts happening.
The string also contained a 0160-nbsp. I got rid of that with sustitute.
IMy eventual aim is to extrcact the two nubers and multiply.
Still can't sseem to get the snippet inline. Awwww.
Lisa.
The string also contained a 0160-nbsp. I got rid of that with sustitute.
IMy eventual aim is to extrcact the two nubers and multiply.
Still can't sseem to get the snippet inline. Awwww.
Lisa.
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 78633
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Get rid of £
See Tip: adding an attachment
Could you attach a small sample workbook (without sensitive data) with some of these £ cells in it?
Could you attach a small sample workbook (without sensitive data) with some of these £ cells in it?
Best wishes,
Hans
Hans
-
- 4StarLounger
- Posts: 588
- Joined: 14 Nov 2012, 16:06
Re: Get rid of £
Enter C3
In the formula bar: select the Pound symbol / copy
In the replace window: paste in the 'find what' box
'press' Replace all.
In the formula bar: select the Pound symbol / copy
In the replace window: paste in the 'find what' box
'press' Replace all.
-
- 5StarLounger
- Posts: 964
- Joined: 08 Nov 2012, 17:54
Re: Get rid of £
Hey Hans Did you get the xlsm file please?
Lisa
Lisa
-
- 5StarLounger
- Posts: 964
- Joined: 08 Nov 2012, 17:54
Re: Get rid of £
@SNB.. didn't work,
Lisa
Lisa
-
- Administrator
- Posts: 78633
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Get rid of £
Best wishes,
Hans
Hans
-
- 5StarLounger
- Posts: 964
- Joined: 08 Nov 2012, 17:54
Re: Get rid of £
Anoer try.
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 78633
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Get rid of £
Replace works for me:
Make sure that the check "Match entire cell contents" is not ticked.
Make sure that the check "Match entire cell contents" is not ticked.
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans
Hans
-
- 5StarLounger
- Posts: 964
- Joined: 08 Nov 2012, 17:54
Re: Get rid of £
Hy are the numbers all red? The original column was copied directly from a web page,
Lisa.
Lisa.
-
- Administrator
- Posts: 78633
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- 5StarLounger
- Posts: 818
- Joined: 24 Jan 2010, 15:56
-
- 5StarLounger
- Posts: 964
- Joined: 08 Nov 2012, 17:54
Re: Get rid of £
Not done with this.
Please try replace. £ to @
TIA
Lisa
Please try replace. £ to @
TIA
Lisa
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 78633
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Get rid of £
In-place:
Result:
As before, Replace makes the formatting of the cells uniform.
Result:
As before, Replace makes the formatting of the cells uniform.
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans
Hans
-
- Administrator
- Posts: 78633
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Get rid of £
A macro to restore the formatting:
Code: Select all
Sub Replace£()
Dim rng As Range
Dim cel As Range
Dim pos As Long
Application.ScreenUpdating = False
Set rng = Range(Range("C6"), Range("C6").End(xlDown))
rng.Replace What:="£", Replacement:="@", LookAt:=xlPart
For Each cel In rng
pos = InStr(cel.Value, Chr(160))
cel.Characters(Start:=pos + 1).Font.Color = vbWhite
Next cel
Application.ScreenUpdating = True
End Sub
Best wishes,
Hans
Hans