Lookup results in a table based on multiple criteria and set number of occurrences

sabin348

New Member
Joined
Nov 2, 2013
Messages
25
Office Version
  1. 365
Platform
  1. Windows
This example is the most basic way I can describe it. I'm looking for a formula that counts how many times a person picked the same fruit and returns the date based on a specified occurrence value in another cell. In this example I'm looking for the date Billy and Joey picked a type of fruit for the 3rd time. Ideally, I'm trying to avoid helper columns and date proof it so the formula would still pick the right date even if the dates are out of order. The last part isn't crucial though. Any help is greatly appreciated!

Sample.xlsx
CDEFGHIJKLMN
3Count
4StudentFruit ChoiceDate3*When did they have their third piece of the same fruit?
5JoeyApple2/1/2024
6BillyOrange2/6/2024StudentAppleBananaGrapeOrangePlum
7BillyBanana2/7/2024Joey3/1/20243/19/20243/9/2024*expected results
8JoeyApple2/8/2024Billy3/21/2024
9JoeyApple3/1/2024
10BillyOrange3/7/2024
11JoeyGrape3/8/2024
12BillyPlum3/9/2024
13BillyOrange3/9/2024
14BillyGrape3/10/2024
15BillyOrange3/11/2024
16JoeyBanana3/12/2024
17JoeyApple3/13/2024
18JoeyGrape3/14/2024
19JoeyApple3/18/2024
20BillyApple3/19/2024
21JoeyGrape3/19/2024
22BillyApple3/20/2024
23BillyApple3/21/2024
24BillyApple3/22/2024
Sheet1
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Which version of XL are you using? How would you like to handle when there are not enough instances indicated?
 
Last edited:
Upvote 0
Based on your previous postings, you appear to have 365 (please update your profile) so the following is one way of doing it. I don't agree with your stated expected results (Joey hasn't had 3 oranges so why do you expect a date there?)

Book1
CDEFGHIJKL
3Count
4StudentFruit ChoiceDate3*When did they have their third piece of the same fruit?
5JoeyApple2/1/2024
6BillyOrange2/6/2024StudentAppleBananaGrapeOrangePlum
7BillyBanana2/7/2024Joey3/1/2024 3/19/2024  
8JoeyApple2/8/2024Billy3/21/2024  3/9/2024 
9JoeyApple3/1/2024
10BillyOrange3/7/2024
11JoeyGrape3/8/2024
12BillyPlum3/9/2024
13BillyOrange3/9/2024
14BillyGrape3/10/2024
15BillyOrange3/11/2024
16JoeyBanana3/12/2024
17JoeyApple3/13/2024
18JoeyGrape3/14/2024
19JoeyApple3/18/2024
20BillyApple3/19/2024
21JoeyGrape3/19/2024
22BillyApple3/20/2024
23BillyApple3/21/2024
24BillyApple3/22/2024
Sheet1
Cell Formulas
RangeFormula
H7:L8H7=IFERROR(SMALL(FILTER($E$5:$E$24,(($C$5:$C$24=$G7)*($D$5:$D$24=H$6))),$G$4),"")
 
Upvote 1
Solution
You're right I must've plugged it in under Joey by instead of Billy (exactly why a formula would be better suited for the job). I updated my profile too. I didn't even know that was an option. Thanks for the help!
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,952
Members
449,095
Latest member
nmaske

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