Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
NN
 
Posts: n/a
Default marco to format top 80%

I need to create a macro that chooses the top 80% of the cells in a column,
0, and formats them with colour. I really just need the formula, I can do

the macro.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bernard Liengme
 
Posts: n/a
Default marco to format top 80%

I had 50 numbers in A1:A50 and attached this conditional format
(Format|Conditional Format)
=(A1=LARGE($A$1:$A$100,20) ) then red background
to pick out the top 80% of the numbers.
Any help?
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"NN" wrote in message
...
I need to create a macro that chooses the top 80% of the cells in a column,
0, and formats them with colour. I really just need the formula, I can do

the macro.



  #3   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default marco to format top 80%

Assuming by "top 80%" you mean the largest 80% of numeric values, do you
need to use a macro?

One could use conditional formatting:

CF1: Formula is =A1=PERCENTILE(A:A,0.2)
Format1: <patterns/<desired color

OTOH, if you *have* to use a macro, the Application.Percentile method
should be helpful.

In article ,
"NN" wrote:

I need to create a macro that chooses the top 80% of the cells in a column,
0, and formats them with colour. I really just need the formula, I can do

the macro.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default marco to format top 80%

80% of value or 80% of number. For instance if the top value is 100 and
there are 50 items, do you want anything over 20 in value, or the top 40
items.

If the latter, use conditional formatting with a formula of
=A1=MAX(A:A)*20%

--

HTH

RP

"NN" wrote in message
...
I need to create a macro that chooses the top 80% of the cells in a

column,
0, and formats them with colour. I really just need the formula, I can

do
the macro.



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
Office2000: Conditional format behaves strangely Arvi Laanemets Excel Discussion (Misc queries) 1 April 7th 05 08:47 AM
can't format cell - have tried unlocking and unprotecting griffin Excel Discussion (Misc queries) 1 April 5th 05 02:11 AM
why does currency format change to number format? Cassie Excel Discussion (Misc queries) 3 March 18th 05 06:57 PM
Keep custom format in new worksheet Buddy Excel Discussion (Misc queries) 2 March 14th 05 10:03 AM
Copying a conditional format Meaux Excel Worksheet Functions 2 November 29th 04 10:19 AM


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