If Vlookup matches an array, then pull the sum of corresponding values

%3CLINGO-SUB%20id%3D%22lingo-sub-3051491%22%20slang%3D%22en-US%22%3EIf%20Vlookup%20matches%20an%20array%2C%20then%20pull%20the%20sum%20of%20corresponding%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3051491%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20the%20dropdown%20value%20of%20the%20list%20(weeks%20of%20an%20year)%20matches%20with%20a%20vlookup%20array%20of%20values%2C%20then%20the%20corresponding%20values%20have%20to%20be%20pulled%20AND%2C%20have%20to%20be%20summed%20up%20until%20the%20selected%20weeks%20of%20the%20year.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22suman_gangi_2-1641304117981.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337298i2B31E19C230B243D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22suman_gangi_2-1641304117981.png%22%20alt%3D%22suman_gangi_2-1641304117981.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3051491%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

If the dropdown value of the list (weeks of an year) matches with a vlookup array of values, then the corresponding values have to be pulled AND, have to be summed up until the selected weeks of the year.

 

suman_gangi_2-1641304117981.png

 

2 Replies

@suman_gangi 

That could be

=SUM(
  INDEX(<A range>, MATCH(<week # range>, <weeks range>, 0) ):
  INDEX(<A range>, COUNTA(<week # range>)) )

@suman_gangi 

=SUM(INDIRECT(("D3:D"&MATCH(F5,C3:C26,0)+2)))

 

Maybe with above formula as shown in attached file.