List customers with specific purchase on 2nd page of an excel spreadsheet

hsl9999

New Member
Joined
Mar 18, 2018
Messages
10
I have a spreadsheet with 2 pages. The first page has 3 columns. Column 1 is the customer name, column 2 is the item purchased and column 3 is the item price. We may have from1 to 100 customers a day, so the list could be somewhat long. I have a second page titled "Autobiography". I would like it to list all the customers who purchased that particular item.
So if Sheet 1 looked something like this:

1. John Doe Chocolate $5.00
2. Jane Edward Backpack $25.00
3. Ann Rand Autobiography $10.00
4. Edd Wynn Autobiography $10.00
5. Jack Jones Pencil Pack $2.00

So the second sheet named "Autobiography" should have a list like the following:

1. Ann Rand
2. Edd Wynn

Total Sold: 2

How do I create the second sheet?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Something like this.

Autobiography sheet
Book1
AB
1ProductAutobiography
2
3Names
4Ann Rand
5Edd Wynn
Autobiography
Cell Formulas
RangeFormula
A4:A5A4=IFERROR(INDEX(Sheet1!$A$2:$A$6,AGGREGATE(15,6,(ROW(Sheet1!$A$2:$A$6)-ROW(Sheet1!$A$2)+1)/(Sheet1!$B$2:$B$6=$B$1),ROWS($A$4:A4))),"")


Sheet 1
Book1
ABC
1NameItemPrice
2John DoeChocolate$5.00
3Jane EdwardBackpack$25.00
4Ann RandAutobiography$10.00
5Edd WynnAutobiography$10.00
6Jack JonesPencil Pack$2.00
Sheet1
 
Upvote 0
Thank you. One question. How do I set the formula to a range of cells as you put in your example. When I placed the formula in Cell A4 I just got the answer "Ann Rand"
 
Upvote 0
Assuming I understand the question. You just need to copy the formula down the rows as needed. Also, change the ranges to match your data if needed.
 
Upvote 0
Alternatively, fill this down:

Book2
A
1Name
2Ann Rand
3Jack Jones
Autobiography
Cell Formulas
RangeFormula
A2:A3A2=IFERROR(INDEX(Cust!A2:A6,SMALL(IF("Autobiography"=Cust!B2:B6,ROW(Cust!A2:A6)-ROW(Cust!$A$2)+1),ROW(1:1))),"")
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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