How to add up quantities that are associated ONLY with an "Identifier word" like a SKU or word across 2 or 3 sheets in the same workbook?

jbillh

New Member
Joined
Dec 9, 2015
Messages
22
Office Version
  1. 365
Platform
  1. Windows
Hi Folks,

So, we're trying to figure out how to add up quantities in multiple cells that contain specific "Identifier words" ONLY in the same row as that specific "identifier word" across 2 or 3 sheets in the same workbook? The identifiers words like "SKU" or "butter" in the example, are not always in the same rows since we download data that changes row positions frequently. The quantities to add up will ALWAYS be in the same row as the identifier words but may not always be in the same column. That said, the column "name" will always be "units-1" or "units-2"

I hope the attached helps make more sense of this!

Thanks Kindly,

Bill
 

Attachments

  • mrExcelExample-.jpg
    mrExcelExample-.jpg
    179.4 KB · Views: 14

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Thanks Peter! It has been so long since I've been on the platform that I sorta forgot some of that stuff. Take Good Care!
 
Upvote 0
Thanks for updating. We may also need some sample data** to understand the layout but see if this is headed in the right direction.

** I suggest that you investigate XL2BB for providing sample data & expected results to make it easier for helpers to understand just what you have & where it is and also what you want & where it is to be.
(If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.)

Sheet2
jbillh.xlsm
AB
1IdentifierUnits-1
2eggs9
3butter3
4cheese6
5butter2
Sheet2


Sheet3 (which is between Sheet2 and Sheet4) in my sample is empty

Sheet 4
jbillh.xlsm
ABCDEF
1
2
3
4
5
6
7
8identifierUnits-2
9butter4
10eggs12
11cheese16
12butter5
Sheet4


Sheet1
jbillh.xlsm
AB
1butter14
2eggs21
Sheet1
Cell Formulas
RangeFormula
B1:B2B1=LET(d,WRAPROWS(TOROW(Sheet2:Sheet4!A$1:Z$1000),2),SUM(FILTER(d,TAKE(d,,1)=A1,0)))
 
Upvote 0
mrExcelExample.xlsx
ABCDEFGHIJKLMNOP
1identifierUNITS-1
2eggs9
3butter3
4cheese6
5butter2
6
7(Separate sheet)
8identifierUNITS-2
9butter4
10eggs12
11cheese16
12butter5
13
14
15TOTAL UNITS
1614
17
18
19
20We want A16 to equal TOTAL UNITS by adding "butter" in UNITS-1 to UNITS-2 (data found on separate sheet)
21Butter is the sku identifier. "butter" may appear in any row and units may appear in any collumn where the identifier "butter" is in the same row.
22The identifiers and UNITS do not maintain an absolute cell position so the quantity of units for each identifier must be locatable by the unique identifier (in this case, "butter")
Sheet1
Cell Formulas
RangeFormula
A16A16=B5+B3+F9+F12
 
Upvote 0
Thanks for updating. We may also need some sample data** to understand the layout but see if this is headed in the right direction.

** I suggest that you investigate XL2BB for providing sample data & expected results to make it easier for helpers to understand just what you have & where it is and also what you want & where it is to be.
(If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.)

Sheet2
jbillh.xlsm
AB
1IdentifierUnits-1
2eggs9
3butter3
4cheese6
5butter2
Sheet2


Sheet3 (which is between Sheet2 and Sheet4) in my sample is empty

Sheet 4
jbillh.xlsm
ABCDEF
1
2
3
4
5
6
7
8identifierUnits-2
9butter4
10eggs12
11cheese16
12butter5
Sheet4


Sheet1
jbillh.xlsm
AB
1butter14
2eggs21
Sheet1
Cell Formulas
RangeFormula
B1:B2B1=LET(d,WRAPROWS(TOROW(Sheet2:Sheet4!A$1:Z$1000),2),SUM(FILTER(d,TAKE(d,,1)=A1,0)))
Thanks again Peter! I just finally got XL2BB working and uploaded this mini sheet. Did I do that correctly? So, the current thinking is to have one workbook with three sheets in it. Two of them are data we download each week and on sheet is the output sheet where the quantity of "butter from adding the other two sheets together will be summed up. I hope that makes sense. Thanks Again!
 
Upvote 0
In what way does my suggested formula not work?

Good to see that you have XL2BB working. (y)
If you still need then then with XL2BB, instead of showing us everything in one sheet, please show us the two data sheets separately and also the output sheet with the expected results filled in manually.
 
Upvote 0
In what way does my suggested formula not work?

Good to see that you have XL2BB working. (y)
If you still need then then with XL2BB, instead of showing us everything in one sheet, please show us the two data sheets separately and also the output sheet with the expected results filled in manually.
Hi Peter, I think maybe it "doesn't work" because I don't understand it. :-) Let me play with it a bit more and get back to you. Thanks!
 
Upvote 0
Hi Peter, I think maybe it "doesn't work" because I don't understand it. :-) Let me play with it a bit more and get back to you. Thanks!
Hi Again Peter, well... we actually decided to hire a guy on Fiver to help us walk through the various aspects of what we wanted to do with this and now have a working formula. I sure do appreciate your wisdom and help even so! We just needed some real-time help to better understand things. Take Good Care!
 
Upvote 0
and now have a working formula.
Glad you a resolution. Thanks for letting us know. (y)

Wondering if you would care to post that formula so that
  1. Having tried to help I could possibly gain a better understanding of what it was you were trying to do, and
  2. Future readers trying to do the same or similar thing might get some use from it?
 
Upvote 0

Forum statistics

Threads
1,223,101
Messages
6,170,116
Members
452,302
Latest member
TaMere

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