Hi All,
I have to produce a spreadsheet that is "readable" for our new banking system.
They have asked us to make a concatenated cell with a specified string of data inside. But they have also been very specific on how many spaces need to be in each field.
So i might have to have a 0 in one cell but it will need 4 blanks after it. The next cell might need the customer ID which in our case has 6 characters but the whole field length needs to be 10 long, so 4 blanks.
How would i do this? I don't want to have blank columns with spaces in and do (A1 & A2) to add the spaces on the end, i want it more clever than that so it looks at C2 (in my example) and knows that the field needs to be 4 long. One of character and 3 of blank.
I have attached a little example of what they want and what i have got and i have put comments on the cells that i need to change.
I want to write VBA for this eventually as we will be pulling our data out of our accounts packagke by OLE then run the macro and it will sort the exported data into a format that the bank can read. But i need to know how to add the blank spaces in first.
Thank you!!
Emmaly
Bookmarks