Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Recording highest and lowest ranking

I have a ranking system for a range of products. They are automatically
ranked each day to show which sells the best and which sells the worst. In a
product information sheet I have a cell which displays "Ranking" it takes the
ranking from a look up table. But in two other cells I would like to record
the highest a products rankign has ever been and the lowest it has ever been.
So basically if the ranking is in cell A1, the value in cell A2 (the highest
ever ranking) has to be If A1 < A2, then A2 = A1, but if A1A2 then A2
doesn't change. I need to do this for around 14 products. Is this possible?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Recording highest and lowest ranking

You can use intentional circular references, but then you would have to
allow this at the application level.


I would just run a macro that does the comparison and the update

Sub ABC()
Dim rng1 as Range, rng2 as Range, rng3 as Range
set rng1 = Range("A1")
set rng2 = Range("A2") ' holds min value
set rng3 = Range("A3") ' holds max value
if rng1 < rng2 then rng2 = rng1
if rng1 rng3 then rng3 = rng1
End Sub


You need to prime A2 and A3 with extreme values - A2 a high number and A3 a
Low number
--
Regards,
Tom Ogilvy


"Gupta A." wrote in message
...
I have a ranking system for a range of products. They are automatically
ranked each day to show which sells the best and which sells the worst. In
a
product information sheet I have a cell which displays "Ranking" it takes
the
ranking from a look up table. But in two other cells I would like to
record
the highest a products rankign has ever been and the lowest it has ever
been.
So basically if the ranking is in cell A1, the value in cell A2 (the
highest
ever ranking) has to be If A1 < A2, then A2 = A1, but if A1A2 then A2
doesn't change. I need to do this for around 14 products. Is this
possible?



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
Sum (throw out highest and lowest) Timothy Garrison Excel Worksheet Functions 3 December 2nd 09 02:09 AM
Difference Between Highest And Lowest? Saxman Excel Discussion (Misc queries) 4 February 28th 07 02:53 PM
Graph Highest to Lowest. dot Excel Discussion (Misc queries) 2 October 20th 06 09:29 PM
Highest High and Lowest Low jimbob Excel Discussion (Misc queries) 6 March 9th 06 04:11 PM
Sort from lowest to highest Steved Excel Worksheet Functions 7 September 10th 05 09:49 PM


All times are GMT +1. The time now is 06:58 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"