Text file (CSV) Problem

Joe_Toz

New Member
Joined
Apr 2, 2004
Messages
42
Hi

I have a large text file (CSV) and need to identify cells that do not contain “r:”
What I would like to do is have an “X” placed in the cell to the left of each text cell that does not contain “r:”
Here is a sample:

SALERNO, Stacy; 1968 (See Fruiterman, Mrs. Stacy H.) SALFELDER, Gary; 1962; Plumbing Inspector; r: 123 Cypress Ln., Palm Spgs., FL 55555, 555 555-9681; Kathy; Stacie
*SALOMON, Philocles; 1996; Electrician. Dolphin Electric; r: 1234 Poseidon Pl., Lake Worth, FL 55555, 555 555-5555
*SAMA, Anthony (Tony); 1973; CEO, TMI TradeX, 555 SE Port St. Lucie Blvd., Port St. Lucie, FL 55555, 555 555-5555; r: 555555 Lands End Chase, Port St. Lucie, FL 55555, 555 555-5555; Margaret (Meg); Alison, Patrick, Anthony Jr., Nicholas;
SAULTER, Sparkle S.; 1996; Student-History Educ., Florida A&M; r: 555 Barber Ave., Lake Worth, FL 55555, 555 555-5555 SAULTER, Stacey R.; 1983; Dietary Dir., Lakeside Health Ctr.; r: 555 Barbara Ave., Lake Worth, FL 55555, 555 555-5555; Crystal

Can anybody out there help?
I would appreciate it – thanks!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Is that a CSV or semi-colon seperated file? Either way, can't you open it up in Excel, do a text-to-columns (if needed) and examine column 5 (if I'm counting right).

=If(LEFT(E1,2)="r:","X","")
 
Upvote 0
Here's one that works where ever the Re: might be within the string, just in case. You will need to update the column references.

=IF(ISERROR(FIND("Re:",A1,1)),"",FIND("Re:",A1,1))

HTH
Cal
 
Upvote 0
Hey, Lake Worth. Hello from Boynton.

Try this:
Book1
ABCD
3 SALERNO, Stacy; r: 1968 (See Fruiterman, Mrs. Stacy H.) SALFELDER
4X*SALOMON, Philocles; 1996; Electrician. Dolphin Electric; 1234 Poseidon Pl
5X*SAMA, Anthony (Tony); 1973; CEO, TMI TradeX, 555 SE Port St. Lucie Blvd., Port St. Lucie
6 SAULTER, Sparkle S.; r: 1996; Student-History Educ., Florida A&M; r: 555 Barber Ave.,
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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