Flag first date in a series from a database

NewUser2

Board Regular
Joined
Jan 27, 2015
Messages
54
Hi, need some help. Below is an example of my data which comes from a very large database. Column B is a date that can be when the client renewed their terms with us (if the client is listed more than once) or originally signed with us (if listed just once). I want to put a formula in column C that will flag which row is the earliest date on file with that client. It's probably a simple IF(AND(MIN type of function, but it's not coming to me... Any suggestions?

If my data was nicely organized as shown below it would be easy to just flag the first mention of the client ID #. But it isn't.

A B
1 Client Date
2 111 01/1/2016
3 111 01/1/2017
4 111 01/1/2018
5 122 01/1/2016
6 122 02/23/2017
7 122 06/1/2017
8 444 5/1/2017
9 445 9/1/2018
10 446 10/1/2015
11 446 01/1/2016
12 446 08/1/2016
13 446 01/1/2017
14 446 10/1/2018
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hello,

I added oldest and newest in this example using MIN and MAX:

Excel Workbook
ABCDE
1ClientDateClient111
21111/1/2016Oldest Date1/1/2016
31111/1/2017Newest Date1/1/2018
41111/1/2018
51221/1/2016
61222/23/2017
71226/1/2017
84445/1/2017
94459/1/2018
1044610/1/2015
114461/1/2016
124468/1/2016
134461/1/2017
1444610/1/2018
Sheet1
 
Upvote 0
Perfect, thanks!




Hello,

I added oldest and newest in this example using MIN and MAX:

Sheet1

ABCDE
Client
Oldest Date
Newest Date

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:85.6px;"><col style="width:85.6px;"><col style="width:28px;"><col style="width:105.6px;"><col style="width:85.6px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]1[/TD]
[TD="align: center"]Client[/TD]
[TD="align: center"]Date[/TD]

[TD="align: center"]111[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]2[/TD]
[TD="align: center"]111[/TD]
[TD="align: center"]1/1/2016[/TD]

[TD="align: center"]1/1/2016[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]
[TD="align: center"]111[/TD]
[TD="align: center"]1/1/2017[/TD]

[TD="align: center"]1/1/2018[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]
[TD="align: center"]111[/TD]
[TD="align: center"]1/1/2018[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]5[/TD]
[TD="align: center"]122[/TD]
[TD="align: center"]1/1/2016[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]6[/TD]
[TD="align: center"]122[/TD]
[TD="align: center"]2/23/2017[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]7[/TD]
[TD="align: center"]122[/TD]
[TD="align: center"]6/1/2017[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]8[/TD]
[TD="align: center"]444[/TD]
[TD="align: center"]5/1/2017[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]9[/TD]
[TD="align: center"]445[/TD]
[TD="align: center"]9/1/2018[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]10[/TD]
[TD="align: center"]446[/TD]
[TD="align: center"]10/1/2015[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]11[/TD]
[TD="align: center"]446[/TD]
[TD="align: center"]1/1/2016[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]12[/TD]
[TD="align: center"]446[/TD]
[TD="align: center"]8/1/2016[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]13[/TD]
[TD="align: center"]446[/TD]
[TD="align: center"]1/1/2017[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]14[/TD]
[TD="align: center"]446[/TD]
[TD="align: center"]10/1/2018[/TD]

</tbody>

Spreadsheet Formulas
CellFormula
E2{=MIN(IF(A2:A14=E1,B2:B14))}
E3{=MAX(IF(A2:A14=E1,B2:B14))}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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