#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 190
Default Sort rows by colors

Good Morning,
Can you please help I have a very large spreadsheet that has 3 different
colors in the rows and I have to sort them by color. Is there any way to do
that?
Exampl:
Store Number Street Address Color on each row
000111 676 STATE STREET Yellow
000115 2649 E 79TH STREET White
000118 5650 W BELMONT blue
000120 3302 W BELMONT Yellow


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Sort rows by colors

http://www.cpearson.com/excel/SortByColor.htm

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Mary" wrote in message ...
| Good Morning,
| Can you please help I have a very large spreadsheet that has 3 different
| colors in the rows and I have to sort them by color. Is there any way to do
| that?
| Exampl:
| Store Number Street Address Color on each row
| 000111 676 STATE STREET Yellow
| 000115 2649 E 79TH STREET White
| 000118 5650 W BELMONT blue
| 000120 3302 W BELMONT Yellow
|
|


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 340
Default Sort rows by colors

One additional suggestion, assuming that you use Chip's code. If you modify
the colors, press ALT-CTL-F9. This forces a recalc of the functions. Excel
will not recalc the color functions, as a change in color does not trigger
calculation.

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"Niek Otten" wrote in message
...
http://www.cpearson.com/excel/SortByColor.htm

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Mary" wrote in message
...
| Good Morning,
| Can you please help I have a very large spreadsheet that has 3 different
| colors in the rows and I have to sort them by color. Is there any way to
do
| that?
| Exampl:
| Store Number Street Address Color on each row
| 000111 676 STATE STREET Yellow
| 000115 2649 E 79TH STREET White
| 000118 5650 W BELMONT blue
| 000120 3302 W BELMONT Yellow
|
|




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 190
Default Sort rows by colors

Thank you. I followed the instructions that Niek provided but I am getting a
error message as #NAME?
Am I doing anything wrong?, I starting on cell A2 and I put this formula
=ColorIndexOfCell(A2,FALSE,TRUE), please help.


"Bob Flanagan" wrote:

One additional suggestion, assuming that you use Chip's code. If you modify
the colors, press ALT-CTL-F9. This forces a recalc of the functions. Excel
will not recalc the color functions, as a change in color does not trigger
calculation.

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"Niek Otten" wrote in message
...
http://www.cpearson.com/excel/SortByColor.htm

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Mary" wrote in message
...
| Good Morning,
| Can you please help I have a very large spreadsheet that has 3 different
| colors in the rows and I have to sort them by color. Is there any way to
do
| that?
| Exampl:
| Store Number Street Address Color on each row
| 000111 676 STATE STREET Yellow
| 000115 2649 E 79TH STREET White
| 000118 5650 W BELMONT blue
| 000120 3302 W BELMONT Yellow
|
|





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Sort rows by colors

Did you put the code in a standard module?
See these instructions:

================================================
Pasting a User Defined Function (UDF)
Niek Otten, March 31, 2006

If you find a VBA function on the Internet or somebody mails you one, and you don't know how to implement it, follow these
steps:

Select all the text of the function.
CTRL+C (that is, press and hold down the CTRL key, press C, release both). This a shortcut for Copy.
Go to Excel. Press ALT+F11 (same method: press and hold the ALT key, press the F11 key and release both). You are now in the
Visual Basic Editor (VBE).
From the menu bar, choose InsertModule. There should now be a blank module sheet in front of you. Click in it and then
press CTRL+V (same method.). This a shortcut for Paste. You should now see the text of the function in the Module.
Press ALT+F11 again to return to your Excel worksheet.
You should now be able to use the function as if it were a built-in function of Excel, like =SUM(..)
================================================


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Mary" wrote in message ...
| Thank you. I followed the instructions that Niek provided but I am getting a
| error message as #NAME?
| Am I doing anything wrong?, I starting on cell A2 and I put this formula
| =ColorIndexOfCell(A2,FALSE,TRUE), please help.
|
|
| "Bob Flanagan" wrote:
|
| One additional suggestion, assuming that you use Chip's code. If you modify
| the colors, press ALT-CTL-F9. This forces a recalc of the functions. Excel
| will not recalc the color functions, as a change in color does not trigger
| calculation.
|
| Bob Flanagan
| Macro Systems
| http://www.add-ins.com
| Productivity add-ins and downloadable books on VB macros for Excel
|
| "Niek Otten" wrote in message
| ...
| http://www.cpearson.com/excel/SortByColor.htm
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "Mary" wrote in message
| ...
| | Good Morning,
| | Can you please help I have a very large spreadsheet that has 3 different
| | colors in the rows and I have to sort them by color. Is there any way to
| do
| | that?
| | Exampl:
| | Store Number Street Address Color on each row
| | 000111 676 STATE STREET Yellow
| | 000115 2649 E 79TH STREET White
| | 000118 5650 W BELMONT blue
| | 000120 3302 W BELMONT Yellow
| |
| |
|
|
|
|
|




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 190
Default Sort rows by colors

It works. Thank you so much.

"Niek Otten" wrote:

Did you put the code in a standard module?
See these instructions:

================================================
Pasting a User Defined Function (UDF)
Niek Otten, March 31, 2006

If you find a VBA function on the Internet or somebody mails you one, and you don't know how to implement it, follow these
steps:

Select all the text of the function.
CTRL+C (that is, press and hold down the CTRL key, press C, release both). This a shortcut for Copy.
Go to Excel. Press ALT+F11 (same method: press and hold the ALT key, press the F11 key and release both). You are now in the
Visual Basic Editor (VBE).
From the menu bar, choose InsertModule. There should now be a blank module sheet in front of you. Click in it and then
press CTRL+V (same method.). This a shortcut for Paste. You should now see the text of the function in the Module.
Press ALT+F11 again to return to your Excel worksheet.
You should now be able to use the function as if it were a built-in function of Excel, like =SUM(..)
================================================


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Mary" wrote in message ...
| Thank you. I followed the instructions that Niek provided but I am getting a
| error message as #NAME?
| Am I doing anything wrong?, I starting on cell A2 and I put this formula
| =ColorIndexOfCell(A2,FALSE,TRUE), please help.
|
|
| "Bob Flanagan" wrote:
|
| One additional suggestion, assuming that you use Chip's code. If you modify
| the colors, press ALT-CTL-F9. This forces a recalc of the functions. Excel
| will not recalc the color functions, as a change in color does not trigger
| calculation.
|
| Bob Flanagan
| Macro Systems
| http://www.add-ins.com
| Productivity add-ins and downloadable books on VB macros for Excel
|
| "Niek Otten" wrote in message
| ...
| http://www.cpearson.com/excel/SortByColor.htm
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "Mary" wrote in message
| ...
| | Good Morning,
| | Can you please help I have a very large spreadsheet that has 3 different
| | colors in the rows and I have to sort them by color. Is there any way to
| do
| | that?
| | Exampl:
| | Store Number Street Address Color on each row
| | 000111 676 STATE STREET Yellow
| | 000115 2649 E 79TH STREET White
| | 000118 5650 W BELMONT blue
| | 000120 3302 W BELMONT Yellow
| |
| |
|
|
|
|
|



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Sort rows by colors

You're welcome!

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Mary" wrote in message ...
| It works. Thank you so much.
|
| "Niek Otten" wrote:
|
| Did you put the code in a standard module?
| See these instructions:
|
| ================================================
| Pasting a User Defined Function (UDF)
| Niek Otten, March 31, 2006
|
| If you find a VBA function on the Internet or somebody mails you one, and you don't know how to implement it, follow
these
| steps:
|
| Select all the text of the function.
| CTRL+C (that is, press and hold down the CTRL key, press C, release both). This a shortcut for Copy.
| Go to Excel. Press ALT+F11 (same method: press and hold the ALT key, press the F11 key and release both). You are now in
the
| Visual Basic Editor (VBE).
| From the menu bar, choose InsertModule. There should now be a blank module sheet in front of you. Click in it and then
| press CTRL+V (same method.). This a shortcut for Paste. You should now see the text of the function in the Module.
| Press ALT+F11 again to return to your Excel worksheet.
| You should now be able to use the function as if it were a built-in function of Excel, like =SUM(..)
| ================================================
|
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "Mary" wrote in message ...
| | Thank you. I followed the instructions that Niek provided but I am getting a
| | error message as #NAME?
| | Am I doing anything wrong?, I starting on cell A2 and I put this formula
| | =ColorIndexOfCell(A2,FALSE,TRUE), please help.
| |
| |
| | "Bob Flanagan" wrote:
| |
| | One additional suggestion, assuming that you use Chip's code. If you modify
| | the colors, press ALT-CTL-F9. This forces a recalc of the functions. Excel
| | will not recalc the color functions, as a change in color does not trigger
| | calculation.
| |
| | Bob Flanagan
| | Macro Systems
| | http://www.add-ins.com
| | Productivity add-ins and downloadable books on VB macros for Excel
| |
| | "Niek Otten" wrote in message
| | ...
| | http://www.cpearson.com/excel/SortByColor.htm
| |
| | --
| | Kind regards,
| |
| | Niek Otten
| | Microsoft MVP - Excel
| |
| | "Mary" wrote in message
| | ...
| | | Good Morning,
| | | Can you please help I have a very large spreadsheet that has 3 different
| | | colors in the rows and I have to sort them by color. Is there any way to
| | do
| | | that?
| | | Exampl:
| | | Store Number Street Address Color on each row
| | | 000111 676 STATE STREET Yellow
| | | 000115 2649 E 79TH STREET White
| | | 000118 5650 W BELMONT blue
| | | 000120 3302 W BELMONT Yellow
| | |
| | |
| |
| |
| |
| |
| |
|
|
|


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
Sorting Rows By Colors FARAZ QURESHI Excel Discussion (Misc queries) 2 December 29th 06 03:25 PM
EXcel 2007 - Unable to sort by font and cell colors Mr. Low Excel Worksheet Functions 1 October 28th 06 03:49 PM
Sort information according to colors in Excel Paul Setting up and Configuration of Excel 2 August 26th 06 09:50 AM
Can I sort columns by colors, example - red, green, yellow Beth Excel Discussion (Misc queries) 3 May 19th 06 05:34 AM
How to sort rows by Colors Sheikh Saadi Excel Discussion (Misc queries) 5 November 20th 05 12:17 AM


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