Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default MATCH & LOOKUP functions

Hi, I'm trying to calculate how far from the bottom (last entry) of a table
other last column entries are.
LOOKUP is locating the last value in any given column for me, and by then
applying MATCH, which generates a ROW number, I take this away from the last
row number of the table (remotely referenced in A2) to give me the distance
from the bottom e.g. 12 rows;

=SUM($A$2-MATCH(LOOKUP(100,CT:CT),CT:CT,0))

However if the last value is duplicated in the same column, MATCH is giving
me the row number for that entry rather than the final entry.
How can I force it to give me the row number for the final entry for that
value ?
Or is there a better way to achieve what I'm doing ?
Any advice appreciated!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default MATCH & LOOKUP functions

Try this:

=$A$2-LOOKUP(100,CT:CT,ROW(CT:CT))


--
Biff
Microsoft Excel MVP


"Graham" wrote in message
...
Hi, I'm trying to calculate how far from the bottom (last entry) of a
table
other last column entries are.
LOOKUP is locating the last value in any given column for me, and by then
applying MATCH, which generates a ROW number, I take this away from the
last
row number of the table (remotely referenced in A2) to give me the
distance
from the bottom e.g. 12 rows;

=SUM($A$2-MATCH(LOOKUP(100,CT:CT),CT:CT,0))

However if the last value is duplicated in the same column, MATCH is
giving
me the row number for that entry rather than the final entry.
How can I force it to give me the row number for the final entry for that
value ?
Or is there a better way to achieve what I'm doing ?
Any advice appreciated!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default MATCH & LOOKUP functions

Once again you've been a great help, Many thanks

"T. Valko" wrote:

Try this:

=$A$2-LOOKUP(100,CT:CT,ROW(CT:CT))


--
Biff
Microsoft Excel MVP


"Graham" wrote in message
...
Hi, I'm trying to calculate how far from the bottom (last entry) of a
table
other last column entries are.
LOOKUP is locating the last value in any given column for me, and by then
applying MATCH, which generates a ROW number, I take this away from the
last
row number of the table (remotely referenced in A2) to give me the
distance
from the bottom e.g. 12 rows;

=SUM($A$2-MATCH(LOOKUP(100,CT:CT),CT:CT,0))

However if the last value is duplicated in the same column, MATCH is
giving
me the row number for that entry rather than the final entry.
How can I force it to give me the row number for the final entry for that
value ?
Or is there a better way to achieve what I'm doing ?
Any advice appreciated!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default MATCH & LOOKUP functions

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Graham" wrote in message
...
Once again you've been a great help, Many thanks

"T. Valko" wrote:

Try this:

=$A$2-LOOKUP(100,CT:CT,ROW(CT:CT))


--
Biff
Microsoft Excel MVP


"Graham" wrote in message
...
Hi, I'm trying to calculate how far from the bottom (last entry) of a
table
other last column entries are.
LOOKUP is locating the last value in any given column for me, and by
then
applying MATCH, which generates a ROW number, I take this away from the
last
row number of the table (remotely referenced in A2) to give me the
distance
from the bottom e.g. 12 rows;

=SUM($A$2-MATCH(LOOKUP(100,CT:CT),CT:CT,0))

However if the last value is duplicated in the same column, MATCH is
giving
me the row number for that entry rather than the final entry.
How can I force it to give me the row number for the final entry for
that
value ?
Or is there a better way to achieve what I'm doing ?
Any advice appreciated!






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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Row, Index, Match functions Christopher Naveen[_2_] Excel Discussion (Misc queries) 1 September 20th 07 08:42 AM
Lookup? Match? pulling rows from one spreadsheet to match a text f cjax Excel Worksheet Functions 3 July 21st 06 02:51 PM
MATCH & IF Functions SJT Excel Discussion (Misc queries) 2 June 23rd 06 02:27 PM
The match and lookup functions can find literal data but not the same data referenced from a cell Jeff Melvaine Excel Discussion (Misc queries) 3 April 30th 05 01:29 PM
When MATCH and v/hLOOKUP functions *FAIL* to match (but they should)... [email protected] Excel Worksheet Functions 2 April 6th 05 09:59 PM


All times are GMT +1. The time now is 06:43 AM.

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"