What are the codes to obtain the min and the max in a rage say
Range("B4:B8")? Any help would be appreciated,
Tganks,
Ed
What are the codes to obtain the min and the max in a rage say
Range("B4:B8")? Any help would be appreciated,
Tganks,
Ed
=WORKSHEETFUNCTION.MIN(RANGE("B4:B8"))
=WORKSHEETFUNCTION.MAX(RANGE("B4:B8"))
Originally Posted by Ed
Last edited by Excelenator; 08-03-2006 at 10:03 AM.
---------------------------------------------------
ONLY APPLIES TO VBA RESPONSES WHERE APPROPRIATE
To insert code into the VBE (Visual Basic Editor)
- Copy the code.
- Open workbook to paste code into.
- Right click any worksheet tab, select View Code
- VBE (Visual Basic Editor) opens to that sheets object
- You may change to another sheets object or the This Workbook object by double clicking it in the Project window
- In the blank space below the word "General" paste the copied code.
=min(B4:B8)
=max(B4:B8)
"Ed" <[email protected]> schreef in bericht
news:[email protected]...
> What are the codes to obtain the min and the max in a rage say
> Range("B4:B8")? Any help would be appreciated,
>
> Tganks,
>
>
> Ed
When I tried to assign the min of a range in a macro to the variable l
using:
l = Min("D4:D7")
I get the message:
Compile error
Sub or function not defined
How can I get it to work?
Thanks
Ed
I used the code l = Min("D4:D7") in a macro to assign the min of a
range
On Thu, 3 Aug 2006 15:51:12 +0200, "moon" <[email protected]>
wrote:
>=min(B4:B8)
>=max(B4:B8)
>
>
>"Ed" <[email protected]> schreef in bericht
>news:[email protected]...
>> What are the codes to obtain the min and the max in a rage say
>> Range("B4:B8")? Any help would be appreciated,
>>
>> Tganks,
>>
>>
>> Ed
>
Thanks to all. Still having difficulty. Posting new message
On Thu, 03 Aug 2006 08:43:10 -0500, Ed <[email protected]> wrote:
>What are the codes to obtain the min and the max in a rage say
>Range("B4:B8")? Any help would be appreciated,
>
>Tganks,
>
>
>Ed
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks