View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
David G. David G. is offline
external usenet poster
 
Posts: 12
Default Xlookup that returns variable sum data

I am trying to create a formula that looks for todays date in a table and
returns the sum of daily entries for the month prior to the date. In the
sample below =vlookup(E1,A1:C2,2) instead of returning 6 value from row #2,
it will return 11, the sum of all values prior to the one assigned to the
date. Furthermore, can I set it to change the range tomorrow, adding yet
another cell to the sum for a return of 14?

1 2

A 11/20 5

B 11/21 6

C 11/22 3

D

E 11/20

Thanks