Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 192
Default please help me program excel to scan for top 10 highest values

Hello

Please help.

I'm trying to program Excel to run down a column of values, taking the top
10 highest values and populating another worksheet with the adjacent
reference for these values.

For example

If I have company registration numbers in one column and their corresponding
credit risk ratings in another column, I want excel to populate another
worksheet with the registration numbers of the top 10 most risky companies .

I can do this manually, but I want add a button so that my colleagues can
perform the same action with exactly the same result.

Any hints would be much appreciated and I would be willing to make a donation

Many thanks in advance, Nick
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default please help me program excel to scan for top 10 highest values

Select you data then do
Data=Filter=Autofilter

in the column with the risk numbers, select the dropdown and select Top 10.

If you need a macro, then turn on the macro recorder (tools=Macro=Record a
new macro), then perform the action manually. (after the rows are hidden to
reveal only the top 10, then click in the data, do Ctrl+Shift+8 to select all
the data and do edit = copy , then go to the new sheet and do edit =paste
== that is if you still think you need to copy the data). No go back to the
data and do Data=Filter to turn off the autofilter, then turn off the macro
recorder.

Now go to the VBE (Alt+F11) and look at the recorded code. That is pretty
much what you want - again if you still want a code approach.



--
Regards,
Tom Ogilvy


"Nick" wrote:

Hello

Please help.

I'm trying to program Excel to run down a column of values, taking the top
10 highest values and populating another worksheet with the adjacent
reference for these values.

For example

If I have company registration numbers in one column and their corresponding
credit risk ratings in another column, I want excel to populate another
worksheet with the registration numbers of the top 10 most risky companies .

I can do this manually, but I want add a button so that my colleagues can
perform the same action with exactly the same result.

Any hints would be much appreciated and I would be willing to make a donation

Many thanks in advance, Nick

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default please help me program excel to scan for top 10 highest values

Nick,

You can have a macro if you want one but this is less work and guaranteed to
give repeatable results.

Risk rating in column C
Company name in column D

This in E1
=VLOOKUP(LARGE(C$1:C$1000,ROW()),C$1:D$1000,2,FALS E)
Drag down to E10 for top ten risks.



Mike


"Nick" wrote:

Hello

Please help.

I'm trying to program Excel to run down a column of values, taking the top
10 highest values and populating another worksheet with the adjacent
reference for these values.

For example

If I have company registration numbers in one column and their corresponding
credit risk ratings in another column, I want excel to populate another
worksheet with the registration numbers of the top 10 most risky companies .

I can do this manually, but I want add a button so that my colleagues can
perform the same action with exactly the same result.

Any hints would be much appreciated and I would be willing to make a donation

Many thanks in advance, Nick

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default please help me program excel to scan for top 10 highest values

The results will be repeatable, but may be repeatably incorrect if any of the
companies in the top 10 share the same risk rating.

--
Regards,
Tom Ogilvy

"Mike H" wrote:

Nick,

You can have a macro if you want one but this is less work and guaranteed to
give repeatable results.

Risk rating in column C
Company name in column D

This in E1
=VLOOKUP(LARGE(C$1:C$1000,ROW()),C$1:D$1000,2,FALS E)
Drag down to E10 for top ten risks.



Mike


"Nick" wrote:

Hello

Please help.

I'm trying to program Excel to run down a column of values, taking the top
10 highest values and populating another worksheet with the adjacent
reference for these values.

For example

If I have company registration numbers in one column and their corresponding
credit risk ratings in another column, I want excel to populate another
worksheet with the registration numbers of the top 10 most risky companies .

I can do this manually, but I want add a button so that my colleagues can
perform the same action with exactly the same result.

Any hints would be much appreciated and I would be willing to make a donation

Many thanks in advance, Nick



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default please help me program excel to scan for top 10 highest values

agreed thanks for that

"Tom Ogilvy" wrote:

The results will be repeatable, but may be repeatably incorrect if any of the
companies in the top 10 share the same risk rating.

--
Regards,
Tom Ogilvy

"Mike H" wrote:

Nick,

You can have a macro if you want one but this is less work and guaranteed to
give repeatable results.

Risk rating in column C
Company name in column D

This in E1
=VLOOKUP(LARGE(C$1:C$1000,ROW()),C$1:D$1000,2,FALS E)
Drag down to E10 for top ten risks.



Mike


"Nick" wrote:

Hello

Please help.

I'm trying to program Excel to run down a column of values, taking the top
10 highest values and populating another worksheet with the adjacent
reference for these values.

For example

If I have company registration numbers in one column and their corresponding
credit risk ratings in another column, I want excel to populate another
worksheet with the registration numbers of the top 10 most risky companies .

I can do this manually, but I want add a button so that my colleagues can
perform the same action with exactly the same result.

Any hints would be much appreciated and I would be willing to make a donation

Many thanks in advance, Nick

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 192
Default please help me program excel to scan for top 10 highest values

Many thanks Tom I will try this asap

"Tom Ogilvy" wrote:

The results will be repeatable, but may be repeatably incorrect if any of the
companies in the top 10 share the same risk rating.

--
Regards,
Tom Ogilvy

"Mike H" wrote:

Nick,

You can have a macro if you want one but this is less work and guaranteed to
give repeatable results.

Risk rating in column C
Company name in column D

This in E1
=VLOOKUP(LARGE(C$1:C$1000,ROW()),C$1:D$1000,2,FALS E)
Drag down to E10 for top ten risks.



Mike


"Nick" wrote:

Hello

Please help.

I'm trying to program Excel to run down a column of values, taking the top
10 highest values and populating another worksheet with the adjacent
reference for these values.

For example

If I have company registration numbers in one column and their corresponding
credit risk ratings in another column, I want excel to populate another
worksheet with the registration numbers of the top 10 most risky companies .

I can do this manually, but I want add a button so that my colleagues can
perform the same action with exactly the same result.

Any hints would be much appreciated and I would be willing to make a donation

Many thanks in advance, Nick

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
Top 3 highest values Gilbo Excel Discussion (Misc queries) 7 December 31st 09 10:20 AM
How do I scan a large table/worksheet for values? Omeganutz Excel Programming 1 March 8th 06 07:50 PM
3 highest values Bridge New Users to Excel 2 July 23rd 05 01:13 PM
how do i disable "running virus scan" in excel program when opened Tammy New Users to Excel 1 June 10th 05 08:48 PM
scan for repeating values and then delete peach255 C Excel Programming 1 July 9th 03 10:40 PM


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