Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    ricerca valore minimo - massimo

    Ciao raga....
    un aiuto...devo creare uma macro la quale mi trova il valore minimo o massimo all'interno di una "range" di celle da me selezionate....
    qualcuno mi potrebbe postare un esempio o un'indicazione?grazie mille.....

  2. #2
    secondo te le MACRO si creano soltanto con il linguaggio o applicativo
    che stai utilizzando? Sei pregato di specificare (sempre) nel titolo delle discussioni il LINGUAGGIO o l'APPLICAZIONE da te utilizzata.

    Una letta al regolamento non nuoce: http://forum.html.it/forum/showthrea...hreadid=588640

    (P.S. ti stai riferendo ad EXCEL?)
    ...Terrible warlords, good warlords, and an english song

  3. #3
    si scusa....non volevo indurre in errore....esattamente uso excel...grazie

  4. #4
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    Le funzioni Mix e Max di Excel non ti vanno bene ?
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

  5. #5
    si certamente usando le formule di excel vanno da dio....solo che cercavo di farlo tramite una macro e senza inserire una formula nelle celle....sai come posso fare?
    grazie mille

  6. #6
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    codice:
    Function MyMin(a As Range)
    MyMin = a.Cells(1, 1).Value
    For Each c In a
    If Not IsEmpty(c.Value) Then
    If c.Value < MyMin Then
    MyMin = c.Value
    End If
    End If
    Next
    End Function
    per richiamarla :

    codice:
    Minimo = MyMin(ThisWorkBook.Sheets("Foglio1").Range("A1:A10"))
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.