vlookup formula problem

%3CLINGO-SUB%20id%3D%22lingo-sub-1920700%22%20slang%3D%22en-US%22%3Evlookup%20formula%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1920700%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20question%20about%20the%20vlookup%20formula%20(I%20guess).%3C%2FP%3E%3CP%3EI%20would%20like%20to%20link%20two%20formulas%20(like%20IF%20and%20VLOOKUP%2C%20or%20IFNA%20and%20VLOOKUP%2C%20I'm%20not%20sure).%3C%2FP%3E%3CP%3EHere's%20my%20needs%3A%20in%20column%20B%20I%20have%20a%20list%20of%20names%2C%20in%20column%20F%20I%20have%20some%20numbers.%20But%20not%20every%20name%20has%20a%20number%20in%20F%20column.%20I%20need%20the%20formula%20to%20display%20me%20a%20YES%20if%20there's%20a%20number%2C%20otherwise%20a%20NO.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20argument%20I'm%20trying%20to%20create%20is%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eif%20VLOOKUP%20finds%20a%20value%20in%20B5%2C%20and%20F5%20is%20blank%2C%20then%20return%20this%3B%20if%20VLOOKUP%20finds%20a%20value%20in%20B5%2C%20and%20F5%20is%20NOT%20blank%2C%20then%20return%20this%3B%20if%20VLOOKUP%20does%20NOT%20find%20a%20value%2C%20then%20return%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere's%20another%20way%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eif%20VLOOKUP%20finds%20a%20value%20in%20B5%2C%20and%20F5%20is%20blank%20OR%20if%20VLOOKUP%20does%20NOT%20find%20a%20value%3CSPAN%3E%2C%20then%20return%20this%3B%20if%20VLOOKUP%20finds%20a%20value%20in%20B5%2C%20and%20F5%20is%20NOT%20blank%2C%20then%20return%20this.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20guys%20have%20any%20idea%20to%20help%20me%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20so%20much%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1920700%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%20%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EMaybe%20you%20can%20adapt%20it%20to%20your%20needs!%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3Eotherwise%20send%20your%20table%20with%20an%20example%20(w%2Fout%20sensitive%20data)!%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3Eadditional%20infos%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EIF%20function%20-%20nested%20formulas%20and%20avoiding%20pitfalls%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fif-function-%25e2%2580%2593-nested-formulas-and-avoiding-pitfalls-0b22ff44-f149-44ba-aeb5-4ef99da241c8%3Fui%3Den-us%26amp%3Brs%3Den-us%26amp%3Bad%3Dus%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fif-function-%25e2%2580%2593-nested-formulas-and-avoiding-pitfalls-0b22ff44-f149-44ba-aeb5-4ef99da241c8%3Fui%3Den-us%26amp%3Brs%3Den-us%26amp%3Bad%3Dus%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20be%20happy%20to%20know%20if%20I%20could%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENikolino%3C%2FP%3E%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E*%20Kindly%20Mark%20and%20Vote%20this%20reply%20if%20it%20helps%20please%2C%20as%20it%20will%20be%20beneficial%20to%20more%20community%20members%20reading%20here.%3C%2FP%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1920755%22%20slang%3D%22de-DE%22%3ESubject%3A%20vlookup%20formula%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1920755%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F877087%22%20target%3D%22_blank%22%3E%40marcogallo99%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EI%20didn't%20really%20understand%20what%20you're%20up%20to.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3Ebut%20here%20is%20an%20example%20of%20a%20%22VLOOKUP%2C%20IF%3B%20AND%22%20combination%20%2C%2C%2C%2C%2C%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3E%3D%20IF%20(AND%20(VLOOKUP)%20Sheet2!%20A%3A%20I%3B%209%3B%200)%26gt%3B%20%3D%20(G3%20%2B%20I3)%3B%20(N3%20%26lt%3B0))%3B%20%22order%22%3B%3D%22%22%20if%3D%22%22%20(and%3D%22%22%20(g3%3D%22%22%26gt%3B%20%3D%20L3%3B%20%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EI3%26gt%3B%200)%3B%20%22Cancel%22%3B%20%22%22))%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%20%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EMaybe%20you%20can%20adapt%20it%20to%20your%20needs!%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3Eotherwise%20send%20your%20table%20with%20an%20example%20(w%2Fout%20sensitive%20data)!%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3Eadditional%20infos%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EIF%20function%20-%20nested%20formulas%20and%20avoiding%20pitfalls%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fif-function-%25e2%2580%2593-nested-formulas-and-avoiding-pitfalls-0b22ff44-f149-44ba-aeb5-4ef99da241c8%3Fui%3Den-us%26amp%3Brs%3Den-us%26amp%3Bad%3Dus%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fif-function-%25e2%2580%2593-nested-formulas-and-avoiding-pitfalls-0b22ff44-f149-44ba-aeb5-4ef99da241c8%3Fui%3Den-us%26amp%3Brs%3Den-us%26amp%3Bad%3Dus%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20be%20happy%20to%20know%20if%20I%20could%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENikolino%3C%2FP%3E%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E*%20Kindly%20Mark%20and%20Vote%20this%20reply%20if%20it%20helps%20please%2C%20as%20it%20will%20be%20beneficial%20to%20more%20community%20members%20reading%20here.%3C%2FP%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1920781%22%20slang%3D%22en-US%22%3EBetreff%3A%20vlookup%20formula%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1920781%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%3C%2FP%3E%3CP%3EI'm%20so%20sorry%2C%20I'm%20Italian%20and%20my%20English%20is%20not%20so%20good%20ahahah...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20attach%20an%20example%20table.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20you%20see%2C%20I%20have%20some%20names%20in%20column%20C%2C%20but%20not%20all%20of%20them%20have%20a%20number%20in%20column%20F.%3C%2FP%3E%3CP%3EI%20need%20to%20count%20how%20many%20times%20there%20is%20a%20name%20in%20C%20with%20a%20number%20in%20F%20(there's%20no%20way%20a%20name%20can%20figure%20once%20with%20a%20number%20and%20then%20without%20a%20number%2C%20every%20single%20name%20has%20ALWAYS%20or%20NEVER%20a%20number)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20an%20example%2C%20I%20created%20(in%20another%20spreadsheet)%20a%20list%20with%20an%20example%20of%20all%20the%20names%20I%20need%2C%20and%20these%20will%20be%20the%20results%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMATT%26nbsp%3B%20%26nbsp%3B%200%3C%2FP%3E%3CP%3EGEORGE%26nbsp%3B%20%26nbsp%3B0%3C%2FP%3E%3CP%3EKEVIN%26nbsp%3B%20%26nbsp%3B2%3C%2FP%3E%3CP%3ELUCAS%26nbsp%3B%20%26nbsp%3B%201%3C%2FP%3E%3CP%3EANTHONY%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B0%3C%2FP%3E%3CP%3EMICHAEL%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%201%3C%2FP%3E%3CP%3EPETER%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B0%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20even%20sure%20which%20formulas%20I%20need%2C%20I%20thought%20about%20an%20IF%20and%20a%20VLOOKUP%20but%20it%20can%20be%20everything%20you%20want...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20so%20much%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1920842%22%20slang%3D%22de-DE%22%3ESubject%3A%20vlookup%20formula%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1920842%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F877087%22%20target%3D%22_blank%22%3E%40marcogallo99%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EIf%20I%20understand%20correctly%20the%20picture%20of%20you%20and%20the%20translation%2C%20I%20will%20send%20you%20this%20file%20as%20a%20solution%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3ESarei%20felice%20di%20sapere%20se%20potessi%20aiutare.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3ENikolino%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3ESo%20di%20non%20sapere%20niente%20(Socrate)%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3E*%20Segna%20e%20vota%20gentilmente%20questa%20risposta%20se%20aiuta%2C%20per%20favore%2C%20poich%C3%A9%20sar'%20utile%20per%20pi%20membri%20della%20Comunit%20che%20leggono%20qui.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1920891%22%20slang%3D%22en-US%22%3EBetreff%3A%20vlookup%20formula%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1920891%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F877087%22%20target%3D%22_blank%22%3E%40marcogallo99%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20variant%20that%20could%20be%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20478px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F235384i5E62763E490EB4EF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Ewith%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DLET(%0A%20%20%20%20namesRange%2C%20C2%3AC14%2C%0A%20%20%20%20numbersRange%2C%20F2%3AF14%2C%0A%20%20%20%20uniqueNames%2C%20UNIQUE(namesRange)%2C%0A%20%20%20%20counts%2C%20COUNTIFS(numbersRange%2C%22%26gt%3B0%22%2CnamesRange%2CuniqueNames)%2C%0A%20%20%20%20rawResult%2C%20IF(%7B1%2C0%7D%2CuniqueNames%2Ccounts)%2C%0A%20%20%20%20Result%2CFILTER(rawResult%2CuniqueNames%26lt%3B%26gt%3B0)%2C%0AResult)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1921417%22%20slang%3D%22en-US%22%3EBetreff%3A%20vlookup%20formula%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1921417%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20very%20much%20for%20interesting%20in%20my%20problem%2C%20but%20unfortunately%20it's%20not%20what%20I%20need%20(it's%20not%20your%20fault%20obviously)...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'll%20try%20to%20explain%20WHY%20I%20need%20all%20this.%3C%2FP%3E%3CP%3EI%20have%20a%20school%20of%20motorbike%2C%20and%20it%20counts%20like%20800%20students.%20Everyone%20of%20these%20800%20can%20come%20whenever%20they%20want%2C%20once%2C%20twice%20or%20even%20more%2C%20but%20everyday%20of%20lesson%2C%20we%20can%20accept%20only%20the%20first%20100%20who%20subscribe.%20I%20have%20a%20list%20of%20all%20the%20800%20names%2C%20but%20of%20course%20not%20all%20of%20them%20come%20to%20EVERY%20SINGLE%20day%20of%20lessons!%20So%20I%20need%20to%20count%20how%20many%20times%20they%20came.%3C%2FP%3E%3CP%3EHow%20do%20we%20know%20if%20they%20came%20in%20a%20specific%20day%3F%20Well%20of%20course%2C%20we%20can%20see%20his%20name%20among%20the%20100%20subscribers%2C%20but%20we%20will%20count%20him%20only%20IF%20he%20has%20a%20price%20next%20to%20him%20(if%20there%20is%20not%20a%20price%2C%20it%20means%20that%20he%20subscribed%20but%20he%20didn't%20come%2C%20so%20we%20don't%20need%20to%20count%20him).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20attach%20an%20example%20table%20with%20the%20list%20of%20all%20the%20names%20and%20two%20days%20of%20lessons%2C%20and%20the%20result%20I%20need%20from%20this%20formula.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20saw%20that%20you%20put%20a%20formula%20in%20column%20C%20that%20gives%20the%20sum%20of%20all%20the%20values%20of%20a%20single%20name%20(ex.%20Kevin%20has%202%20values%20%2250%22%2C%20so%20next%20to%20Kevin%20I%20will%20see%2050%2B50%3D100%2C%20Lucas%20has%20%2225%22%20and%20%2270%22%20so%20next%20to%20Lucas%20I%20will%20always%20see%2025%2B75%3D95%2C%20and%20so%20on).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20I%20don't%20need%20to%20see%20the%20sum%20of%20the%20values.%20It%20doesn't%20matter%20for%20me%20if%20they%20have%2050%2C%2025%2C%2070%20or%20whatever.%20I%20need%20just%20to%20see%20how%20many%20times%20they%20have%20a%20value!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMaybe%20the%20solution%20from%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3Bfits%20more%20my%20needs%2C%20but%20I'm%20not%20so%20confident%20with%20those%20%22xlfn%22%20and%20%22xlpm%22%20formulas...%20Is%20there%20another%20easier%20way%20to%20solve%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20so%20much%20guys%20for%20your%20effort!!!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1921466%22%20slang%3D%22en-US%22%3EBetreff%3A%20vlookup%20formula%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1921466%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F877087%22%20target%3D%22_blank%22%3E%40marcogallo99%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20a%20simple%20pivot%20table%20solution.%20It%20requires%20a%20change%20of%20structure.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1921633%22%20slang%3D%22de-DE%22%3ESubject%3A%20vlookup%20formula%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1921633%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F877087%22%20target%3D%22_blank%22%3E%40marcogallo99%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EMarco%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EEcco%20un%20piccolo%20esempio%20nel%20Foglio%202.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EPremere%20il%20tasto%20destro%20del%20mouse%20sui%20campi%20del%20giorno%20e%20viene%20visualizzato%20%221%22%2C%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3Eripetere%20%221%22%20scompare.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EPassword%20VBA%3A%20%221234%22%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EAggiunge%20automaticamente%20i%20giorni%20accanto%20ai%20nomi%20dei%20partecipanti.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EPotresti%20ampliarlo%20e%20migliorarlo%20come%20desideri%20...%20poi%20sarebbe%20un%20lavoro%20commissionato.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3ENon%20faccio%20lavori%20su%20commissione%20a%20meno%20che%20non%20ci%20sia%20la%20vera%20pizza%20napoletana%20...%20sto%20scherzando%20%3A).%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EPer%20informazioni%3A%20l'utente%20non%20parla%20italiano%2C%20questa%20una%20traduzione%20da%20un%20programma%20software.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3ESarei%20felice%20di%20sapere%20se%20potessi%20aiutare.%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3ENikolino%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3ESo%20di%20non%20sapere%20niente%20(Socrate)%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3E*%20Segna%20e%20vota%20gentilmente%20qualsiasi%20risposta%20se%20aiuta%2C%20per%20favore%2C%20poich%C3%A9%20sar%20utile%20per%20pi%20membri%20della%20Comunit%20che%20leggono%20qui.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1921725%22%20slang%3D%22en-US%22%3EBetreff%3A%20vlookup%20formula%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1921725%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F877087%22%20target%3D%22_blank%22%3E%40marcogallo99%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20have%26nbsp%3B%3CSPAN%3Exlfn%20that%20means%20your%20version%20of%20Excel%20doesn't%20support%20dynamic%20arrays%20and%20these%20formulas%20won't%20work.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIn%20general%20basis%20formula%20could%20be%20relatively%20simple%2C%20e.g.%20in%20C11%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DIF(%24B11%3D%22%22%2C%22%22%2CCOUNTIFS(J%247%3AJ%2419%2C%24B11%2CK%247%3AK%2419%2C%22%26gt%3B0%22))%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%3Eand%20drag%20it%20down%20till%20end%20of%20the%20list.%20For%20the%20next%20day%20copy%20this%20formula%20to%20the%20right%2C%20adjust%20ranges%20and%20copy%20again%20till%20end%20of%20the%20list%2C%20etc.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThat%20will%20be%20still%20a%20lot%20of%20manual%20work%20and%20the%20main%20issue%20is%20how%20you%20structure%20the%20data%20and%20how%20you%20keep%20it.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFor%20example%2C%20in%20main%20list%20you%20have%20name%20%22Michael%20%22%20(with%20spaces%20at%20the%20end)%20and%20in%20the%20date%20list%20%22Michael%22.%20Extra%20spaces%20could%20be%20removed%20by%20formulas%2C%20but%20that%20could%20be%20other%20misprints%20of%20you%20add%20names%20manually%2C%20like%20%22Michal%22.%26nbsp%3B%20Thus%20you%20need%20to%20check%20all%20result%20which%20is%20not%20far%20from%20manual%20calculations.%20Solution%20could%20data%20validation%20drop%20down%20lists%20or%20another%20data%20structuring%26nbsp%3Bto%20use%20every%20name%20only%20one.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAnother%20issue%20with%20the%20sample%20is%20the%20need%20to%20adjust%20formula%20for%20each%20day%20since%20there%20is%20no%20formal%20logic%20where%20to%20find%20data%20for%20each%20day.%20If%20such%20logic%20exists%20formulas%20could%20be%20adjusted%20to%20only%20copy%2Fpaste%20them%20without%20adjustments%20for%20each%20date.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThus%20the%20solution%20depends%20on%20actual%20data%20structuring%20and%20are%20you%20ready%20to%20change%20it%20or%20not.%20We%20don't%20know%20your%20business%20and%20don't%20know%20what%20else%20do%20you%20have%20in%20the%20sheets%20and%20how%20else%20you%20use%20the%20information.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFrom%20formulas%20point%20of%20view%20most%20reliable%20will%20PivotTable%20as%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1639%22%20target%3D%22_blank%22%3E%40Detlef%20Lewin%3C%2FA%3E%26nbsp%3Bsuggested%2C%20but%20that%20all%20depends%20on%20how%20deep%20the%20data%20restructuring%20will%20be.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EPerhaps%20your%20actual%20data%20looks%20totally%20different%20and%20PivotTable%20works%20on%20it%20as%20it%20is.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi everyone,

 

I have a question about the vlookup formula (I guess).

I would like to link two formulas (like IF and VLOOKUP, or IFNA and VLOOKUP, I'm not sure).

Here's my needs: in column B I have a list of names, in column F I have some numbers. But not every name has a number in F column. I need the formula to display me a YES if there's a number, otherwise a NO.

 

The argument I'm trying to create is:

 

if VLOOKUP finds a value in B5, and F5 is blank, then return this; if VLOOKUP finds a value in B5, and F5 is NOT blank, then return this; if VLOOKUP does NOT find a value, then return this.

 

Here's another way:

 

if VLOOKUP finds a value in B5, and F5 is blank OR if VLOOKUP does NOT find a value, then return this; if VLOOKUP finds a value in B5, and F5 is NOT blank, then return this.

 

Do you guys have any idea to help me?

 

Thank you so much

10 Replies
Highlighted

@marcogallo99 

I didn't really understand what you're up to.

but here is an example of a "VLOOKUP, IF; AND" combination ,,,,,

= IF (AND (VLOOKUP ($ A3; Sheet2! $ A: $ I; 9; 0)> = (G3 + I3); (N3 <0)); "Order"; IF (AND (G3> = L3; I3> 0); "Cancel"; ""))

maybe you can adapt it to your needs!

 

otherwise send your table with an example (w/out sensitive data)!

 

additional infos:

IF function – nested formulas and avoiding pitfalls

https://support.microsoft.com/en-us/office/if-function-%e2%80%93-nested-formulas-and-avoiding-pitfal...

 

I would be happy to know if I could help.

 

Nikolino

I know I don't know anything (Socrates)

 

* Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here.

Highlighted

@Nikolino

I'm so sorry, I'm Italian and my English is not so good ahahah...

 

I attach an example table.

 

As you see, I have some names in column C, but not all of them have a number in column F.

I need to count how many times there is a name in C with a number in F (there's no way a name can figure once with a number and then without a number, every single name has ALWAYS or NEVER a number)

 

Here is an example, I created (in another spreadsheet) a list with an example of all the names I need, and these will be the results:

 

MATT    0

GEORGE   0

KEVIN   2

LUCAS    1

ANTHONY     0

MICHAEL      1

PETER     0

 

I'm not even sure which formulas I need, I thought about an IF and a VLOOKUP but it can be everything you want...

 

Thank you so much

Highlighted

@marcogallo99 

If I understand correctly the picture of you and the translation, I will send you this file as a solution.

 

Sarei felice di sapere se potessi aiutare.

 

Nikolino

So di non sapere niente (Socrate)

* Segna e vota gentilmente questa risposta se aiuta, per favore, poiché sarà utile per più membri della Comunità che leggono qui.

Highlighted

@marcogallo99 

As variant that could be

image.png

with

=LET(
    namesRange, C2:C14,
    numbersRange, F2:F14,
    uniqueNames, UNIQUE(namesRange),
    counts, COUNTIFS(numbersRange,">0",namesRange,uniqueNames),
    rawResult, IF({1,0},uniqueNames,counts),
    Result,FILTER(rawResult,uniqueNames<>0),
Result)
Highlighted

@Nikolino 

 

Thank you very much for interesting in my problem, but unfortunately it's not what I need (it's not your fault obviously)...

 

I'll try to explain WHY I need all this.

I have a school of motorbike, and it counts like 800 students. Everyone of these 800 can come whenever they want, once, twice or even more, but everyday of lesson, we can accept only the first 100 who subscribe. I have a list of all the 800 names, but of course not all of them come to EVERY SINGLE day of lessons! So I need to count how many times they came.

How do we know if they came in a specific day? Well of course, we can see his name among the 100 subscribers, but we will count him only IF he has a price next to him (if there is not a price, it means that he subscribed but he didn't come, so we don't need to count him).

 

I attach an example table with the list of all the names and two days of lessons, and the result I need from this formula.

 

I saw that you put a formula in column C that gives the sum of all the values of a single name (ex. Kevin has 2 values "50", so next to Kevin I will see 50+50=100, Lucas has "25" and "70" so next to Lucas I will always see 25+75=95, and so on).

 

But I don't need to see the sum of the values. It doesn't matter for me if they have 50, 25, 70 or whatever. I need just to see how many times they have a value!

 

Maybe the solution from @Sergei Baklan fits more my needs, but I'm not so confident with those "xlfn" and "xlpm" formulas... Is there another easier way to solve it?

 

Thank you so much guys for your effort!!!!

Highlighted

@marcogallo99 

Here is a simple pivot table solution. It requires a change of structure.

 

Highlighted

@marcogallo99 

Marco,

Ecco un piccolo esempio nel Foglio 2.

Premere il tasto destro del mouse sui campi del giorno e viene visualizzato "1",

ripetere "1" scompare.

Password VBA: "1234"

Aggiunge automaticamente i giorni accanto ai nomi dei partecipanti.

 

Potresti ampliarlo e migliorarlo come desideri ... poi sarebbe un lavoro commissionato.

Non faccio lavori su commissione a meno che non ci sia la vera pizza napoletana ... sto scherzando :).

 

Per informazioni: l'utente non parla italiano, questa è una traduzione da un programma software.

 

Sarei felice di sapere se potessi aiutare.

 

Nikolino

So di non sapere niente (Socrate)

* Segna e vota gentilmente qualsiasi risposta se aiuta, per favore, poiché sarà utile per più membri della Comunità che leggono qui.

Highlighted

@marcogallo99 

If you have xlfn that means your version of Excel doesn't support dynamic arrays and these formulas won't work.

In general basis formula could be relatively simple, e.g. in C11

=IF($B11="","",COUNTIFS(J$7:J$19,$B11,K$7:K$19,">0"))

and drag it down till end of the list. For the next day copy this formula to the right, adjust ranges and copy again till end of the list, etc.

 

That will be still a lot of manual work and the main issue is how you structure the data and how you keep it.

For example, in main list you have name "Michael " (with spaces at the end) and in the date list "Michael". Extra spaces could be removed by formulas, but that could be other misprints of you add names manually, like "Michal".  Thus you need to check all result which is not far from manual calculations. Solution could data validation drop down lists or another data structuring to use every name only one.

 

Another issue with the sample is the need to adjust formula for each day since there is no formal logic where to find data for each day. If such logic exists formulas could be adjusted to only copy/paste them without adjustments for each date.

 

Thus the solution depends on actual data structuring and are you ready to change it or not. We don't know your business and don't know what else do you have in the sheets and how else you use the information. 

 

From formulas point of view most reliable will PivotTable as @Detlef Lewin suggested, but that all depends on how deep the data restructuring will be.

 

Perhaps your actual data looks totally different and PivotTable works on it as it is.

Highlighted

@Nikolino 

L'ho stretto un po 'e l'ho tagliato in italiano ... niente di meglio da fare :))

 

Non è vero ... aveva qualcosa di meglio da fare ... ma non volevo farlo .... sognavo la pizza :)))

Sto solo scherzando, per favore non prenderlo sul serio

 

Il file (VBA Pass: 1234):

Ora puoi navigare nel file fino al mese e tornare indietro con il semplice tocco di un pulsante.

È possibile cercare il nome se sono già stati inseriti molti nomi.

Una riga aggiuntiva viene aggiunta automaticamente dopo ogni immissione del nome.

 

Ti auguro una buona giornata / notte con tanta salute, gioia e amore.

 

Grazie per la pazienza e il tempo.

 

Nikolino

So di non sapere niente (Socrate)

* Segna e vota gentilmente qualsiasi risposta se aiuta, per favore, poiché sarà utile per più membri della Comunità che leggono qui.

Highlighted

@Sergei Baklan 

@Nikolino 

@Detlef Lewin 

 

Dear @Sergei Baklan , you successfully found the perfect solution for me. This was right what I was looking for, a simple "magic formula" that I can copy, paste and adapt wherever I want, and that updates automatically when I update the original data (if later I add a name, the formula will count it without my action).

 

I won't have too much manual work, because my school only opens 2/3 weekends per month (it's for children, and they have school during the week), so there won't be 365 formulas to adjust but only 60 per year more or less... And I trust my hands there won't be misprints during the typing...

 

I checked the solutions from @Nikolino and @Detlef Lewin , they're also brilliant and I'll be inspired by them, but I'm not too confident with PivotTable and VBA language... But I'm going to try to learn these two functions becaue I'm sure my work will be much more faster with them!

 

Anyway, @Nikolino how did you register the Macro for the "Search name" button on your new file? I tried to start the record, open the "Find" popup, stop the record, but it doesn't work... (great Italian btw!)

And the buttons to jump directly to the months are a great idea!

 

I really didn't expect so much help from you guys and from this community. If someday you will come to North Italy, please contact me and I'll be happy to offer you a free motorbike lesson for you and your sons! (www.juniormotoschool.it). 

...Or a Pizza if you prefer :):)