Truncation problem

nnadimi19

Board Regular
Joined
Jul 14, 2002
Messages
240
Good Morning;

I have the following rows:

Annie Pledger vs. Baptist Hospital
Ricardo Martinez, individually and as next friend of Ricardo Martinez, Jr. and Natividad Lujan, as temporary administrator of the Estate of Maria De La Luz Martinez vs. Germinal Nunez, M.D., Pedro A. Ortega, M.D., Tracie M. Kelley, R.N., Junita Gomes, L.V.N., Herminia Lopez, L.V.N. and Yseleta General Hospital, a corporation, jointly and severally
Guillermo Alvidrez vs. St. Joseph Hospital of El Paso, Texas, a non-profit corporation
Virginia A. Wilson vs. Haltom General Hospital and T&R Clinic, a professional association
Mary Dorothy Griffin vs. Medina Memorial Hospital


when I use the following command"=RIGHT(A2,FIND(" vs. ",A2)) I get the following result :
tist Hospital
M.D., Pedro A. Ortega, M.D., Tracie M. Kelley, R.N., Junita Gomes, L.V.N., Herminia Lopez, L.V.N. and Yseleta General Hospital, a corporation, jointly and severally
profit corporation
sional association
na Memorial Hospital
If you notice the first few characters after the 'vs." is missing. How do I go about fixing this problem.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
The FIND command will find where the text starts. Therefore, you are not returning enough data. Try this...

=RIGHT(A2,FIND(" vs. ",A2)+5)
 
Upvote 0
You did'nt mention what you are trying to do when you made the formula =right(a2,find("vs"... . Did you put it in all the row of each line?
 
Upvote 0
Tommygun;

Will I have to change the +5 to different number based on each row????? or is there a way to make it genaric.
 
Upvote 0
TommyGun said:
The FIND command will find where the text starts. Therefore, you are not returning enough data. Try this...

=RIGHT(A2,FIND(" vs. ",A2)+5)

I think it should be:

=RIGHT(A2,LEN(A2)-FIND(" vs. ",A2)-4)
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,852
Members
449,194
Latest member
HellScout

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