returning a cell's value and a corresponding value

F

Force Flow

I'm attaching the exel file I'm having problems with.

I'm trying to write a forumula that will list the top 5 "TotalCharges"
in the "reservations" worksheet, and the corrisponding "CustNo". Yo
can see what I attempted on the "totalcharges" worksheet.

I can return the actual "TotalCharges" values, but not th
corresponding "CustNo" that goes along with it. Is there a way to d
this so it works?

Or, can this not be done with formulas? Should it somehow be done in
pivot table? I'm stumped.

Thanks in advanc

+-------------------------------------------------------------------
|Filename: reservation data.zip
|Download: http://www.excelforum.com/attachment.php?postid=4063
+-------------------------------------------------------------------
 
B

Biff

Hi!

On the Reservations sheet:

Use another column, column L. Give it the header Rank.

In L2 enter this formula and copy down to L46:

=RANK(K2,$K$2:$K$46)+COUNTIF($K$2:K2,K2)-1

In the Topcharges sheet:

Enter this formula in C2 and copy down to C6:

=INDEX(reservations!C$2:C$46,MATCH(A2,reservations!L$2:L$46,0))

The top 5 customers are all C0005.

Biff
 
F

Force Flow

Biff said:
Hi!

On the Reservations sheet:

Use another column, column L. Give it the header Rank.

In L2 enter this formula and copy down to L46:

=RANK(K2,$K$2:$K$46)+COUNTIF($K$2:K2,K2)-1

In the Topcharges sheet:

Enter this formula in C2 and copy down to C6:

=INDEX(reservations!C$2:C$46,MATCH(A2,reservations!L$2:L$46,0))

The top 5 customers are all C0005.

Biff

"Force Flow" <[email protected]>
wrote
in message

Great! Thanks! That did the trick
 

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