Choosing earliest date customer purchased from us

DEW67

New Member
Joined
Apr 20, 2018
Messages
5
Hi,

I have a data table that shows customer number, customer name, month of purchase, date of purchase, purchase amount, etc. For each customer, I'm trying to find the date the client first purchased from us. I have the data in a simple table as well as a pivot table with month along the horizontal axis, customer number on the vertical axis and purchase value in the body of the table. What is the best way to identify the month and year the client first purchased from us.

Thanks in advance
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

mrshl9898

Well-known Member
Joined
Feb 6, 2012
Messages
1,773
You can use MINIFS to find the lowest date. Then =TEXT(Date,"Mmmm") and TEXT(Date,"YYYY") to get the month and year from it.

eg. Customers in column A, Dates in column B and Customer Number in E1.

=MINIFS(C:C,A:A,E1) is the date
=TEXT(MINIFS(C:C,A:A,E1),"Mmmm") is the month
=TEXT(MINIFS(C:C,A:A,E1),"YYYY") is the year

*Assuming your dates are dates and not strings
 

Watch MrExcel Video

Forum statistics

Threads
1,129,499
Messages
5,636,684
Members
416,935
Latest member
Atulcp

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
Top