Filling table with data, numbers don't come across correctly?

Lil2606

Board Regular
Joined
Jan 29, 2019
Messages
79
Hi all, sorry I may not managed to correctly phrase my initial question...

I have a Source Table with several columns (and hundreds of rows) from which "Code" and "Identifier" are causing troubles. In "Code" there is always a 2 digit number. (00, 01, 02 etc.) in "Identifier" there is always a 5 digit number (00000, 00001, 00002 etc.) and in my new table I'm supposed to have a "Product ID" put together from the "Code-Identifier" (00-00001, 01-00002 etc.)

I tried:

Code:
[COLOR=#333333][IMG]http://icons.iconarchive.com/icons/double-j-design/ravenna-3d/24/File-Copy-icon.png[/IMG]
<code style="margin: 0px; padding: 0px; font-style: inherit; font-weight: inherit; line-height: 12px;">Join(Array(SourceTable.ListRows(i).Range(1, SourceTable.ListColumns("Code").Index).Value, SourceTable.ListRows(i).Range(1, SourceTable.ListColumns("Identifier").Index).Value), "-")</code>[/COLOR]

but I get all sorts of numbers except for the ones in the SourceTable, eventough the format seems right. The SourceTable has a custom number formatting applied to display the zeros and such.. is that the problem?

Please help!

Posted on ExcelForum as well link:
https://www.excelforum.com/excel-pr...s-dont-come-across-correctly.html#post5126733
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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