A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

returning a cell's value and a corresponding value



 
 
Thread Tools Display Modes
  #1  
Old November 24th, 2005, 05:08 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default returning a cell's value and a corresponding value


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". You
can see what I attempted on the "totalcharges" worksheet.

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

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

Thanks in advance


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

--
Force Flow
------------------------------------------------------------------------
Force Flow's Profile: http://www.excelforum.com/member.php...o&userid=29054
View this thread: http://www.excelforum.com/showthread...hreadid=487855

  #2  
Old November 24th, 2005, 06:16 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default returning a cell's value and a corresponding value

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" wrote
in message ...

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". You
can see what I attempted on the "totalcharges" worksheet.

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

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

Thanks in advance


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

--
Force Flow
------------------------------------------------------------------------
Force Flow's Profile:
http://www.excelforum.com/member.php...o&userid=29054
View this thread: http://www.excelforum.com/showthread...hreadid=487855



  #3  
Old November 24th, 2005, 08:17 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default returning a cell's value and a corresponding value


Biff Wrote:
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"
wrote
in message
...

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".

You
can see what I attempted on the "totalcharges" worksheet.

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

do
this so it works?

Or, can this not be done with formulas? Should it somehow be done in

a
pivot table? I'm stumped.

Thanks in advance



+-------------------------------------------------------------------+
|Filename: reservation data.zip

|
|Download: http://www.excelforum.com/attachment.php?postid=4063

|

+-------------------------------------------------------------------+

--
Force Flow

------------------------------------------------------------------------
Force Flow's Profile:
http://www.excelforum.com/member.php...o&userid=29054
View this thread:

http://www.excelforum.com/showthread...hreadid=487855


Great! Thanks! That did the trick


--
Force Flow
------------------------------------------------------------------------
Force Flow's Profile: http://www.excelforum.com/member.php...o&userid=29054
View this thread: http://www.excelforum.com/showthread...hreadid=487855

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:48 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.