Formula to get last date if customer is XXX

drom

Well-known Member
Joined
Mar 20, 2005
Messages
543
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Hi and thanks in advance!


I would like to know when was last time I have had a meeting with a customer

I am using a table where Customer is in column A A5:500 and DATES are in column B B5:B500
Header in my tables are in:
  • A4 = Customer
  • B4 = DATE
Name of the table Table1 (in case needed)
  • A4:B500

I would like to have the formula in B2

Usually the dates are sorted in ascending order (in case matters)

I am going to put the target Customer in A2 and get the desired result in B2

I do not want to use VBA/Macros
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
If your data is sorted:

Book0001.xlsm
AB
1Customer?Result:
2Jason2/7/2024
3
4CustomerDate
5Frank the Tank2/1/2024
6Jason2/2/2024
7Edward Scissorhands2/3/2024
8Jason2/4/2024
9Freddy Kruger2/5/2024
10Jack the Ripper2/6/2024
11Jason2/7/2024
Sheet10
Cell Formulas
RangeFormula
B2B2= MAXIFS(B5:B500,A5:A500,"="&A2)
 
Upvote 0
Solution
Hi and thanks in advance!


I would like to know when was last time I have had a meeting with a customer

I am using a table where Customer is in column A A5:500 and DATES are in column B B5:B500
Header in my tables are in:
  • A4 = Customer
  • B4 = DATE
Name of the table Table1 (in case needed)
  • A4:B500

I would like to have the formula in B2

Usually the dates are sorted in ascending order (in case matters)

I am going to put the target Customer in A2 and get the desired result in B2

I do not want to use VBA/Macros
Any feedback Drom?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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