+ Reply to Thread
Results 1 to 14 of 14

change formula without validation data

Hybrid View

  1. #1
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    change formula without validation data

    Hello to all from Italy.
    I ask for your help for a formula change.
    I hope my English is understandable.
    The formula is in column B:

    = IF (B3 = "", "", IF (ISNA (VLOOKUP (B3, Sheet1! $ A $ 2: $ B $ 1500, 2, FALSE)), "code not present in articles or wrong! "VLOOKUP (B3, Sheet1! $ A $ 2: $ B $ 1500, 2, FALSE)))

    The change that I would like, if possible, is that if I enter a number to tell me:
    "repeated number prensente in BOX ...".
    I mean I write 123 in column B which is now in cell B2 in 1 BOX (cell A2)
    If I write again in 123, for example B12 validation tells me "double" I would like the formula to tell me:
    "twice the number present in BOX 3"
    max_max
    --------------------------------------------------------------------------------------------------------------------------------------------------------

    Ciao a tutti da Italia.
    Io chiedo il vostro aiuto per cambiare una formula.
    Spero che il mio inglese è comprensibile.
    La formula è nella colonna B:

    =SE(B3="";"";SE(VAL.NON.DISP(CERCA.VERT(B3;Foglio1!$A$2:$B$1500;2;FALSO));"codice non presente in articoli o errato!";CERCA.VERT(B3;Foglio1!$A$2:$B$1500;2;FALSO)))

    La modifica che vorrei, se è possibile, é che se inserisco un numero mi dica:
    "numero ripetuto prensente in BOX...".
    Mi spiego scrivo 123 nella colonna B che ora è nella cella B2 nel BOX 1 (cella A2)
    Se scrivo un'altra volta 123 per esempio in B12 la convalida mi dice "doppio" io vorrei che la formula mi dicesse:
    "numero doppio presente nel BOX 3"
    max_max

    convalida 31_08_13 - ingl.xlsx

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: change formula without validation data

    You can use:
    =IF(B11="","",IF(ISNA(VLOOKUP(B11,Foglio1!$A$2:$B$1500,2,FALSE)),"codice non presente in articoli o errato!",IF(COUNTIF($B$2:$B$1500,$B11)>1,"Value " & $B11 & " at " & INDEX($A$2:$A$1500,MATCH($B11,$B$2:$B$1500,0)),VLOOKUP(B11,Foglio1!$A$2:$B$1500,2,FALSE))))
    in column C, but data validation in column B wont allow dublicates.
    Last edited by protonLeah; 09-01-2013 at 05:54 PM.
    Ben Van Johnson

  3. #3
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: change formula without validation data

    Error in translation
    Attached Files Attached Files
    Last edited by max_max; 09-01-2013 at 08:02 AM. Reason: Error in translation

  4. #4
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: change formula without validation data

    Hello protonleah,
    thank you for your answer.
    I translated your formula in Italian:

    = SE(B11="";"";SE(VALORE.NON.DISP.(CERCA.VERT(B11;Foglio1!$A$2:$B$1500;2;FALSO));"Codice non presente in Articoli o errato";SE(CONTA.SE($B$2:$B$1501;$B11)>1;"valore"&$B11&"a"&INDICE($A$2:$A$1501;CONFRONTA($B11;$B$2:$B$1501;0));CERCA.VERT(B11;Foglio1!$A$2:$B$1500;2;FALSO))))

    does not work # NAME?.
    I do not know if the macro is not translated correctly or there is an error in the formula.
    I will post the file with the formula.
    Thank you,
    max_max

    -------------------------------------------------------------------------------------------------------------------------------------

    Ciao protonleah,
    grazie della risposta.
    Ho tradotto la tua formula in italiano:

    = SE(B11="";"";SE(VALORE.NON.DISP.(CERCA.VERT(B11;Foglio1!$A$2:$B$1500;2;FALSO));"Codice non presente in Articoli o errato";SE(CONTA.SE($B$2:$B$1501;$B11)>1;"valore"&$B11&"a"&INDICE($A$2:$A$1501;CONFRONTA($B11;$B$2:$B$1501;0));CERCA.VERT(B11;Foglio1!$A$2:$B$1500;2;FALSO))))

    non funziona errore #NOME?.
    Io non so se è la macro non tradotta correttamente oppure c'è un errore nella formula.
    Io posto il file con la formula.
    Grazie,
    max_max

    convalida 01_09_13 - ingl.xlsx
    Last edited by max_max; 09-01-2013 at 01:12 PM. Reason: wrong name

  5. #5
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: change formula without validation data

    Hello protonleah,
    I'm sorry your formula is perfect!
    I was wrong to translate the formula in Italian, this is the correct translation:

    = SE(B2="";"";SE(VAL.NON.DISP(CERCA.VERT(B2;Foglio1!$A$2:$B$1500;2;FALSO));"articolo non presente in < articoli > o errato";SE(CONTA.SE($B$2:$B$1501;$B2)>1;"articolo "&$B2&" già presente nel "&INDICE($A$2:$A$1501;CONFRONTA($B2;$B$2:$B$1501;0));CERCA.VERT(B2;Foglio1!$A$2:$B$1500;2;FALSO))))

    I was wrong to translate this:
    VLOOKUP
    in italian it is:
    VAL.NON.DISP
    Thank you so much.
    regards,
    max_max

    --------------------------------------------------------------------------------------------------------------------------------

    Ciao protonleah,
    scusami la tua formula è perfetta!!!
    Ho sbagliato a tradurre la formula in italiano, questa è la traduzione esatta:

    = SE(B2="";"";SE(VAL.NON.DISP(CERCA.VERT(B2;Foglio1!$A$2:$B$1500;2;FALSO));"articolo non presente in < articoli > o errato";SE(CONTA.SE($B$2:$B$1501;$B2)>1;"articolo "&$B2&" già presente nel "&INDICE($A$2:$A$1501;CONFRONTA($B2;$B$2:$B$1501;0));CERCA.VERT(B2;Foglio1!$A$2:$B$1500;2;FALSO))))

    Ho sbagliato a tradurre questo:
    VLOOKUP
    In italiano è:
    VAL.NON.DISP
    Ti ringrazio tantissimo.
    Saluti,
    max_max

  6. #6
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: change formula without validation data

    Hello,
    you can change to a formula?
    The formula works fine now, the change is this:
    I write 123 in cell B16 and then I write at least 123 for example in cell B2 in cell C2 should write: "articolo già presente nel BOX 3"
    Thank you again.
    max_max

    -------------------------------------------------------------------------------------------------------------------------------------

    Ciao,
    è possibile una modifica alla formula?
    La formula ora funziona bene, la modifica è questa:
    scrivo 123 nella cella B16 e poi scrivo ancora 123 per esempio nella cella B2 nella cella C2 dovrebbe scrivere: "articolo già presente nel BOX 3"
    Ti ringrazio ancora.
    max_max

    convalida 01_09_13 - PROTONLEAH_2.xlsx

  7. #7
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: change formula without validation data

    Hello to all,
    anyone can solve this my dilemma?
    max_max
    ---------------------------------
    Ciao a tutti,
    qualcuno può risolvere questo mio dilemma?
    max_max

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: change formula without validation data

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  9. #9
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: change formula without validation data

    Hello FDibbins,
    I'm sorry if I have not read the forum rules. I did not understand what to do.
    I saw that in the other forum you posted the link to this thread, now what should I do?
    I need to delete the thread the other forum?
    Sorry again.
    max_max

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: change formula without validation data

    what does the bold test in my post say? I think that's pretty easy to understand

  11. #11
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: change formula without validation data

    I'm sorry but I do not understand much English and I do the translation with google translator.
    In the other forum link you put it, in this forum I have to put me?
    max_max
    -----------------------------------------------------------------------------------------------
    Scusami ma l'inglese non lo capisco tanto e la traduzione la faccio con google traduttore.
    Nell'altro forum il collegamento l'hai messo tu, in questo forum lo devo mettere io?
    max_max

  12. #12
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: change formula without validation data

    I posted in this forum:
    http://www.mrexcel.com/forum/excel-q...ml#post3563802
    the same thread.
    max_max
    ----------------------------------------------------------------------------------------
    Ho postato in questo forum:
    http://www.mrexcel.com/forum/excel-q...ml#post3563802
    lo stesso thread.
    max_max

  13. #13
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: change formula without validation data

    Please note: I used the URL to translate my English to Italian. I do no know how this will work. But it was fun.
    Nota: ho usato l'URL da tradurre il mio inglese-italiano. Lo faccio non so come questo lavoro. Ma è stato divertente.

    http://imtranslator.net/translation/english/to-italian/translation/
    ------------------------------------------------

    There are no Excel functions that can determine which value was entered first. I have written a User Defined Function (UDF) seems to work with the sample workbook.
    Non ci sono funzioni di Excel che possono determinare quale valore era entrato prima. Ho scritto un utente definito funzione (UDF) sembra funzionare con la cartella di lavoro di esempio.
    Option Explicit
    Option Base 1
    Public Function LookupName(ByVal Target As Range) As String
        Dim BRange  As Range, _
            BValues As Variant, _
            Result  As Variant, _
            LastRow As Long
            
        LastRow = Sheets("Foglio2").Cells(Rows.Count, "A").End(xlUp).Row
        
        Set BRange = Range("B1:B" & LastRow)
        
        ' caricare i valori della colonna B in una matrice
        
        BValues = WorksheetFunction.Transpose(BRange.Value)
        
        'cancellare l'elemento della matrice a sulla stessa riga come valore appena entrato.
        
        BValues(Target.Row) = ""
        
        Select Case Target.Value
            Case Is = ""                        ' is empty
                LookupName = ""
            
            Case Is <> ""                       ' is not empty
            
                'controllare se il valore esiste già
                On Error Resume Next
                Result = WorksheetFunction.Match(Target.Value, BValues, 0)
                
                If Result > 0 Then
                    ' Valore presente nella colonna B
                    
                    LookupName = "articolo " & Target.Value & " già presente nel " & Cells(Result, 1).Value
                    
                Else
                    ' Valore non precedentemente immesso.
                    ' Di conseguenza, cercare valore dal secondo foglio.
                    
                    Result = WorksheetFunction.VLookup(Target.Value, Sheets("Foglio1").Range("$A$2:$B$1500"), 2, False)
                    
                    '  Se il valore non viene trovato, scrivere il messaggio di errore alla colonna C.
                    '  In caso contrario, scrivere il valore trovato dal look up.
                    
                    If Result = "" Then
                        LookupName = "articolo non presente in < articoli > o eResultato"
                    Else
                        LookupName = Result
                    End If
                End If
        End Select
    End Function
    Attached Files Attached Files
    Last edited by protonLeah; 09-04-2013 at 11:08 PM.

  14. #14
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: change formula without validation data

    Thanks protonleah,
    the macro works perfectly!
    Unfortunately I can not use it. In the office where I work the computer has restrictions and macros can not use them. I would have hoped there would be a formula, but unfortunately does not exist. Anyway thank you so much the same.
    max_max
    -------------------------------------------------------------------------------------------------------------------------------------
    Grazie protonleah,
    la macro funziona perfettamente!!!
    Purtroppo non posso usarla. In ufficio dove io lavoro il computer ha delle restrizioni e le macro non posso usarle. Avrei sperato che ci fosse una formula, ma purtroppo non esiste. Comunque ti ringrazio tantissimo lo stesso.
    max_max

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 04-11-2011, 05:52 PM
  2. Allow overwriting data in Data Validation and change text colour
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2011, 02:41 PM
  3. Replies: 2
    Last Post: 01-03-2010, 05:21 PM
  4. [SOLVED] How does Data Validation change with a formula change?
    By MayClarkOriginals in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-04-2006, 11:55 PM
  5. [SOLVED] change data validation
    By rachael in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-15-2005, 12:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1