Need help on combining SUMIFS and VLOOKUP functions.

Dhinakaran

New Member
Joined
Mar 30, 2016
Messages
48
Office Version
  1. 365
  2. 2021
  3. 2016
Platform
  1. Windows
Hello All,

Need your help on combining SUMIFS and VLOOKUP combo in Google Sheets. I've been trying to figure our the formula and i'm missing it.

Below is the snap of the summary table which i've been trying to prepare summary of sales where i need to replicated the values for type of sales (Completed,WIP,Reversal) against its status (Stock,Sold,Returned).

Please help on the same, TIA.

Summary Sheet:
Sample.xlsx
ABCDEFGHIJ
1StockSoldReturned
2CompletedWIPReversalCompletedWIPReversalCompletedWIPReversal
3Fruits017410501303270000130878
4Groceries066585603205370000226564
Summary
Cell Formulas
RangeFormula
B3:J3B3=LET(f,Fruits!$A$2:$E$11,SUM(TAKE(FILTER(f,(INDEX(f,0,3)=LOOKUP("zzz",$B$1:B$1))*(INDEX(f,0,2)=B$2),0),,-1)))
B4:J4B4=LET(g,Groceries!$A$2:$E$11,SUM(TAKE(FILTER(g,(INDEX(g,0,3)=LOOKUP("zzz",$B$1:B$1))*(INDEX(g,0,2)=B$2),0),,-1)))




Fruits sheet:
DateTypeStatusVendorBill Value
11-Jul-23WIPStockABC Inc41002
16-Jul-23CompletedSoldApple Exports41249
21-Jul-23ReversalReturnedMurray LLP41738
26-Jul-23CompletedSoldABC Inc44328
31-Jul-23WIPStockApple Exports44330
5-Aug-23WIPStockMurray LLP44374
10-Aug-23WIPStockABC Inc44399
15-Aug-23ReversalReturnedApple Exports44533
20-Aug-23ReversalReturnedMurray LLP44607
25-Aug-23CompletedSoldABC Inc44750



Groceries Sheet:
DateTypeStatusVendorBill Value
11-Jul-23WIPStockABC Inc500957
16-Jul-23CompletedSoldApple Exports157255
21-Jul-23ReversalReturnedMurray LLP125744
26-Jul-23CompletedSoldABC Inc113170
31-Jul-23WIPStockApple Exports59764
5-Aug-23WIPStockMurray LLP54443
10-Aug-23WIPStockABC Inc50692
15-Aug-23ReversalReturnedApple Exports50538
20-Aug-23ReversalReturnedMurray LLP50282
25-Aug-23CompletedSoldABC Inc50112
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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