To Look Up Last Updated Price Of Relative Fruit

raindrop
Lounger
Posts: 36
Joined: 04 Feb 2013, 06:22

To Look Up Last Updated Price Of Relative Fruit

Post by raindrop »

Hi !

I want to look up last updated price of relative fruit ( Drop down List C2 in Sheet1 )from sheet2 database.
Herewith I am attaching a sample. Can anybody help me?

Thank You.

Raindrop
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78531
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: To Look Up Last Updated Price Of Relative Fruit

Post by HansV »

In E3, as an array formula, confirmed with Ctrl+Shift+Enter:

=SUM((Sheet2!A2:A10=MAX(IF(Sheet2!B2:B10=C2,Sheet2!A2:A10)))*Sheet2!C2:C10)

(rest to follow)
Best wishes,
Hans

User avatar
HansV
Administrator
Posts: 78531
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: To Look Up Last Updated Price Of Relative Fruit

Post by HansV »

In F3, as an array formula (confirmed with Ctrl+Shift+Enter):

=DATEDIF(MAX(IF(Sheet2!B2:B10=C2,Sheet2!A2:A10)),I2,"Y")&" Years "&DATEDIF(MAX(IF(Sheet2!B2:B10=C2,Sheet2!A2:A10)),I2,"YM")&" Months "&DATEDIF(MAX(IF(Sheet2!B2:B10=C2,Sheet2!A2:A10)),I2,"MD")&" Days"

In G3, as an ordinary formula:

=COUNTIF(Sheet2!B2:B10,C2)
Best wishes,
Hans

raindrop
Lounger
Posts: 36
Joined: 04 Feb 2013, 06:22

Re: To Look Up Last Updated Price Of Relative Fruit

Post by raindrop »

Solved !..Thank You For Quick Reply Mr. Hans.

Regards
Raindrop