SOLVED

Excel formula

%3CLINGO-SUB%20id%3D%22lingo-sub-2378242%22%20slang%3D%22en-US%22%3EExcel%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378242%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CSPAN%20class%3D%22Y2IQFc%22%3EHallo%2C%3CBR%20%2F%3EI%20am%20trying%20to%20achieve%20the%20following%3A%0AI%20have%20an%20input%20form%20(table%201)%20where%20you%20can%20select%20texts%20using%20a%20drop%20down.%0AIn%20another%20table%20(table%202)%20I%20have%20the%20same%20texts%20(Column%20K)%20and%20a%20column%20with%20processing%20times%20(Column%20O).%0AIf%20a%20text%20is%20selected%20in%20table%201%20I%20want%20the%20corresponding%20processing%20time%20to%20be%20retrieved%20from%20table%202%20%3CBR%20%2F%3Eand%20shown%20in%20column%20K%20in%20table%201.%3CBR%20%2F%3ECan%20anybody%20help%20me%20with%20this%20puzzle%3F%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%26nbsp%3B%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2378242%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378274%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378274%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1060784%22%20target%3D%22_blank%22%3E%40Raymond1093%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20K8%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DIFERROR(VLOOKUP(L8%2C%20'Sheet%20Name'!%24K%24107%3A%24O%24110%2C%205%2C%20FALSE)%2C%20%22%22)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20Dutch%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DALS.FOUT(VERT.ZOEKEN(L8%3B%20'Sheet%20Name'!%24K%24107%3A%24O%24110%3B%205%3B%20ONWAAR)%3B%20%22%22)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ewhere%20Sheet%20Name%20is%20the%20sheet%20with%20the%20lookup%20table.%20If%20it%20is%20the%20same%20sheet%2C%20you%20can%20omit%20the%20part%3C%2FP%3E%0A%3CP%3E'Sheet%20Name'!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFill%20or%20copy%20down%20from%20K8%20to%20K27.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378582%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378582%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1060784%22%20target%3D%22_blank%22%3E%40Raymond1093%3C%2FA%3E%26nbsp%3BAs%20a%20variant%2C%20and%20since%20you%20tagged%20your%20post%20with%20%3CSTRONG%3EOffice%20365%3C%2FSTRONG%3E%2C%20you%20could%20perhaps%20use%20XLOOKUP%20(X.ZOEKEN).%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DXLOOKUP(L8%2C%24L%24100%3A%24L%24200%2C%24O%24100%3A%24O%24200%2C%22%22%2C0)%0A%0Aor%0A%0A%3DX.ZOEKEN(L8%3B%24L%24100%3A%24L%24200%3B%24O%24100%3A%24O%24200%3B%22%22%2C0)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B...%20assuming%20all%20ranges%20are%20in%20the%20same%20sheet%20and%20that%20the%20job%20codes%20are%20listed%20somewhere%20between%20rows%20100%20and%20200.%20Would%20even%20be%20more%20dynamic%20if%20you%20named%20the%20ranges%20like%20%22werksoort%22%20(for%20L100%3AL200)%20and%20%22tijdmeting%22%20(for%20O100%3AO200).%20That%20makes%20the%20formula%20easier%20to%20read%20and%20maintain%20and%20it%20doesn't%20matter%20if%20the%20lookup%20ranges%20are%20in%20a%20different%20sheet.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378849%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378849%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%3C%2FP%3E%3CP%3Ethanks%20a%20million%20Hans%2C%20Works%20like%20a%20charm!!%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%20Raymond%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378852%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378852%22%20slang%3D%22en-US%22%3EThanks%20Rini%2C%20Because%20i%20used%20different%20sheets%20i%20used%20the%20formula%20of%20Hans%2C%20but%20yours%20Works%20too!%3C%2FLINGO-BODY%3E
New Contributor

 

Hallo,
I am trying to achieve the following: I have an input form (table 1) where you can select texts using a drop down. In another table (table 2) I have the same texts (Column K) and a column with processing times (Column O). If a text is selected in table 1 I want the corresponding processing time to be retrieved from table 2
and shown in column K in table 1.
Can anybody help me with this puzzle?

 

 

 

 

4 Replies
best response confirmed by allyreckerman (Microsoft)
Solution

@Raymond1093 

In K8:

 

=IFERROR(VLOOKUP(L8, 'Sheet Name'!$K$107:$O$110, 5, FALSE), "")

 

In Dutch:

 

=ALS.FOUT(VERT.ZOEKEN(L8; 'Sheet Name'!$K$107:$O$110; 5; ONWAAR); "")

 

where Sheet Name is the sheet with the lookup table. If it is the same sheet, you can omit the part

'Sheet Name'!

 

Fill or copy down from K8 to K27.

@Raymond1093 As a variant, and since you tagged your post with Office 365, you could perhaps use XLOOKUP (X.ZOEKEN).

=XLOOKUP(L8,$L$100:$L$200,$O$100:$O$200,"",0)

or

=X.ZOEKEN(L8;$L$100:$L$200;$O$100:$O$200;"",0)

 ... assuming all ranges are in the same sheet and that the job codes are listed somewhere between rows 100 and 200. Would even be more dynamic if you named the ranges like "werksoort" (for L100:L200) and "tijdmeting" (for O100:O200). That makes the formula easier to read and maintain and it doesn't matter if the lookup ranges are in a different sheet.

@Hans Vogelaar

thanks a million Hans, Works like a charm!! 

Cheers Raymond

Thanks Rini, Because i used different sheets i used the formula of Hans, but yours Works too!