xlookup and Sum

flashgordie

Board Regular
Joined
Jan 9, 2008
Messages
95
Office Version
  1. 365
Platform
  1. Windows
Hello, I have an issue where I would like to look up a value in an array and have it return the sum of a quantity each time it fines the value.

In D2, I would like to place a formula that would lookup A2 in G2:G27 and return the sum of the corresponding quantities found in h2:H27. (side note- E2:15 simply equals the values that I manually calculated and that I think should be returned by the formula, and columns B and C bearing on this problem.

I believe a combination of xlookup and sum should get what I am looking for but I just can't seem to make it work.

Thank you for your Assistance!!!

xlookup example file.xlsx
ABCDEFGH
1Id No.LoctationFactorFunction Hereshould returnId No.Qty
212345Bin 10.140888888
312345Bin 20.3408888812
423456Bin 10.444123451
523456Bin 30.244234562
623456Bin 40.344345673
734567Bin 10.248456784
834567Bin 50.448567895
945678Bin 10.552678906
1045678Bin 20.952123457
1156789Bin 20.156234568
1256789Bin 10.356345679
1356789Bin 50.2564567810
1467890Bin 50.1605678911
1588888Bin 50.25206789012
161234513
172345614
18In D2, I would like to place a formula that would lookup A2 in G2:G27 and3456715
19return the sum of the corresponding quantities found in h2:H27.4567816
20E2:15 equals the values that I think should be returned by the formula.5678917
216789018
221234519
232345620
243456721
254567822
265678923
276789024
Sheet1
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,823
Messages
6,121,780
Members
449,049
Latest member
greyangel23

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