Forum Discussion

Mikeyh146's avatar
Mikeyh146
Copper Contributor
Nov 18, 2022
Solved

Vlookup to reference weekly sales

Hello,   I am using a drop down list to select dates for viewing my weekly sales. I am then using a VLOOKUP to find me the results, in the table next to it I was it to reference a week before to s...
  • Patrick2788's avatar
    Patrick2788
    Nov 22, 2022

    Mikeyh146 

    VLOOKUP is a bit more direct but if you need to pull previous date's revenue, you can use INDEX-MATCH for both:

    Current:

    =INDEX(Sheet2!$D$1:$D$21,MATCH($B$5,Sheet2!$C$1:$C$21,0))

    Previous:

    =INDEX(Sheet2!$D$1:$D$21,MATCH($B$5,Sheet2!$C$1:$C$21,0)-1)

Resources