taz23340
Active Member
- Joined
- Jun 11, 2003
- Messages
- 336
hi guys,
been out of work for while so havent asked some help, but in a new job that i am helping organize from spreadsheets.
i have two or three ?`s that i was not able to find an answer in the search option.
im converting a file that has one column of part numbers and beside it the price.
all this is pulled from an as400 database.
we have set up a macro to arrange all the columns in the order we need as well as any formating.
what happens is that when pulled from the database some of the part numbers end up all in one cell, which is because they belong to one store so we know why it happens but we right now are manually inserting the corresponding amount of rows to go along with them and manually splitting the numbers and such. i know hard to explain without picture or html but this server wont allow me to do that.
so this is it i have a cell in column a that has lets say anywhere from 1 to ten 4-digit numbers and a few columns over is its price. what i would like to do is create a formula or macro or code to automatically recognize how many numbers in the cell (all seperated by spaces) and create those same number of rows below it so for example if i had 1 till 10 so 0001 0002 0003 0004 etc in the cell they would now be in the same colum. in a new row that did not overwrite a cell with the same issue below it.
i have tried the text to column and then transpose but that is many steps as must create the rows and all that.
i also would like that the total price that is in that first cell a few over so lets say 100$ for the 10 numbers to get divided into the amount of rows evenly, so would end up 10 in each cell below the price.
maybe this will take two seperate codes but if yall could help me this would save us a good few hours a week maybe even a days work a week
thanks
taz
been out of work for while so havent asked some help, but in a new job that i am helping organize from spreadsheets.
i have two or three ?`s that i was not able to find an answer in the search option.
im converting a file that has one column of part numbers and beside it the price.
all this is pulled from an as400 database.
we have set up a macro to arrange all the columns in the order we need as well as any formating.
what happens is that when pulled from the database some of the part numbers end up all in one cell, which is because they belong to one store so we know why it happens but we right now are manually inserting the corresponding amount of rows to go along with them and manually splitting the numbers and such. i know hard to explain without picture or html but this server wont allow me to do that.
so this is it i have a cell in column a that has lets say anywhere from 1 to ten 4-digit numbers and a few columns over is its price. what i would like to do is create a formula or macro or code to automatically recognize how many numbers in the cell (all seperated by spaces) and create those same number of rows below it so for example if i had 1 till 10 so 0001 0002 0003 0004 etc in the cell they would now be in the same colum. in a new row that did not overwrite a cell with the same issue below it.
i have tried the text to column and then transpose but that is many steps as must create the rows and all that.
i also would like that the total price that is in that first cell a few over so lets say 100$ for the 10 numbers to get divided into the amount of rows evenly, so would end up 10 in each cell below the price.
maybe this will take two seperate codes but if yall could help me this would save us a good few hours a week maybe even a days work a week
thanks
taz