L
Legacy 262721
Guest
Hi.
I'm trying to process Customer History data in a spreadsheet for importing into another program, but the problem is that I have the same customers appearing in multiple rows if we've serviced them more than once. What I need is to have a single row for each customer, with their data for 2010, 2011, 2012 and 2013 contained within that single row.
I've tried using IFs and VLOOKUPs, but I only get the first instance of the customer appearing in the result, not the entry appropriate to the year of the column. I've been reading about array formulas, but the explanations are as baffling as the formulas themselves. Can anybody advise?
This is what I have:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Job Number[/TD]
[TD]Job Date[/TD]
[TD]Invoice Date[/TD]
[/TR]
[TR]
[TD]Geoff[/TD]
[TD]100[/TD]
[TD]01/01/10[/TD]
[TD]02/01/10[/TD]
[/TR]
[TR]
[TD]Geoff[/TD]
[TD]103[/TD]
[TD]01/01/11[/TD]
[TD]02/01/11[/TD]
[/TR]
[TR]
[TD]Tim[/TD]
[TD]102[/TD]
[TD]02/02/10[/TD]
[TD]03/02/10[/TD]
[/TR]
[TR]
[TD]Tim[/TD]
[TD]104[/TD]
[TD]03/03/11[/TD]
[TD]04/03/11[/TD]
[/TR]
</tbody>[/TABLE]
This is what I need:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]2010 Job number[/TD]
[TD]2010 Job date[/TD]
[TD]2010 Invoice date[/TD]
[TD]2011 Job Number[/TD]
[TD]2011 Job Date[/TD]
[TD]2011 Invoice date[/TD]
[/TR]
[TR]
[TD]Geoff[/TD]
[TD]100[/TD]
[TD]01/01/10[/TD]
[TD]02/01/10[/TD]
[TD]103[/TD]
[TD]01/01/11[/TD]
[TD]02/01/11[/TD]
[/TR]
[TR]
[TD]Tim[/TD]
[TD]102[/TD]
[TD]02/02/10[/TD]
[TD]03/02/10[/TD]
[TD]104[/TD]
[TD]03/03/11[/TD]
[TD]04/03/11[/TD]
[/TR]
</tbody>[/TABLE]
I'd do it manually, but there are over 3,000 entries and it would take a far too long. Any help would be appreciated.
I'm trying to process Customer History data in a spreadsheet for importing into another program, but the problem is that I have the same customers appearing in multiple rows if we've serviced them more than once. What I need is to have a single row for each customer, with their data for 2010, 2011, 2012 and 2013 contained within that single row.
I've tried using IFs and VLOOKUPs, but I only get the first instance of the customer appearing in the result, not the entry appropriate to the year of the column. I've been reading about array formulas, but the explanations are as baffling as the formulas themselves. Can anybody advise?
This is what I have:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Job Number[/TD]
[TD]Job Date[/TD]
[TD]Invoice Date[/TD]
[/TR]
[TR]
[TD]Geoff[/TD]
[TD]100[/TD]
[TD]01/01/10[/TD]
[TD]02/01/10[/TD]
[/TR]
[TR]
[TD]Geoff[/TD]
[TD]103[/TD]
[TD]01/01/11[/TD]
[TD]02/01/11[/TD]
[/TR]
[TR]
[TD]Tim[/TD]
[TD]102[/TD]
[TD]02/02/10[/TD]
[TD]03/02/10[/TD]
[/TR]
[TR]
[TD]Tim[/TD]
[TD]104[/TD]
[TD]03/03/11[/TD]
[TD]04/03/11[/TD]
[/TR]
</tbody>[/TABLE]
This is what I need:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]2010 Job number[/TD]
[TD]2010 Job date[/TD]
[TD]2010 Invoice date[/TD]
[TD]2011 Job Number[/TD]
[TD]2011 Job Date[/TD]
[TD]2011 Invoice date[/TD]
[/TR]
[TR]
[TD]Geoff[/TD]
[TD]100[/TD]
[TD]01/01/10[/TD]
[TD]02/01/10[/TD]
[TD]103[/TD]
[TD]01/01/11[/TD]
[TD]02/01/11[/TD]
[/TR]
[TR]
[TD]Tim[/TD]
[TD]102[/TD]
[TD]02/02/10[/TD]
[TD]03/02/10[/TD]
[TD]104[/TD]
[TD]03/03/11[/TD]
[TD]04/03/11[/TD]
[/TR]
</tbody>[/TABLE]
I'd do it manually, but there are over 3,000 entries and it would take a far too long. Any help would be appreciated.