Remove a* from cells

MARK858

MrExcel MVP
Joined
Nov 12, 2010
Messages
16,816
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hi there, I have some cells that are from an imported text file which have a set of numbers but occasionally they have a * next to the number.
Is there a way of removing the 8 without affecting the values?
Obviously the numbers without the * are right aligned and the numbers with a * are left aligned. A sample is below

46320
45599
8270
41116
46306
46308
42606
43878*
41536
3276
45776
3670
47583

Any suggestions to try please
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Assuming your data starts in cell A1 and that the asterisk shows up only as the very last character.

=if(iserror(search("*",a1)),a1,value(left(a1,search("*",a1)-1)))
 
Upvote 0
Cheers Brian, how stupid am I. Needed a squiggle in front. Thanks again
Thanks to dmash as well for the formula
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,733
Members
452,939
Latest member
WCrawford

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