#1   Report Post  
Posted to microsoft.public.excel.misc
flow23
 
Posts: n/a
Default rank

Cell A2 needs to rank

formula looks like this =RANK(K2,K:K,0)
Range K:K is defined as "Total"

the problem is every month, a new column is added in between (months) this
pushes total to next column ( say L, M , N)

thus the formula wont work in a months time..

also when the formula is copied down.. using a macro.. The last row also
contains Grand Total. Thus that row is RANK 1... (because its total).

Is there a macro to avoid this.?



Its copies down...

  #2   Report Post  
Posted to microsoft.public.excel.misc
Niek Otten
 
Posts: n/a
Default rank

I suppose you mean

=RANK(A2,K:K,0)

When you insert columns, the formula will be changed automatically

To avoid looking at the total, don't use K:K, but use K1:K100 (or whatever
your last row is) instead

--
Kind regards,

Niek Otten

"flow23" wrote in message
...
Cell A2 needs to rank

formula looks like this =RANK(K2,K:K,0)
Range K:K is defined as "Total"

the problem is every month, a new column is added in between (months) this
pushes total to next column ( say L, M , N)

thus the formula wont work in a months time..

also when the formula is copied down.. using a macro.. The last row also
contains Grand Total. Thus that row is RANK 1... (because its total).

Is there a macro to avoid this.?



Its copies down...



  #3   Report Post  
Posted to microsoft.public.excel.misc
flow23
 
Posts: n/a
Default rank

but then rows are added regularly aswell as the columns

and the formula should say a2 = Rank (K2,K:K,0)

"Niek Otten" wrote:

I suppose you mean

=RANK(A2,K:K,0)

When you insert columns, the formula will be changed automatically

To avoid looking at the total, don't use K:K, but use K1:K100 (or whatever
your last row is) instead

--
Kind regards,

Niek Otten

"flow23" wrote in message
...
Cell A2 needs to rank

formula looks like this =RANK(K2,K:K,0)
Range K:K is defined as "Total"

the problem is every month, a new column is added in between (months) this
pushes total to next column ( say L, M , N)

thus the formula wont work in a months time..

also when the formula is copied down.. using a macro.. The last row also
contains Grand Total. Thus that row is RANK 1... (because its total).

Is there a macro to avoid this.?



Its copies down...




  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default rank

Still shouldn't make any difference as Niek says.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"flow23" wrote in message
...
but then rows are added regularly aswell as the columns

and the formula should say a2 = Rank (K2,K:K,0)

"Niek Otten" wrote:

I suppose you mean

=RANK(A2,K:K,0)

When you insert columns, the formula will be changed automatically

To avoid looking at the total, don't use K:K, but use K1:K100 (or

whatever
your last row is) instead

--
Kind regards,

Niek Otten

"flow23" wrote in message
...
Cell A2 needs to rank

formula looks like this =RANK(K2,K:K,0)
Range K:K is defined as "Total"

the problem is every month, a new column is added in between (months)

this
pushes total to next column ( say L, M , N)

thus the formula wont work in a months time..

also when the formula is copied down.. using a macro.. The last row

also
contains Grand Total. Thus that row is RANK 1... (because its total).

Is there a macro to avoid this.?



Its copies down...






  #5   Report Post  
Posted to microsoft.public.excel.misc
flow23
 
Posts: n/a
Default rank

but how would I know how many rows are there as they keep varying....
K1: K100 therefore cant be done


"Bob Phillips" wrote:

Still shouldn't make any difference as Niek says.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"flow23" wrote in message
...
but then rows are added regularly aswell as the columns

and the formula should say a2 = Rank (K2,K:K,0)

"Niek Otten" wrote:

I suppose you mean

=RANK(A2,K:K,0)

When you insert columns, the formula will be changed automatically

To avoid looking at the total, don't use K:K, but use K1:K100 (or

whatever
your last row is) instead

--
Kind regards,

Niek Otten

"flow23" wrote in message
...
Cell A2 needs to rank

formula looks like this =RANK(K2,K:K,0)
Range K:K is defined as "Total"

the problem is every month, a new column is added in between (months)

this
pushes total to next column ( say L, M , N)

thus the formula wont work in a months time..

also when the formula is copied down.. using a macro.. The last row

also
contains Grand Total. Thus that row is RANK 1... (because its total).

Is there a macro to avoid this.?



Its copies down...









  #6   Report Post  
Posted to microsoft.public.excel.misc
Niek Otten
 
Posts: n/a
Default rank

OK, leave it as K:K. Use Rank to find the second largest item

--
Kind regards,

Niek Otten

"flow23" wrote in message
...
but how would I know how many rows are there as they keep varying....
K1: K100 therefore cant be done


"Bob Phillips" wrote:

Still shouldn't make any difference as Niek says.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"flow23" wrote in message
...
but then rows are added regularly aswell as the columns

and the formula should say a2 = Rank (K2,K:K,0)

"Niek Otten" wrote:

I suppose you mean

=RANK(A2,K:K,0)

When you insert columns, the formula will be changed automatically

To avoid looking at the total, don't use K:K, but use K1:K100 (or

whatever
your last row is) instead

--
Kind regards,

Niek Otten

"flow23" wrote in message
...
Cell A2 needs to rank

formula looks like this =RANK(K2,K:K,0)
Range K:K is defined as "Total"

the problem is every month, a new column is added in between
(months)

this
pushes total to next column ( say L, M , N)

thus the formula wont work in a months time..

also when the formula is copied down.. using a macro.. The last row

also
contains Grand Total. Thus that row is RANK 1... (because its
total).

Is there a macro to avoid this.?



Its copies down...









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
Rank - Specific match only Tim Elhatton Excel Worksheet Functions 2 October 19th 05 11:08 PM
RANK formula KG Excel Discussion (Misc queries) 3 September 23rd 05 03:27 PM
how can i rank a column in excel David B. Excel Worksheet Functions 4 August 30th 05 03:54 AM
Rank fx - Fill Down? Steve B Excel Worksheet Functions 1 February 23rd 05 08:28 PM
Rank Function carl Excel Worksheet Functions 2 November 15th 04 07:23 PM


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

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

About Us

"It's about Microsoft Excel"