![]() |
|
Forum
|
|
|
#16 (permalink) |
|
XLDnaute Barbatruc
Date d'inscription: mars 2005
Localisation: Maubeuge
Version Excel : Excel 2000 (PC)
Messages: 6 923
|
Salut,
Plutôt que de réinventer ce qui existe déjà, une solution issue d'une recherche sur le Forum : http://www.excel-downloads.com/forum...valeur+colonne Il y en a sans doute d'autres @+
__________________
Ne jamais hésiter à utiliser la recherche sur le Forum, beaucoup de réponses s'y trouvent Amitiés XldiennesXLD vous a aidé, n'hésitez pas à aider XLD |
|
|
|
| ANNONCES | |||
|
|
|
|
#18 (permalink) |
|
XLDnaute Barbatruc
Date d'inscription: février 2005
Localisation: Saint-Etienne
Version Excel : Excel XP (PC)
Messages: 4 454
|
Bonjour
pour trouver la derniere valeur d'une colonne en vba : MsgBox [A65536].End(3).Rows salut |
|
|
|
|
|
#19 (permalink) |
|
XLDnaute Barbatruc
Date d'inscription: juin 2005
Localisation: RENNES
Version Excel : Excel 2000 (PC)
Messages: 7 079
|
Re
Je sais que des solutions existent Mais ce matin , j'ai pas trop d'idées de problèmes à soumettre. La réponse Ti_ est en effet trés courte Si quelqu'un a d'autres idées, qu'il n'hésite pas à se manifester. Bon week-end de PAques à tous EDITION : c'est en lisant cela que j'ai pensé à ma question SOURCE microsoft.public.excel.worksheet.functions | Google Groups Code:
Public Function LastValInCol(x As Range) LastValInCol = x.Parent.Cells(Rows.Count, x.Column).End(xlUp).Value End Function believe the array-entered formula: =OFFSET(A1,MAX(NOT(ISBLANK(A1:A100))*ROW(A1:A100))-1,0) will also work regardless of the nature of the last entry. It will also work even if there are blanks within the array. For a function that will stop at the cell before the first blank cell in the array, array-enter: =INDEX(A1:A100,MATCH(TRUE,ISBLANK(A1:A100),0)-1,1) Dernière modification par Staple1600 ; 07/04/2007 à 13h09. |
|
|
|
| ANNONCES | |
![]() |
| Liens sociaux |
| Outils de la discussion | |
|
|
Discussions similaires
|
||||
| Discussion | Auteur | Forum | Réponses | Dernier message |
| Challenge pour les pro VBA | Jasmine | Forum Excel | 5 | 12/03/2006 13h06 |
| quelqun veut-il s'amuser? insérer macro recherch | bud | Forum Excel | 6 | 21/02/2006 03h08 |
| Challenge!!!!! --Statistiques-- | ericdroopy | Forum Excel | 2 | 10/02/2006 12h03 |
| Challenge ;-) | Stioui | Forum Excel Downloads - Archives | 1 | 12/10/2004 11h34 |
| Challenge en VBA | JMG | Forum Excel Downloads - Archives | 3 | 02/05/2002 10h42 |