Hi All,
I export a P&L file from MYOB, however all my account/job numbers appear in the same coulmn as the account headings. I was wondering is there any way of sticking in a formula that can place these account numbers beside the relevant account categories for that account.
So currently the column looks like below. What i need to do is have a formula that puts the relevant account number in a column beside the account name. Note that not all account numbers follow the ####-### convention, some have a letter after the 7 digits.
[TABLE="width: 180"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Account Name[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Income[/TD]
[/TR]
[TR]
[TD]Consulting Fees[/TD]
[/TR]
[TR]
[TD]Total Income[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Cost Of Sales[/TD]
[/TR]
[TR]
[TD]Equipment Purchases[/TD]
[/TR]
[TR]
[TD]Laboratory Fees[/TD]
[/TR]
[TR]
[TD]Site Consumables[/TD]
[/TR]
[TR]
[TD]Travel Costs[/TD]
[/TR]
[TR]
[TD]Total Cost Of Sales[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Expense[/TD]
[/TR]
[TR]
[TD]M / V Expenses - Fuel[/TD]
[/TR]
[TR]
[TD]Travel & Accommodation[/TD]
[/TR]
[TR]
[TD]Total Expense[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Net Profit/(Loss)[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]2017-042[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Income[/TD]
[/TR]
[TR]
[TD]Consulting Fees[/TD]
[/TR]
[TR]
[TD]COGS + Markup[/TD]
[/TR]
[TR]
[TD]Total Income[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Net Profit/(Loss)[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Income[/TD]
[/TR]
[TR]
[TD]Consulting Fees[/TD]
[/TR]
[TR]
[TD]Total Income[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Cost Of Sales[/TD]
[/TR]
[TR]
[TD]Site Consumables[/TD]
[/TR]
[TR]
[TD]Total Cost Of Sales[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Expense[/TD]
[/TR]
[TR]
[TD]Office Supplies[/TD]
[/TR]
[TR]
[TD]Total Expense[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Net Profit/(Loss)[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]
And this is how I would like it to look:
[TABLE="width: 271"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Account Number[/TD]
[TD]Account Name[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]2016-423[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Income[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Consulting Fees[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Total Income[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Cost Of Sales[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Equipment Purchases[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Laboratory Fees[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Site Consumables[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Travel Costs[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Total Cost Of Sales[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Expense[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]M / V Expenses - Fuel[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Travel & Accommodation[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Total Expense[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Net Profit/(Loss)[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]2017-042[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2017-042[/TD]
[TD]Income[/TD]
[/TR]
[TR]
[TD]2017-042[/TD]
[TD]Consulting Fees[/TD]
[/TR]
[TR]
[TD]2017-042[/TD]
[TD]COGS + Markup[/TD]
[/TR]
[TR]
[TD]2017-042[/TD]
[TD]Total Income[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2017-042[/TD]
[TD]Net Profit/(Loss)[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]2016-016a[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Income[/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Consulting Fees[/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Total Income[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Cost Of Sales[/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Site Consumables[/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Total Cost Of Sales[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Expense[/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Office Supplies[/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Total Expense[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Net Profit/(Loss)
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
thanks in advance
I export a P&L file from MYOB, however all my account/job numbers appear in the same coulmn as the account headings. I was wondering is there any way of sticking in a formula that can place these account numbers beside the relevant account categories for that account.
So currently the column looks like below. What i need to do is have a formula that puts the relevant account number in a column beside the account name. Note that not all account numbers follow the ####-### convention, some have a letter after the 7 digits.
[TABLE="width: 180"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Account Name[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Income[/TD]
[/TR]
[TR]
[TD]Consulting Fees[/TD]
[/TR]
[TR]
[TD]Total Income[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Cost Of Sales[/TD]
[/TR]
[TR]
[TD]Equipment Purchases[/TD]
[/TR]
[TR]
[TD]Laboratory Fees[/TD]
[/TR]
[TR]
[TD]Site Consumables[/TD]
[/TR]
[TR]
[TD]Travel Costs[/TD]
[/TR]
[TR]
[TD]Total Cost Of Sales[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Expense[/TD]
[/TR]
[TR]
[TD]M / V Expenses - Fuel[/TD]
[/TR]
[TR]
[TD]Travel & Accommodation[/TD]
[/TR]
[TR]
[TD]Total Expense[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Net Profit/(Loss)[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]2017-042[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Income[/TD]
[/TR]
[TR]
[TD]Consulting Fees[/TD]
[/TR]
[TR]
[TD]COGS + Markup[/TD]
[/TR]
[TR]
[TD]Total Income[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Net Profit/(Loss)[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Income[/TD]
[/TR]
[TR]
[TD]Consulting Fees[/TD]
[/TR]
[TR]
[TD]Total Income[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Cost Of Sales[/TD]
[/TR]
[TR]
[TD]Site Consumables[/TD]
[/TR]
[TR]
[TD]Total Cost Of Sales[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Expense[/TD]
[/TR]
[TR]
[TD]Office Supplies[/TD]
[/TR]
[TR]
[TD]Total Expense[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]Net Profit/(Loss)[/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
[TR]
[TD]
And this is how I would like it to look:
[TABLE="width: 271"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Account Number[/TD]
[TD]Account Name[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]2016-423[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Income[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Consulting Fees[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Total Income[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Cost Of Sales[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Equipment Purchases[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Laboratory Fees[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Site Consumables[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Travel Costs[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Total Cost Of Sales[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Expense[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]M / V Expenses - Fuel[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Travel & Accommodation[/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Total Expense[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-423[/TD]
[TD]Net Profit/(Loss)[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]2017-042[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2017-042[/TD]
[TD]Income[/TD]
[/TR]
[TR]
[TD]2017-042[/TD]
[TD]Consulting Fees[/TD]
[/TR]
[TR]
[TD]2017-042[/TD]
[TD]COGS + Markup[/TD]
[/TR]
[TR]
[TD]2017-042[/TD]
[TD]Total Income[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2017-042[/TD]
[TD]Net Profit/(Loss)[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]2016-016a[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Income[/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Consulting Fees[/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Total Income[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Cost Of Sales[/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Site Consumables[/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Total Cost Of Sales[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Expense[/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Office Supplies[/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Total Expense[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2016-016a[/TD]
[TD]Net Profit/(Loss)
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
thanks in advance