Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Barb Reinhardt
 
Posts: n/a
Default Max of a defined function

OK, maybe there's a better way to do this, but I have the Colorindex function
(from Ozgrid, I think) and I want to get the maximum value over a number of
cells:

I have something like this:

=MAX(colorindex(A1),colorindex(A2),colorindex(A3))

I want to go 10 columns. Is there an easier way to do this? I know I can
write another macro, but I don't really want to do that right now.

Thanks,
Barb Reinhardt

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kraljb
 
Posts: n/a
Default Max of a defined function


Without knowing how the colorindex function works makes it rather
difficult to answer that. To make the formulas easier for you, it might
be easier to create a dummy row. Although, I hate to recommend that.
Unfortunatly it's the best I can do. The dummy row B where the formula
would be =colorindex(a1)... etc. and then do the max on Row B.


--
kraljb
------------------------------------------------------------------------
kraljb's Profile: http://www.excelforum.com/member.php...fo&userid=9955
View this thread: http://www.excelforum.com/showthread...hreadid=543340

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Max of a defined function

Barb Reinhardt wrote:
OK, maybe there's a better way to do this, but I have the Colorindex function
(from Ozgrid, I think) and I want to get the maximum value over a number of
cells[.] I have something like this:
=MAX(colorindex(A1),colorindex(A2),colorindex(A3))
I want to go 10 columns. Is there an easier way to do this?


I cannot say it is "easier", but it might be more extensible. In B1,
put =colorindex(A1) and copy into A2:A10. Then you can write
=max(A1:A10).

If you do not like column B1 cluttering up your spreadsheet, you
can hide the column.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Max of a defined function

Barb,

Grab my Colorindex function from
http://www.xldynamic.com/source/xld.ColourCounter.html and use
=MAX(ColorIndex(A1:A10))

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"Barb Reinhardt" wrote in message
...
OK, maybe there's a better way to do this, but I have the Colorindex

function
(from Ozgrid, I think) and I want to get the maximum value over a number

of
cells:

I have something like this:

=MAX(colorindex(A1),colorindex(A2),colorindex(A3))

I want to go 10 columns. Is there an easier way to do this? I know I can
write another macro, but I don't really want to do that right now.

Thanks,
Barb Reinhardt



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Barb Reinhardt
 
Posts: n/a
Default Max of a defined function

I did that, but it means adding 20 more columns and I don't really want to do
that. For now, it works. In the future, I'll look at modifying the macro.

Thanks

"kraljb" wrote:


Without knowing how the colorindex function works makes it rather
difficult to answer that. To make the formulas easier for you, it might
be easier to create a dummy row. Although, I hate to recommend that.
Unfortunatly it's the best I can do. The dummy row B where the formula
would be =colorindex(a1)... etc. and then do the max on Row B.


--
kraljb
------------------------------------------------------------------------
kraljb's Profile: http://www.excelforum.com/member.php...fo&userid=9955
View this thread: http://www.excelforum.com/showthread...hreadid=543340


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
Color a result cell in a user defined function aaa Excel Discussion (Misc queries) 1 May 8th 06 04:16 PM
Microsoft Visual Basic: Compile error: Sum or Function not defined Dmitry Excel Worksheet Functions 12 April 3rd 06 07:28 AM
Getting Yahoo Stock Quotes by a USer Defined Function MS Office Excel Worksheet Functions 1 September 8th 05 05:08 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
Attaching a particular user defined function to cust button Ajay Excel Discussion (Misc queries) 3 February 23rd 05 08:29 AM


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