Sequence number.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,461
Office Version
  1. 2007
Platform
  1. Windows
Hello,

I'm looking for a formula that will return a column of numbers into a row with each number separated by a comma and one space like the example below, the column can go up to thousands of numbers.
It's to copy and past into a program software.
Thank you

225588.png
 
Hello, it might not be a very elegant solution but could e.g. use the following formula & copy it from bottom (B14) to top and then use the result in B3 (also you might probably need to pay attention to the maximum number of characters in a single cell):

Excel Formula:
=IF(B15="",A14,A14&", "&B15)
 
Upvote 0
Hi hagia_sofia, thank you for the help it works.
Could you have a formula that would return only the top row ?
 
Upvote 0
Many thanks for the feedback. I am not sure whether it is possible with Excel 2007 but maybe somebody will have an idea (an alternative that comes to my mind is to copy the values into Word and replacing ends of paragraphs).
 
Upvote 0
Here's a UDF:
VBA Code:
Function transposeit(r As Range)
transposeit = Join(Application.Transpose(r), ", ")
End Function

Then you could do something like:
=TRANSPOSEIT(A3:A14)
 
Upvote 0

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