large function result as reference for offset function

Z

Z

Dears,

I used to use LARGE function to bring the 5 largest deals from another
worksheet (database, same workbook), but I want to bring also the related
cells (same row), so I would be able to show, for instance, company, close,
date and amount.
How can I extract the cell name reference to retrieve it in another cell?
 
R

RagDyer

You could use the Index/Match combination.

Col A = Cust
Col B = Addr
Col C = Dollar Amt.
Col D = Date
Col E = SalesPerson

Row1 = Headers

For Cust name:
=INDEX(Sheet2!A2:E100,MATCH(LARGE(Sheet2!C2:C100,1),Sheet2!C2:C100,0),1)
Last "1" in the formula is the column number of datalist to return,

SO - Date would be:
=INDEX(Sheet2!A2:E100,MATCH(LARGE(Sheet2!C2:C100,1),Sheet2!C2:C100,0),4)

AND - SalesPerson would be:
=INDEX(Sheet2!A2:E100,MATCH(LARGE(Sheet2!C2:C100,1),Sheet2!C2:C100,0),5)

Amount is therefore:
=LARGE(Sheet2!C2:C100,1)

You would of course change the Large() formula to return the 2nd, 3rd, etc.
largest.

Since you say that you've used Large() before, you're familiar with what
happens with duplicates.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top