Hi, I have a list of transactions that I need to code each line with a location code. In each transaction there is a minimum of 4 lines (expense, AP, and 2 sales taxes lines) however only the expense line is already tagged with the location code. Trying to figure out a formula to tag the other lines with the same location code. The transaction numbers are unique for each transaction so this is the item to point at in a formula I believe.
Example:
line 1: Trans #1 10.00 expense location 1
line 2: Trans #1 0.50 GST location blank
line 3: Trans #1 1.00 QST location blank
line 4: Trans #1 11.50 AP location blank
line 5: Trans #1 10.00 expense location 5
line 6: Trans #1 0.50 GST location blank
line 7: Trans #1 1.00 QST location blank
line 8: Trans #1 11.50 AP location blank
Thank you in advance for your help.
Example:
line 1: Trans #1 10.00 expense location 1
line 2: Trans #1 0.50 GST location blank
line 3: Trans #1 1.00 QST location blank
line 4: Trans #1 11.50 AP location blank
line 5: Trans #1 10.00 expense location 5
line 6: Trans #1 0.50 GST location blank
line 7: Trans #1 1.00 QST location blank
line 8: Trans #1 11.50 AP location blank
Thank you in advance for your help.