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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

texasalynn

Well-known Member
Joined
May 19, 2002
Messages
8,458
=vlookup(" "&A1,tabledata,column,false)
this will add the two spaces for the data starting from area
 
Upvote 0

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
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,191,166
Messages
5,985,051
Members
439,935
Latest member
Monty238

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