Vlookup containing a date condition

TomTomExcel

New Member
Joined
Apr 4, 2022
Messages
1
Office Version
  1. 365
Hi,

I am looking for some help.

At work i have a report containing product, quantity and dates. I would like to set up a formula to combine all qty's by weekly in a report listing all products. (See example of delivery report "attachment capture 1")

I usually use Vlookup to extract total quantity from the report. But i cannot find a way to extract the quantity within certain dates, in this case per week. (see how I want my report to look like in "attachment capture")


Cheers,
Tom
 

Attachments

  • Capture.PNG
    Capture.PNG
    40.3 KB · Views: 10
  • Capture 1.PNG
    Capture 1.PNG
    18.3 KB · Views: 20

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi Tom:
A SUMIFS might do you some good.

Try this. Mind you, since I we can't see the Column and Row addressing in your screenshots, I've used descriptions rather than cell addressing. Also, you will need to include one more cell that has the week prior to your WK1 Ending date, so you can collect the correct counts there.

Excel Formula:
=SUMIFS([Your Quantity Column], [Your Product Column] = [The Product Column in your Summary], [Delivery Date Column] > [The Previous Week Ending Date in your Summary], [Delivery Date Column] <= [The Current Week Ending Date in your Summary]
 
Upvote 0

Forum statistics

Threads
1,223,702
Messages
6,173,965
Members
452,539
Latest member
delvey

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top