which formula?

hldemirkaya

New Member
Joined
Mar 19, 2010
Messages
5
SOURCE TABLE
TURKEY ANKARA
TURKEY ISTANBUL
TURKEY IZMIR
USA NEW YORK
USA WASHINGTON

which formula can i use to obtain a table as below?

TURKEY ANKARA - ISTANBUL - IZMIR
USA NEW YORK - WASHINGTON

ANOTHER SAMPLE:
SOURCE TABLE
A 1
A 16
A 45
B 12
B 80

TARGET TABLE
A 1 - 16 - 45
B 12 -80

Thank you very much for your attentions.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I cannot fully understand what you want.

With strings (text) we can concatenate them (join them together) so

You can have a formula like
=A1 &" - " &B1 &" - " &C1

or, to do the same thing
=CONCATENATE(A1," - ",B1," - ",C1)

You will see that cell references look like A1,B1,C1
Other text needs quotation character either side eg."text"

In the absence of another reply, and seeing this is your first message .........
If you do not receive a reply to your message after a couple of days you can reply to your own message (some just put "bump") to bring it to the top again.
You may think about changing it (we may not fully understand what you want).

If you put code in your message you would need to have some comments in it to say what you are trying to achieve and FORMAT IT CORRECTLY.

Our time is limited and some messages have too many questions, are not clear about what is wanted, or are just not readable.
My reply will now bring your message to the top again, so someone else may be able to help.
 
Upvote 0
Do you want ANKARA - ISTANBUL - IZMIR in a single cell or in cells of their own?

I am Facing Same Problem

Example
Excel Workbook
ABCDEFGHI
1nameLocationExpected Result
2HardeepDelhiHardeepDelhiNoidaGurgaon
3HardeepNoidaPardeepKanpurVaranasi
4HardeepGurgaonNeerajBangaloreChennai
5PardeepKanpur
6PardeepVaranasi
7NeerajBangalore
8NeerajChennai
Sheet1
Excel 2007

Regards
 
Upvote 0
May be this will help
Excel Workbook
ABCDEFGHI
1nameLocationExpected Result
2HardeepDelhiHardeepDelhiNoidaGurgaon
3HardeepNoidaPardeepKanpurVaranasi
4HardeepGurgaonNeerajBangaloreChennai
5PardeepKanpur
6PardeepVaranasi
7NeerajBangalore
8NeerajChennai
Sheet1
Excel 2010
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself
 
Upvote 0
May be this will help
Excel Workbook
ABCDEFGHI
1nameLocationExpected Result
2HardeepDelhiHardeepDelhiNoidaGurgaon
3HardeepNoidaPardeepKanpurVaranasi
4HardeepGurgaonNeerajBangaloreChennai
5PardeepKanpur
6PardeepVaranasi
7NeerajBangalore
8NeerajChennai
Sheet1
Excel 2010
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself



Wow!!!!!!!!


Thanks
 
Upvote 0
I tried this array formula and only get a return in column G. How do I get column(s) H, I, etc. to populate?

(AND, what is the purpose of "SMALL" in this formula? I tried switching it to "LARGE" and got the return of the row below.)

thanks for your help! still baffled...
 
Upvote 0
I tried this array formula and only get a return in column G. How do I get column(s) H, I, etc. to populate?

(AND, what is the purpose of "SMALL" in this formula? I tried switching it to "LARGE" and got the return of the row below.)

thanks for your help! still baffled...

SMALL is there to return the row numbers...

Care to post a small sample along with the desired results?
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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