ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   SMALL function (https://www.excelbanter.com/excel-discussion-misc-queries/127892-small-function.html)

[email protected]

SMALL function
 
Hello my friends.

I have 2 columns of data in Excel. Column A is a list of names, all the
names have more than one entry. Column B is filled with various dates.
I want to use the data on this sheet to populate a cell on another
sheet with the oldest date in column B for any selected name.

I know the SMALL function will have to be in there somewhere, but this
one has got me beat. Any ideas out there?


pinmaster

SMALL function
 
Hi,

Try:

=MAX(IF(Sheet1!A1:A100="john",Sheet1!B1:B100))
or assuming A1 is the cell the name "John" then
=MAX(IF(Sheet1!A1:A100=A1,Sheet1!B1:B100))
enter using Ctrl+Shift+Enter

HTH
Jean-Guy


" wrote:

Hello my friends.

I have 2 columns of data in Excel. Column A is a list of names, all the
names have more than one entry. Column B is filled with various dates.
I want to use the data on this sheet to populate a cell on another
sheet with the oldest date in column B for any selected name.

I know the SMALL function will have to be in there somewhere, but this
one has got me beat. Any ideas out there?



Ron Coderre

SMALL function
 
Try something like this:

With
Sheet1
A1:B10 contains names in Col_A, dates in Col_B

Sheet2
B1: (a name to match)

This formula returns the largest date on Sheet1 that is associated with the
name referenced in cell B1

C1:=MAX(INDEX((Sheet1!A1:A10=B1)*(Sheet1!B1:B10),0 ))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


" wrote:

Hello my friends.

I have 2 columns of data in Excel. Column A is a list of names, all the
names have more than one entry. Column B is filled with various dates.
I want to use the data on this sheet to populate a cell on another
sheet with the oldest date in column B for any selected name.

I know the SMALL function will have to be in there somewhere, but this
one has got me beat. Any ideas out there?




All times are GMT +1. The time now is 10:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com