Clear cell contents based on a range with special characters (underscores)

naryfa

New Member
Joined
Sep 5, 2014
Messages
7
Hello,

I'm a total noob when it comes to this so please be kind.

I need to clear the contents (not delete rows) in a column A. The contents contain numbers from 1 to 99, as well as something like 5ú _ or 4_ as well as ===== , ------- or occasional G.

These are generated by an old DOS program, and need to be cleared because they confuse the person reading the report.

In other words. Only the 3-digit numbers need to remain, everything else must go. Of course, this can be done by hand, but this report has to be run every day, and the sample below is just 1/20th of the whole thing...

Any help would be appreciated.

Sample:



A
DRI
D
===
111
---
116
G
G
65
---
122
65
---
129
4_
---
135
65
---
223
---
242
G
G
65
---
285
65
---
509
65
---
524
65
---
556
DR
D
===
---
558
G
G
---

---
DR
D
===
691
G
===
(c)

<colgroup><col></colgroup><tbody>
</tbody>
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,849
Office Version
  1. 365
Platform
  1. Windows
Try in B1:

=IFERROR(IF(AND(A1/100>=1,A1/100<10),A1,""),"")

This will leave the cell appear blank if it sees anything other than a 3 digit number.
 
Upvote 0

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,849
Office Version
  1. 365
Platform
  1. Windows
Just fill down as far as you have data in "A". Hover cursor on bottom right hand corner of cell then double click.
 
Upvote 0

Forum statistics

Threads
1,191,119
Messages
5,984,758
Members
439,909
Latest member
daigoku

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
Top