Changing Woridng in a List

rtb2399

New Member
Joined
Dec 14, 2010
Messages
19
I am using Office 2007, and I have a long list of names that match another long list of names that I am trying to use for a Vlookup formula with one expection, the names need to add two spaces before the wording begins. The cell where I want ex: (Cars) too looke like ( Cars) is B6. Is it possible to do a formula that adds two spaces infront on the "C" in Cars for example so I do not have to go through and manually change all these listings. Thank you so much for any assitance you can provide and if you have any further questions please feel free to ask them and I will get back to you.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
=vlookup(" "&A1,tabledata,column,false)
this will add the two spaces for the data starting from area
 
Upvote 0
Welcome to the Board!

Instead of adding spaces to your text, I'd use TRIM to remove them. This way you don't have to worry about how many spaces you might have.

HTH,
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,134
Members
452,890
Latest member
Nikhil Ramesh

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