making new option value column from 2 columns

i have this excel file which contains 2 columns of city names and city code i wanted to make from this 2 columns a new column with this  code

<option value=960>city name </option>

and i found this useful formula (thanks to jamal)

=CONCATENATE(“<option value=”,A2,”>”,B2,”</option>”)

when u put this code in the new column and copy them to the rest of the rows by pressing twice on the + sign .

Advertisements

Leave a Reply :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s