#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Need a formula

I need a formula which will return information from a cell which is not part
of the formula. Confused? I know I am.

Excerpt from table which is much, much larger.

NBMS codes Jul-08 Aug-08 Sep-08 Q1
20HR 0
21PC 1 1
22PR 0
A101 0

Table to create (which will then get a graph)

Top NBMS Code
1
2
3

Now, the LARGE formula will give me the top totals but how do I get the
other information such as the corresponding code?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Need a formula

If I understand correctly INDEX() MATCH() combination or a LOOKUP() will do.
Suppose you have the below table in Sheet1. Try the below formula in B2 in
place of xxx

Top NBMS Code
1 xxx
2 xxx
3 xxx

Assuming your larger table is in Sheet2 ColA with NBMS codes in ColA and the
lookup value (in this case 1) in colB

=INDEX(Sheet2!$A$1:$A$10,MATCH(A1,Sheet2!$B$1:$B$1 0,0))

If this post helps click Yes
---------------
Jacob Skaria


"Dragonkindred" wrote:

I need a formula which will return information from a cell which is not part
of the formula. Confused? I know I am.

Excerpt from table which is much, much larger.

NBMS codes Jul-08 Aug-08 Sep-08 Q1
20HR 0
21PC 1 1
22PR 0
A101 0

Table to create (which will then get a graph)

Top NBMS Code
1
2
3

Now, the LARGE formula will give me the top totals but how do I get the
other information such as the corresponding code?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Need a formula

Hi

Thank you so much Jacob. This does work except if there is a value which is
the same. Because I am looking at the top 10 values sometimes I can get
identical values. The formula works but, if there are two 2s, it only gives
me the NBMS code of the first one for both. Any ideas?

V

"Jacob Skaria" wrote:

If I understand correctly INDEX() MATCH() combination or a LOOKUP() will do.
Suppose you have the below table in Sheet1. Try the below formula in B2 in
place of xxx

Top NBMS Code
1 xxx
2 xxx
3 xxx

Assuming your larger table is in Sheet2 ColA with NBMS codes in ColA and the
lookup value (in this case 1) in colB

=INDEX(Sheet2!$A$1:$A$10,MATCH(A1,Sheet2!$B$1:$B$1 0,0))

If this post helps click Yes
---------------
Jacob Skaria


"Dragonkindred" wrote:

I need a formula which will return information from a cell which is not part
of the formula. Confused? I know I am.

Excerpt from table which is much, much larger.

NBMS codes Jul-08 Aug-08 Sep-08 Q1
20HR 0
21PC 1 1
22PR 0
A101 0

Table to create (which will then get a graph)

Top NBMS Code
1
2
3

Now, the LARGE formula will give me the top totals but how do I get the
other information such as the corresponding code?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"