Creating a list of customers from an excel sheet

magpie2000k

Board Regular
Joined
Sep 13, 2013
Messages
196
I have a spread sheet where in:

column a I have the customer name
in column i I have the sale person that sold to that customer.

I am trying to list under the sales persons name on another sheet all the customers they have sold to.

any help would be great ( I wish to avoid VB if poss)
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Id definately use a pivot table to do this. Very simple indeed. A formula is going to be very heavy on the spreadsheet and slow it down.
 
Upvote 0
Something like this:


Book1
AI
1CustomerSalesperson
2customer 1salesperson 1
3customer 2salesperson 2
4customer 3salesperson 1
5customer 4salesperson 3
6customer 5salesperson 4
7customer 6salesperson 2
8customer 7salesperson 2
9customer 8salesperson 3
10customer 9salesperson 2
11customer 10salesperson 1
Sheet1



Book1
ABCD
1salesperson 1salesperson 2salesperson 3salesperson 4
2customer 1customer 2customer 4customer 5
3customer 3customer 6customer 8
4customer 10customer 7
5customer 9
Sheet2
Cell Formulas
RangeFormula
A2{=IFERROR(INDEX(Sheet1!$A$2:$A$100,SMALL(IF(Sheet1!$I$2:$I$100=A$1,ROW(Sheet1!$I$2:$I$100)-ROW(Sheet1!$I$2)+1),ROWS(A$2:A2))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.


Copy formula across and down as necessary.

WBD
 
Upvote 0
Hi The pivot table is how we do it at the moment but it is more I want from this than I have explained so I am trying WBD method.

But getting nowhere.

In column a as I said I have cusomer name
In column I I have sales persons name
In column H I have the sales value
and in column P I have the next contact date (ie when we are due to call that customer back.)
Colum G is quotation date (when we sent the quote to the customer)
Column J is quote status (which would need to be in status of "live" to be listed)

I am trying to create a dialy pipeline for each sales person ie a table for each sales person[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Josh (sales person)[/TD]
[TD]value[/TD]
[TD]Call back date time[/TD]
[TD]Days since quoted[/TD]
[/TR]
[TR]
[TD]abc Taxis[/TD]
[TD]£500[/TD]
[TD]31/01/2018 2pm[/TD]
[TD]14 days[/TD]
[/TR]
[TR]
[TD]bishops school[/TD]
[TD]£1500[/TD]
[TD]31/01/2018 10am[/TD]
[TD]31 days[/TD]
[/TR]
[TR]
[TD]brighton hospital[/TD]
[TD]£2290[/TD]
[TD]31/01/2018 3pm[/TD]
[TD]58 days[/TD]
[/TR]
[TR]
[TD]and so on[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Keep in mind We have 50 sales staff so the list is quite big when looking at all quotes
But I only need to pull the results for 1 team which is 20 staff and ignore all other quotes.

Does that make sense, all the other columns hold data such as email address of customer and phone numbers postcode etc which I dont need to pull.

Maybe I should have explaine more fully before but thought If I could work out the basic I could build on it.

Thanks in advance

Jon

One further thing The report is exported daily from our crm in csv format to our server so I want to look at that csv using a seperate report spread sheet make sense?
 
Last edited:
Upvote 0

Book1
AGHIJP
1Customer NameQuotation DateValueSalesPersonStatusNext Contact Date
2ABC Taxis17/01/2018£500JoshLive31/1/2018 2pm
3Poundland11/01/2018£1JoshDead31/1/2018 12pm
4Bishops School31/12/2017£1,500JoshLive31/1/2018 10am
5Brighton Hospital04/12/2017£2,290JoshLive31/1/2018 3pm
Sheet1



Book1
ABCD
1JoshValueCall back date timeDays since quoted
2ABC Taxis£50031/1/2018 2pm14 days
3Bishops School£1,50031/1/2018 10am31 days
4Brighton Hospital£2,29031/1/2018 3pm58 days
Sheet2
Cell Formulas
RangeFormula
A2{=IFERROR(INDEX(Sheet1!$A$2:$A$100,SMALL(IF(Sheet1!$I$2:$I$100=A$1,IF(Sheet1!$J$2:$J$100="Live",ROW(Sheet1!$I$2:$I$100)-ROW(Sheet1!$I$2)+1)),ROWS(A$2:A2))),"")}
B2{=IFERROR(INDEX(Sheet1!$H$2:$H$100,SMALL(IF(Sheet1!$I$2:$I$100=A$1,IF(Sheet1!$J$2:$J$100="Live",ROW(Sheet1!$I$2:$I$100)-ROW(Sheet1!$I$2)+1)),ROWS(A$2:A2))),"")}
C2{=IFERROR(INDEX(Sheet1!$P$2:$P$100,SMALL(IF(Sheet1!$I$2:$I$100=A$1,IF(Sheet1!$J$2:$J$100="Live",ROW(Sheet1!$I$2:$I$100)-ROW(Sheet1!$I$2)+1)),ROWS(A$2:A2))),"")}
D2{=IFERROR(TODAY()-INDEX(Sheet1!$G$2:$G$100,SMALL(IF(Sheet1!$I$2:$I$100=A$1,IF(Sheet1!$J$2:$J$100="Live",ROW(Sheet1!$I$2:$I$100)-ROW(Sheet1!$I$2)+1)),ROWS(A$2:A2)))&" days","")}
Press CTRL+SHIFT+ENTER to enter array formulas.


WBD
 
Upvote 0
unless I am going mad I have made a mistake in the second formula

{=IFERROR(INDEX('Tutorcare_Quotation_31_01_2018(1).csv'!$H$2:$H$6035,SMALL(IF('Tutorcare_Quotation_31_01_2018(1).csv'!$I$2:$I$6035=C$2,IF('Tutorcare_Quotation_31_01_2018(1).csv'!$J$2:$J$6035="Live",ROW('Tutorcare_Quotation_31_01_2018(1).csv'!$I$2:$I$6035)-ROW('Tutorcare_Quotation_31_01_2018(1).csv'!$I$2:$I$6035)+1)),ROWS(C$3:C3))),"")}

C2 being the cell with the name in ie in example Josh.

Basically every quote is returning the value of the first one.
 
Upvote 0
Rich (BB code):
{=IFERROR(INDEX('Tutorcare_Quotation_31_01_2018(1).csv'!$H$2:$H$6035,SMALL(IF('Tutorcare_Quotation_31_01_2018(1).csv'!$I$2:$I$6035=C$2,IF('Tutorcare_Quotation_31_01_2018(1).csv'!$J$2:$J$6035="Live",ROW('Tutorcare_Quotation_31_01_2018(1).csv'!$I$2:$I$6035)-ROW('Tutorcare_Quotation_31_01_2018(1).csv'!$I$2)+1)),ROWS(C$3:C3))),"")}

WBD
 
Upvote 0
Yeah that worked and could see where I went wrong these are what I have for the next

{=IFERROR(INDEX('Tutorcare_Quotation_31_01_2018(1).csv'!$P$2:$P$6035,SMALL(IF('Tutorcare_Quotation_31_01_2018(1).csv'!$I$2:$I$6035=C$2,IF('Tutorcare_Quotation_31_01_2018(1).csv'!$J$2:$J$6035="Live",ROW('Tutorcare_Quotation_31_01_2018(1).csv'!$I$2:$I$6035)-ROW('Tutorcare_Quotation_31_01_2018(1).csv'!$I$2)+1)),ROWS(C$3:C3))),"")}

The last one I have working fine

Thank you so much will save me hours when built. one last favour can I remove the word days from the last formula so I can sum them.,..
 
Last edited:
Upvote 0
OK I need to add an extra condition to the first formula
{=IFERROR(INDEX(database.csv!$B$2:$B$6035,SMALL(IF(database.csv!$I$2:$I$6035=C$2,IF(database.csv!$J$2:$J$6035="Live",ROW(database.csv!$I$2:$I$6035)-ROW(database.csv!$I$2)+1)),ROWS(C$2:C2))),"")}

I want to include only return a value if the date in cells database.csv!$J$2:$J$6035=TODAY

Does that make sense
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top