Help with either VLOOKUP or IF AND statements

%3CLINGO-SUB%20id%3D%22lingo-sub-363782%22%20slang%3D%22en-US%22%3EHelp%20with%20either%20VLOOKUP%20or%20IF%20AND%20statements%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-363782%22%20slang%3D%22en-US%22%3E%3CP%3EI%20use%20this%20to%20find%20a%20date%20in%20one%20of%20twelve%20sheets%20in%20my%20workbook.%20I%20need%20to%20modify%20it%20so%20that%20it%20will%20find%20both%20sheets%20that%20the%20value%20could%20be%20in.%20the%20twelve%20sheets%20are%20query%20tables%20that%20divide%20the%20master%20table%20into%20the%20annual%20and%20semi-annual%20months%20for%20each%20employee.%20that%20means%20each%20employee%20is%20found%20on%20two%20sheets.%20I%20need%20to%20find%20the%20appointment%20date%20for%20both%20annual%20and%20or%20semi-annual%20sheet%20and%20give%20me%20the%20newest%20date%20for%20the%20master%20sheet.%20Here%20is%20what%20I%20have%20that%20works%20great%20to%20find%20the%20first%20but%20does%20not%20work%20for%20the%20semi%20dates.%3CBR%20%2F%3E%3CFONT%3E%7B%3DVLOOKUP(A4%2CINDIRECT(%22'%22%26amp%3BINDEX(SheetList%2CMATCH(1%2C--(COUNTIF(INDIRECT(%22'%22%26amp%3BSheetList%26amp%3B%22'!%24A%242%3A%24M%24600%22)%2CA4)%26gt%3B0)%2C0))%26amp%3B%22'!%24A%241%3A%24M%24600%22)%2C13%2CFALSE)%7D%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-363782%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-364289%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20either%20VLOOKUP%20or%20IF%20AND%20statements%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-364289%22%20slang%3D%22en-US%22%3Efor%20this%20application%20we%20can%20NOT%20use%20MACROS%20as%20all%20input%20must%20be%20done%20using%20SharePoint%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-364287%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20either%20VLOOKUP%20or%20IF%20AND%20statements%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-364287%22%20slang%3D%22en-US%22%3E%3CP%3E*%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F87470%22%20target%3D%22_blank%22%3E%40Ken%20Richins%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3Ecause%20the%20master%20is%20not%20used%20as%20an%20input%20sheet%20only%20as%20a%20consolidator%20sheet%20for%20reports.%20the%2012%20monthly%20tabs%20are%20the%20data%20input%20sheets%20hence%20the%20need%20to%20gather%20the%20data%20from%20the%2012%20input%20sheets.%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3EBut%20you%20stated%20that%20%22%3CSPAN%3Ethe%20twelve%20sheets%20are%20query%20tables%20that%20divide%20the%20master%20table%20into%20the%20annual%20and%20semi-annual%20months%22.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EEither%20the%20twelve%20tables%20are%20input%20or%20queries.%20They%20can't%20be%20both.%3C%2FP%3E%3CP%3EIt%20would%20be%20better%20if%20supply%20a%20sample%20workbook%20with%20the%20desired%20result.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F87470%22%20target%3D%22_blank%22%3E%40Ken%20Richins%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3EI%20can't%20use%20vb%20or%20macros%20as%20the%20sheets%20are%20edited%20using%20excel%20online%20using%20SharePoint.%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3EMacros%20can%20be%20executed%20if%20you%20use%20Excel%20Desktop.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-364036%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20either%20VLOOKUP%20or%20IF%20AND%20statements%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-364036%22%20slang%3D%22en-US%22%3E%3CP%3Ecause%20the%20master%20is%20not%20used%20as%20an%20input%20sheet%20only%20as%20a%20consolidator%20sheet%20for%20reports.%20the%2012%20monthly%20tabs%20are%20the%20data%20input%20sheets%20hence%20the%20need%20to%20gather%20the%20data%20from%20the%2012%20input%20sheets.%20I%20can't%20use%20vb%20or%20macros%20as%20the%20sheets%20are%20edited%20using%20excel%20online%20using%20SharePoint.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-363806%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20either%20VLOOKUP%20or%20IF%20AND%20statements%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-363806%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%20don't%20you%20query%20the%20master%20table%3F%20Or%20even%20better%3A%20Why%20don't%20you%20filter%20the%20master%20table%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I use this to find a date in one of twelve sheets in my workbook. I need to modify it so that it will find both sheets that the value could be in. the twelve sheets are query tables that divide the master table into the annual and semi-annual months for each employee. that means each employee is found on two sheets. I need to find the appointment date for both annual and or semi-annual sheet and give me the newest date for the master sheet. Here is what I have that works great to find the first but does not work for the semi dates.
{=VLOOKUP(A4,INDIRECT("'"&INDEX(SheetList,MATCH(1,--(COUNTIF(INDIRECT("'"&SheetList&"'!$A$2:$M$600"),A4)>0),0))&"'!$A$1:$M$600"),13,FALSE)}

4 Replies
Highlighted

Hi

 

Why don't you query the master table? Or even better: Why don't you filter the master table?

 

Highlighted

cause the master is not used as an input sheet only as a consolidator sheet for reports. the 12 monthly tabs are the data input sheets hence the need to gather the data from the 12 input sheets. I can't use vb or macros as the sheets are edited using excel online using SharePoint.

Highlighted

*


@Ken Richins wrote:

cause the master is not used as an input sheet only as a consolidator sheet for reports. the 12 monthly tabs are the data input sheets hence the need to gather the data from the 12 input sheets.


But you stated that "the twelve sheets are query tables that divide the master table into the annual and semi-annual months".

Either the twelve tables are input or queries. They can't be both.

It would be better if supply a sample workbook with the desired result.

 

 


@Ken Richins wrote:

I can't use vb or macros as the sheets are edited using excel online using SharePoint.


Macros can be executed if you use Excel Desktop.

 

Highlighted
for this application we can NOT use MACROS as all input must be done using SharePoint