Excel Forum Per condividere esperienze su Microsoft Excel

numero di addendi

  • Messaggi
  • OFFLINE
    Inbario
    Post: 81
    Registrato il: 04/08/2004
    Utente Junior
    2007
    00 17/01/2022 23:10
    buongiorno ho un'espressione che è la somma di tante celle,è possibile avere un'espressione che mi calcoli il numero di addendi conenuti nella prima espressione?
    esempio:
    =BF98+BF96+BF85+BF77+BF69+BF68+BF49+BF36+BF95+BF86+BF82+BF81+BF75+BF74+BF71+BF70+BF57+BF53+BF52+BF47+BF28+BF19+BF16+BF15

    grazie
    Excel 2007
  • OFFLINE
    federico460
    Post: 2.539
    Registrato il: 10/10/2013
    Città: VICENZA
    Età: 69
    Utente Veteran
    365
    00 18/01/2022 08:13
    ciao
    se è una cella sola (altrimenti diventa lungo)

    vai in formule

    nome
    formula
    =INFO.CELLA(6;Foglio1!$A$1)

    in una cella
    =SOMMA(SE(STRINGA.ESTRAI(formula;RIF.RIGA(1:255);1)="+";1;0))+1
  • OFFLINE
    Inbario
    Post: 81
    Registrato il: 04/08/2004
    Utente Junior
    2007
    00 18/01/2022 23:15
    federico460, 18/01/2022 08:13:

    ciao
    se è una cella sola (altrimenti diventa lungo)

    vai in formule

    nome
    formula
    =INFO.CELLA(6;Foglio1!$A$1)

    in una cella
    =SOMMA(SE(STRINGA.ESTRAI(formula;RIF.RIGA(1:255);1)="+";1;0))+1

    scusa non ho capito
    Excel 2007
  • OFFLINE
    federico460
    Post: 2.542
    Registrato il: 10/10/2013
    Città: VICENZA
    Età: 69
    Utente Veteran
    365
    00 19/01/2022 00:22
    ciao

    in A1 la tua formula
    =BF98+BF96+BF85+BF77+BF69+BF68+BF49+BF36+BF95+BF86+BF82+BF81+BF75+BF74+BF71+BF70+BF57+BF53+BF52+BF47+BF28+BF19+BF16+BF15
    sulla barra multifunzione c'è una scheda FORMULE
    1) definisci nome
    2)nome----scrivi -------------formula
    3)riferito a .......copia la funzione---=INFO.CELLA(6;Foglio1!$A$1)
    4) dai OK


    in B1 scrivi la formula

    =SOMMA(SE(STRINGA.ESTRAI(formula;RIF.RIGA(1:255);1)="+";1;0))+1
    [Modificato da federico460 19/01/2022 00:23]
  • OFFLINE
    L2018
    Post: 144
    Registrato il: 02/04/2018
    Città: PESCARA
    Età: 75
    Utente Junior
    EXCEL 2016 - SPREAD32
    00 19/01/2022 09:36
    Re:
    federico460, 19/01/2022 00:22:


    in B1 scrivi la formula

    =SOMMA(SE(STRINGA.ESTRAI(formula;RIF.RIGA(1:255);1)="+";1;0))+1



    Forse matriciale ?

    Leo

    LEO
    https://t.me/LordBrum
  • OFFLINE
    federico460
    Post: 2.543
    Registrato il: 10/10/2013
    Città: VICENZA
    Età: 69
    Utente Veteran
    365
    00 19/01/2022 09:49
    ciao
    Leo

    con il 365 non serve

    con le altre versioni
    da confermare CTRL maiuscolo invio

    me ne dimentico sempre
    [Modificato da federico460 19/01/2022 09:51]
  • OFFLINE
    L2018
    Post: 145
    Registrato il: 02/04/2018
    Città: PESCARA
    Età: 75
    Utente Junior
    EXCEL 2016 - SPREAD32
    00 19/01/2022 09:54
    ciao, avevo immaginato, ok
    comunque col mio Excel 2007 mi costringe anche a salvare come XLSM
    Leo

    LEO
    https://t.me/LordBrum
  • OFFLINE
    federico460
    Post: 2.544
    Registrato il: 10/10/2013
    Città: VICENZA
    Età: 69
    Utente Veteran
    365
    00 19/01/2022 10:06
    ciao
    Leo
    onestamente per contare gli addendi
    io conosco questo sistema
    ( ma è limitato )

    o si va ad una macro

    trovato
    in un file vecchio che avevo archiviato
    =SOMMA(LUNGHEZZA(TESTO.FORMULA(A1))-LUNGHEZZA(SOSTITUISCI(TESTO.FORMULA(A1);"+";""))+1)

    sempre matriciale
    ctrl maiuscolo invio

    ma parte dal 2013
    [Modificato da federico460 19/01/2022 10:11]
  • OFFLINE
    L2018
    Post: 146
    Registrato il: 02/04/2018
    Città: PESCARA
    Età: 75
    Utente Junior
    EXCEL 2016 - SPREAD32
    00 19/01/2022 10:13
    il giochino degli addendi è interessante
    nella formula attuale si puo' aggiungere anche la sottrazione,funziona lo stesso
    anche io da qualche parte ho trvato una macro , devo recuperarla, intanto provo la tua ultima formula

    LEO
    https://t.me/LordBrum
  • OFFLINE
    federico460
    Post: 2.545
    Registrato il: 10/10/2013
    Città: VICENZA
    Età: 69
    Utente Veteran
    365
    00 19/01/2022 10:22
    ciao
    se hai il 2007 non dovrebbe funzionare
  • OFFLINE
    L2018
    Post: 147
    Registrato il: 02/04/2018
    Città: PESCARA
    Età: 75
    Utente Junior
    EXCEL 2016 - SPREAD32
    00 19/01/2022 10:23
    infatti

    LEO
    https://t.me/LordBrum
  • OFFLINE
    L2018
    Post: 148
    Registrato il: 02/04/2018
    Città: PESCARA
    Età: 75
    Utente Junior
    EXCEL 2016 - SPREAD32
    00 19/01/2022 10:26
    ma col mio ottimo SPREAD32 funziona, bene

    LEO
    https://t.me/LordBrum
  • OFFLINE
    locatevaresino
    Post: 2.384
    Registrato il: 21/03/2008
    Città: LOCATE VARESINO
    Età: 76
    Utente Veteran
    2007 / 13
    00 19/01/2022 12:07
    ciao a tutti

    una UDF da inserire in un modulo


    Function ContaAddendi(ByVal cella As Range, ByVal operatore As String) As Long
    Dim stringa As String
    stringa = cella.FormulaR1C1
    ContaAddendi = Len(stringa) - Len(Replace(stringa, operatore, "")) + 1
    End Function



    utilizzo
    =ContaAddendi(A1;"+")

    in questo modo possimo calcolare qualsiasi operatore

    Ciao da locate
    excel 2007 / 13
  • OFFLINE
    dodo47
    Post: 3.268
    Registrato il: 06/04/2013
    Utente Master
    2010
    00 19/01/2022 12:14
    ciao locate
    perchè +1 ??

    un caro saluto




    Domenico
    Win 10 - Excel 2016
  • OFFLINE
    L2018
    Post: 149
    Registrato il: 02/04/2018
    Città: PESCARA
    Età: 75
    Utente Junior
    EXCEL 2016 - SPREAD32
    10 19/01/2022 12:19
    forse perchè in una somma gli addendi sono sempre uno in più dei segni di operazione

    Leo

    LEO
    https://t.me/LordBrum
  • OFFLINE
    Inbario
    Post: 82
    Registrato il: 04/08/2004
    Utente Junior
    2007
    00 20/01/2022 23:18
    devo aggiornare il mio excel, comunque grazie
    Excel 2007
  • 15MediaObject5,00116 1