Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Programming Min and Max

I would like to write a code that calculates the min and max in a range of
cells and compares them in order to find the cell that contain both values.
this has to be done in several rows.

For example:
The data are from cells(4,7) to Cells(4,11)
What should I write to get the min and assign it to a variable name ?
I wrote : Mmo = MIN(cells(4,7):Cells(4,11)) , but it is not correct
--
Thanks , Moises
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Programming Min and Max

Mmo = Application.WorksheetFunction.Min(Range("G4:K4"))

--
Dan

On Jan 11, 2:17*pm, Moises wrote:
I would *like to write a code that calculates the min and max in a range of
cells and compares them in order to find the cell that contain both values..
this has to be done *in several rows.

For example:
The data are from cells(4,7) to Cells(4,11)
What should I write to get the min and assign it to a variable name ?
I wrote * : *Mmo = MIN(cells(4,7):Cells(4,11)) * , but it is not correct *
--
Thanks , Moises

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Programming Min and Max

Many thanks!
--
Moises


"Moises" wrote:

I would like to write a code that calculates the min and max in a range of
cells and compares them in order to find the cell that contain both values.
this has to be done in several rows.

For example:
The data are from cells(4,7) to Cells(4,11)
What should I write to get the min and assign it to a variable name ?
I wrote : Mmo = MIN(cells(4,7):Cells(4,11)) , but it is not correct
--
Thanks , Moises

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
VBA programming kush28 Excel Programming 1 February 9th 06 08:05 AM
programming Daren Excel Programming 1 November 10th 05 09:55 PM
xla programming DS NTE Excel Programming 2 August 26th 05 04:04 PM
Programming Help Nate[_5_] Excel Programming 6 May 21st 04 08:08 PM
Help in VBA programming padmaja[_2_] Excel Programming 2 December 23rd 03 09:59 AM


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