RSS Feed

Syndicate content

Ho la necessità di estrarre da una stringa alfanumerica i valori numerici presenti ed inserirli in un'altra cella. Es: La cella A1 contiene la stringa "a1f21r12" mi serve una funzione che scriva nella cella B2 la cifra 12112. Le stringhe nella colonna A possono avere formati diversi cioè i numeri non si trovano sempre nella stessa posizione. E' possibile fare ciò senza ricorrere al VBA? Grazie

Submitted by Anonimo on Sun, 01/03/2009 - 20:45

Si può fare anche senza VBA ma la formula diventa alquanto complessa dato che deve tenere in conto molteplici possibilità. Con VBA invece il codice risulta semplicissimo: la funzione che abbiamo realizzato permette di fare quanto richiesto in un colpo solo come mostrato qui:

 

 

AttachmentSize
estrai_cifre.zip6.85 KB

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <style> <center> <p>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.

Custom Search