excel - find same names but with different addresses - excel

Ok I've been racking my brain about this but can't come up with a clean way of getting the data I need.
I have a large list of customer information. I am interested in finding out where customers have bought different items, the layout of my cells is like:
Customer Name, Customer Address, Product
Joe Bloggs, 123 The Avenue, Apples
Joe Bloggs, 123 The Avenue, Apples
Jim Smith, 456 The Road, Oranges
Jim Smith, 456 The Road, Apples
So in this case, I'm not interested in Joe Bloggs as he bought Apples both times. I'm interested in Jim as he bought Oranges AND Apples. Is there a helper column I could use to help me filter this data out? So, counting if the customer name and address appears more than once and if the products are different? Thanks.

the best way to do this is creating a pivot tabel wich is based on the customer and the product
then sort on amount of products
Succes
Toontje

Related

Excel Macro to filter direct/indirect reports

I am attempting to write a macro in Excel that is a bit complex (at least for me) to assist at work. I have a list of employees and their salary ranges and I want to be able to break the sheet up by managers and their direct/indirect reports. For example: John Smith is the VP and has 5 direct reports, I want the macro to grab the 5 ranges of those direct reports, but also the ranges of the direct reports (if any) of those 5 people. So John Smith would receive the salary ranges of all the people in this example, but Sam Jones would only receive his 2 direct reports and the 3 direct reports of Jane Doe as she is a direct report of Sam. Hopefully that somewhat makes sense! It can also delete any duplicate ranges (if career level, grade, zone, structure are the same for more than one person). One more, if it could please save the file under the name of the manager - thank you!
These would be the expected results when running the macro, in this example it would output 3 workbooks:
John Smith Output
Sam Jones Output
Jane Doe Output

How to ignore cell if it is blank?

I have 3 worksheets in a single workbook: Summary, Invoice, and Expense Report. In the Summary sheet list of data, I have named cells as shown below:
Customer_Name: customer name
Billing_Addr_1: 1st line of billing address
Billing_Addr_2: 2nd line of billing address
City_St_Zip: City, State or Province, and Postal Code]
I'd like the info on the Summary Page to generate the Invoice. Everything works fine for Customer_Name, Billing_Addr1 and City_St_Zip. I am having trouble handling customers who do not have a 2nd line of billing address.
If the customer doesn't have that second line (Suite 100 in this case) in the address, I want the invoice to simply skip it and show City_St_Zip.
For example:
with 2nd address line
John Doe Construction Co.
123 Main Street
Suite 100
Anytown USA 12345
without 2nd address
John Doe Construction Co.
123 Main Street
Anytown USA 12345
I have tried:
IF(ISBLANK(Billing_Addr2),City_St_Zip,Billing_Addr_2)
IF(ISBLANK(Summary!$D$15),City_St_Zip,Billing_Addr_2)
IF(ISBLANK(Summary!$D$15),City_St_Zip,Summary!$D$15)
IF(Summary!$D$15=0,City_St_Zip,Summary!$D$15)
I have looked in the help section in Excel itself and found it to be predictably obtuse and of zero help. I've done web searches about this problem and explored the results for quite some time and haven't found the answer. I realize that this is probably a very basic question and am embarrassed to be asking it, but can someone please point out my error?
Thanks in advance.

Count Unique Entries in a Month for Pivot Table

Good afternoon,
I'm currently working on setting up a pivot table for chart that outlines an Average Revenue per Person by Line Type. Using the pivot table, I can sort everything out, but when I try to get a count of person, it adds all instances of that person's name up. What I want is that if the person's name appears once in a month, all other instances in that month of the person's name are not counted. But during a new month, the person's name will appear once more. So, it is somewhat like a unique count, but only unique per month.
My excel table looks something like:
A B C D
Date Person Revenue Line Type
1/1/2015 John $100 Toy
1/6/2015 Phil $200 Toy
1/6/2015 Jane $25 Garden
1/7/2015 John $50 Electronics
1/25/2015 John $10 Electronics
2/1/2015 John $10 Toy
2/17/2015 Phil $30 Garden
2/20/2015 Bob $500 Electronics
2/21/2015 Jane $100 Garden
So, as you can see, a person's name can occur more than one time in a month, and in more than one month. Currently, the code I am using for my helper column (E) is:
=1/COUNTIF($B:$B,B2)
This has only been giving me a count of patients throughout the entire year, not taking new months into account. I also have attempted this formula:
=IF(SUMPRODUCT(($B$2:$B2=B2)*($A$2:$A2=A2))>1,0,1
This only counts values that occur on the same day. I've tried adding in MONTH() checks and such, and am only getting syntax errors. I'm not sure where to turn for this one. Thank you!
Thanks to #TomSharpe's advice, I added a helper column to concatenate Month/Date and the Patient's name like so:
=MONTH(A2)&"-"&B2
Then used the original formula (below) to COUNTIF divided by 1.
=1/COUNTIF($B:$B,B2)
This gave me exactly what I needed.
Thanks again!

Lookup with multiple criteria, one a MAX value

I am trying to lookup the LOCATION of an employee (NAME) and their MANAGER from the most recent month (largest month number) in a particular QUARTER in data like this:
NAME LOCATION MANAGER QUARTER MONTH
Ryan Smith Sioux Falls Rick James 3 7
Jane Doe Tampa Bobby Brown 3 7
John Rogers Tampa Tracy Lane 3 7
Ryan Smith Sioux Falls Rick James 3 8
Jane Doe Denver Thomas Craig 3 8
John Rogers Tampa Cody Davis 3 8
So if I know the name of the employee and the quarter I'm looking up, the results should display who their last manager was and the location they were in, as these may change month to month.
I have used an INDEX and MATCH array formula:
{=INDEX($B$2:$B$7,MATCH(A12,IF($D$2:$D$7=D12,$A$2:$A$7),0))}
but this just provides the first match and not necessarily the most recent month in that quarter. I attempted to include a MAX function which looked something like this:
{=INDEX($B$2:$B$7,MAX($E2:$E7,MATCH(A12,IF($D$2:$D$7=D12,$A$2:$A$7),0)))}
but that didn't quite get me there either.
What formula do I need to get this to work?
I think I'd choose a PivotTable for its versatility and speed:
I think a pivot table is probably the best option and can easily be modified with the filters when new entries are added to the underlying data. I was working on a solution with a formula, but it requires you to add a lookup column.
The formula for the lookup column is: =E6&" "&H6&" "&I6
I wasn't clear on how the OP was going to be "entering" his employee name and quarter, so I had to make an assumption that it would be in a separate column:
And the formula in column B (which is cumbersome) is:
=VLOOKUP(A6&" "&MAX(IF(H1:H100=NUMBERVALUE(RIGHT(A6,1)),I1:I100)),$D$6:$G$11,3,FALSE)&", managed by "&VLOOKUP(A6&" "&MAX(IF(H1:H100=NUMBERVALUE(RIGHT(A6,1)),I1:I100)),$D$6:$G$11,4,FALSE)
But it works, and as long as the lookup range is adjusted, is scaleable.

Excel Vertical and Horizontal view of cells

I am trying to create a booking system using Excel. I know this may not be the best option, however so far this is what I have come up with:
sheet1 with all customer details
sheet2 with all booking details
The customer id and name are ref to sheet2 so I don't have to type them again.
On sheet2 I have the customer name in column A and in Column B dates for different days laid out horizontally.
For example:
Customer Name Course 1 Course2 Course3
John Smith 01.01.2014 02.01.2014 03.01.2014
Bob Green 02.01.2014 03.01.2014 04.01.2014
The problem I am having at the moment is not being able to identify all customers who are booked on same date. For example if I want to see all the customers who are booked for 01.01.2014, how is that possible?
Any help will be great, or if you have better ideas about creating a booking systems suggestions are welcome.
You need to change your layout, then you can apply a filter. A better layout would be:
Customer Name Course Name Date
John Smith Course 1 01.01.2014
John Smith Course 2 02.01.2014
John Smith Course 3 03.01.2014
Bob Green Course 1 02.01.2014
Bob Green Course 2 03.01.2014
Bob Green Course 3 04.01.2014
Then just apply a filter on the Date column. To see all people in the same course and on the same date, apply a filter to both the Course Name and Date columns.

Resources