Vlookup and SUMIF question

ksun1985

New Member
Joined
Nov 18, 2010
Messages
5
I have a sheet that contains:

Date, Group Name, Quantity, Customer


I need a function that does VLOOKUP( Group Name & Customer)

then returns the

SUM of (Qty) if within: Today Date & Less 1 month


Im not sure if this is the best way as I have seen others use SUMPRODUCT on similar scenarios.

Any help would be great! :)
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I have a sheet that contains:

Date, Group Name, Quantity, Customer


I need a function that does VLOOKUP( Group Name & Customer)

then returns the

SUM of (Qty) if within: Today Date & Less 1 month


Im not sure if this is the best way as I have seen others use SUMPRODUCT on similar scenarios.

Any help would be great! :)
What version of Excel are you using?
 
Upvote 0
Try this...

With your data in the range A2:D25...

Use cells to hold the criteria:
  • F2: =EDATE(G2,-1)
  • G2: =TODAY()
  • H2 = some group name
  • I2 = some customer
Then:

=SUMIFS(C2:C25,A2:A25,">="&F2,A2:A25,"<="&G2,B2:B25,H2,D2:D25,I2)
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,723
Members
452,939
Latest member
WCrawford

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