Hi there,
I have this dataset column A, B and C. In column B are Batch Number (e.g. 26848), Fund number (e.g. 400), and activity Codes, (e.g. 2ACQCOLD01).
The idea is to create a code when column B has an activity code. For example 26848 is the Batch number, then 400 is the fund number, now the next value is the activity code 2ACQCOLD01, at this point the code is 26848,400,2ACQCOLD01. However, things become tricky as we move down. The next item is Batch 26849, and fund 81 and at 2IRSPOG a code is displayed (26849,81,2IRSPOG), but there is another fund and activity code and the code should be - 26849,85,2IRSPOG.
I have done this manually but is there a feature or code that can automate this?
Notes - the Batch numbers could be anything, the Fund numbers are known, the activity numbers always start with either a 1 or 2 or 3 or 4 or 5.
Any futher questions please do not hesitate to ask.
Thanks.
Amish
[TABLE="width: 328"]
<TBODY>[TR]
[TD][/TD]
[TD]26848
[/TD]
[TD="align: right"]200
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]400
[/TD]
[TD="align: right"]200
[/TD]
[/TR]
[TR]
[TD]26848,400,2ACQCOLD01
[/TD]
[TD]2ACQCOLD01
[/TD]
[TD="align: right"]200
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]26849
[/TD]
[TD="align: right"]857
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]81
[/TD]
[TD="align: right"]75
[/TD]
[/TR]
[TR]
[TD]26849,81,2IRSPOG
[/TD]
[TD]2IRSPOG
[/TD]
[TD="align: right"]75
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]85
[/TD]
[TD="align: right"]75
[/TD]
[/TR]
[TR]
[TD]26849,85,2IRSPOG
[/TD]
[TD]2IRSPOG
[/TD]
[TD="align: right"]75
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]355
[/TD]
[TD="align: right"]100
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2RETWARM3
[/TD]
[TD="align: right"]100
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]400
[/TD]
[TD="align: right"]607
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2IRIMPACT
[/TD]
[TD="align: right"]100
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2IRSAD
[/TD]
[TD="align: right"]240
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2IRSPOG
[/TD]
[TD="align: right"]167
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2RETP22
[/TD]
[TD="align: right"]100
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]26850
[/TD]
[TD="align: right"]540
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]356
[/TD]
[TD="align: right"]300
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1MGTRUST
[/TD]
[TD="align: right"]300
[/TD]
[/TR]
</TBODY>[/TABLE]
I have this dataset column A, B and C. In column B are Batch Number (e.g. 26848), Fund number (e.g. 400), and activity Codes, (e.g. 2ACQCOLD01).
The idea is to create a code when column B has an activity code. For example 26848 is the Batch number, then 400 is the fund number, now the next value is the activity code 2ACQCOLD01, at this point the code is 26848,400,2ACQCOLD01. However, things become tricky as we move down. The next item is Batch 26849, and fund 81 and at 2IRSPOG a code is displayed (26849,81,2IRSPOG), but there is another fund and activity code and the code should be - 26849,85,2IRSPOG.
I have done this manually but is there a feature or code that can automate this?
Notes - the Batch numbers could be anything, the Fund numbers are known, the activity numbers always start with either a 1 or 2 or 3 or 4 or 5.
Any futher questions please do not hesitate to ask.
Thanks.
Amish
[TABLE="width: 328"]
<TBODY>[TR]
[TD][/TD]
[TD]26848
[/TD]
[TD="align: right"]200
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]400
[/TD]
[TD="align: right"]200
[/TD]
[/TR]
[TR]
[TD]26848,400,2ACQCOLD01
[/TD]
[TD]2ACQCOLD01
[/TD]
[TD="align: right"]200
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]26849
[/TD]
[TD="align: right"]857
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]81
[/TD]
[TD="align: right"]75
[/TD]
[/TR]
[TR]
[TD]26849,81,2IRSPOG
[/TD]
[TD]2IRSPOG
[/TD]
[TD="align: right"]75
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]85
[/TD]
[TD="align: right"]75
[/TD]
[/TR]
[TR]
[TD]26849,85,2IRSPOG
[/TD]
[TD]2IRSPOG
[/TD]
[TD="align: right"]75
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]355
[/TD]
[TD="align: right"]100
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2RETWARM3
[/TD]
[TD="align: right"]100
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]400
[/TD]
[TD="align: right"]607
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2IRIMPACT
[/TD]
[TD="align: right"]100
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2IRSAD
[/TD]
[TD="align: right"]240
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2IRSPOG
[/TD]
[TD="align: right"]167
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2RETP22
[/TD]
[TD="align: right"]100
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]26850
[/TD]
[TD="align: right"]540
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]356
[/TD]
[TD="align: right"]300
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1MGTRUST
[/TD]
[TD="align: right"]300
[/TD]
[/TR]
</TBODY>[/TABLE]