Need help on Combining the 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. 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
3Fruits130327174105130878
4Groceries
Summary
Cell Formulas
RangeFormula
B3:D3B3=SUMIFS(Fruits!$E$2:$E$11,Fruits!$B$2:$B$11,Summary!B2)



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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Is this what you mean?

Dhinakaran.xlsm
ABCDE
1DateTypeStatusVendorBill Value
211-Jul-23WIPStockABC Inc41002
316-Jul-23CompletedSoldApple Exports41249
421-Jul-23ReversalReturnedMurray LLP41738
526-Jul-23CompletedSoldABC Inc44328
631-Jul-23WIPStockApple Exports44330
705-Aug-23WIPStockMurray LLP44374
810-Aug-23WIPStockABC Inc44399
915-Aug-23ReversalReturnedApple Exports44533
1020-Aug-23ReversalReturnedMurray LLP44607
1125-Aug-23CompletedSoldABC Inc44750
Fruits


Dhinakaran.xlsm
ABCDE
1DateTypeStatusVendorBill Value
211-Jul-23WIPStockABC Inc500957
316-Jul-23CompletedSoldApple Exports157255
421-Jul-23ReversalReturnedMurray LLP125744
526-Jul-23CompletedSoldABC Inc113170
631-Jul-23WIPStockApple Exports59764
705-Aug-23WIPStockMurray LLP54443
810-Aug-23WIPStockABC Inc50692
915-Aug-23ReversalReturnedApple Exports50538
1020-Aug-23ReversalReturnedMurray LLP50282
1125-Aug-23CompletedSoldABC Inc50112
Groceries


Dhinakaran.xlsm
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(f,Groceries!$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)))
 
Upvote 1
Solution
Thanks Peter_SSs. Work fine in excel. However, I need to replicate the same in Google Sheets where the TAKE function is not supported in it, Please suggest.
 
Upvote 0
Thanks Peter_SSs. Work fine in excel.
You're welcome. Thanks for the confirmation.

I need to replicate the same in Google Sheets where the TAKE function is not supported in it, Please suggest.
Google Sheets question should be asked in the forum nominated for that. I suggest that you start a thread there and provide a link to this one.

1708344761240.png
 
Upvote 1

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