Formula for pulling the counts on items in i different locations but with same name

svis89

Board Regular
Joined
Oct 19, 2021
Messages
67
Office Version
  1. 365
Platform
  1. Windows
=XLOOKUP([@Item]&[@[Bin Number]],Item19&Bin_Number19,"@[Count19]","",1)
=XLOOKUP("[@Item]='R19'!@Item19*'Calculate sheet'!@[Bin Number]=@'R19'!A3:A68",Item19,Count19,"",1) this only pulled the first instance of the same name

I tried the above and a few other variations but could not get the result i want... i have a work book with 33 work sheets for a cycle count running through-out the year i am trying to create a catch all formula that will look up the item name and the locations and if they match my new sheet return the correct count right now im trying using define names for the data areas 2-33 the above shows for sheet 19 its saying look at the item and bin number match the result on page nineteen and if it does give me the count that was added for this cycle count.... it does not have to be xlookup that is just what im used to using since i just am not allowed to use macro's anymore lol
I will keep trying different things on my end i have always got good help here
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Can you provide sample data from two of the worksheets (with row headers)? It looks like you have range names in your formulas that we also need to understand.
It may even be easier for all if you put a sanitized version on a share file site, like dropbox.
 
Upvote 0
=XLOOKUP([@Item]&[@[Bin Number]],Item19&Bin_Number19,"@[Count19]","",1)
=XLOOKUP("[@Item]='R19'!@Item19*'Calculate sheet'!@[Bin Number]=@'R19'!A3:A68",Item19,Count19,"",1) this only pulled the first instance of the same name

I tried the above and a few other variations but could not get the result i want... i have a work book with 33 work sheets for a cycle count running through-out the year i am trying to create a catch all formula that will look up the item name and the locations and if they match my new sheet return the correct count right now im trying using define names for the data areas 2-33 the above shows for sheet 19 its saying look at the item and bin number match the result on page nineteen and if it does give me the count that was added for this cycle count.... it does not have to be xlookup that is just what im used to using since i just am not allowed to use macro's anymore lol
I will keep trying different things on my end i have always got good help here
Inventory Cycle count record with date.xlsx
F
788#VALUE!
Calculate sheet
Cell Formulas
RangeFormula
F788F788=XLOOKUP([@Item]&[@[Bin Number]],Item19&Bin_Number19,"@[Count19]","",1)
Named Ranges
NameRefers ToCells
Bin_Number19='R19'!$A$3:$A$68F788
Item19='R19'!$B$3:$B$68F788
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F3:F3188Expression="$E3:$E58<>$B3:$B58"textNO
 
Upvote 0
Inventory Cycle count record with date.xlsx
F
788#VALUE!
Calculate sheet
Cell Formulas
RangeFormula
F788F788=XLOOKUP([@Item]&[@[Bin Number]],Item19&Bin_Number19,"@[Count19]","",1)
Named Ranges
NameRefers ToCells
Bin_Number19='R19'!$A$3:$A$68F788
Item19='R19'!$B$3:$B$68F788
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F3:F3188Expression="$E3:$E58<>$B3:$B58"textNO



Inventory Cycle count record with date.xlsx
ABCDF
2Bin NumberItemSerial NumberOn HandCount
3R23-005-A-11336-B010-E0D-RC10
13R23-002-B-220BD077AAB-C2100NNAB-C0-RC30
14R23-002-B-220BD125A0-RC10
15R23-003-B-220F11ND027A-RC100
16R23-003-B-120F11ND034A-RC30
17R23-003-B-120F11ND052AA-FN10
18R23-002-B-120F11ND065A-RC10
19R23-003-B-120F11ND5P0AA-RC20
20R23-003-B-220G11NC030JA-RC10
21R23-003-D-220G11ND011AA-FN20
22R23-003-C-120G11ND011AA-RC20
23R23-003-C-120G11ND014-FN40
24R23-003-C-220G11ND022-FN10
25R23-003-C-220G11ND022-RC60
26R23-003-C-120G11ND034AA0N-RC10
27R23-003-C-220G11ND065-RC10
28R23-003-C-120G11ND2P1AA-RC20
29R23-003-C-120G11ND5P0AA-RC40
30R23-003-D-220G11ND8P0JA0NNNNN-FN10
31R23-001-C-225B-D017N104-FN20
32R23-001-C-225B-D024N104-FN10
33R23-001-C-225B-D030N104-FN10
34R23-001-C-225B-D043N114-FN10
35R23-001-C-225B-D2P3N104-FN10
43R23-005-D-2AF-600FP-RC10
44R23-001-B-1ATS22C32S6U-RC10
45R23-001-B-1ATV61HD75N4-RC10
46R23-001-B-1ATV61HU40N4-FN10
47R23-001-B-1ATV61HU55N4-RC20
Calculate sheet
Cell Formulas
RangeFormula
D3,D13:D35,D43:D47D3=XLOOKUP(B:B,'Pulled data'!A:A,'Pulled data'!P:P,"")
F3,F13:F35,F43:F47F3=XLOOKUP([@Item],Item23,Count23,"")
Named Ranges
NameRefers ToCells
Count23='R23'!$F$3:$F$50F43:F47, F13:F35, F3
Item23='R23'!$B$3:$B$50F43:F47, F13:F35, F3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F3:F3188Expression="$E3:$E58<>$B3:$B58"textNO
 
Upvote 0
Inventory Cycle count record with date.xlsx
F
788#VALUE!
Calculate sheet
Cell Formulas
RangeFormula
F788F788=XLOOKUP([@Item]&[@[Bin Number]],Item19&Bin_Number19,"@[Count19]","",1)
Named Ranges
NameRefers ToCells
Bin_Number19='R19'!$A$3:$A$68F788
Item19='R19'!$B$3:$B$68F788
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F3:F3188Expression="$E3:$E58<>$B3:$B58"textNO



Inventory Cycle count record with date.xlsx
ABCDF
2Bin NumberItemSerial NumberOn HandCount
3R23-005-A-11336-B010-E0D-RC10
13R23-002-B-220BD077AAB-C2100NNAB-C0-RC30
14R23-002-B-220BD125A0-RC10
15R23-003-B-220F11ND027A-RC100
16R23-003-B-120F11ND034A-RC30
17R23-003-B-120F11ND052AA-FN10
18R23-002-B-120F11ND065A-RC10
19R23-003-B-120F11ND5P0AA-RC20
20R23-003-B-220G11NC030JA-RC10
21R23-003-D-220G11ND011AA-FN20
22R23-003-C-120G11ND011AA-RC20
23R23-003-C-120G11ND014-FN40
24R23-003-C-220G11ND022-FN10
25R23-003-C-220G11ND022-RC60
26R23-003-C-120G11ND034AA0N-RC10
27R23-003-C-220G11ND065-RC10
28R23-003-C-120G11ND2P1AA-RC20
29R23-003-C-120G11ND5P0AA-RC40
30R23-003-D-220G11ND8P0JA0NNNNN-FN10
31R23-001-C-225B-D017N104-FN20
32R23-001-C-225B-D024N104-FN10
33R23-001-C-225B-D030N104-FN10
34R23-001-C-225B-D043N114-FN10
35R23-001-C-225B-D2P3N104-FN10
43R23-005-D-2AF-600FP-RC10
44R23-001-B-1ATS22C32S6U-RC10
45R23-001-B-1ATV61HD75N4-RC10
46R23-001-B-1ATV61HU40N4-FN10
47R23-001-B-1ATV61HU55N4-RC20
Calculate sheet
Cell Formulas
RangeFormula
D3,D13:D35,D43:D47D3=XLOOKUP(B:B,'Pulled data'!A:A,'Pulled data'!P:P,"")
F3,F13:F35,F43:F47F3=XLOOKUP([@Item],Item23,Count23,"")
Named Ranges
NameRefers ToCells
Count23='R23'!$F$3:$F$50F43:F47, F13:F35, F3
Item23='R23'!$B$3:$B$50F43:F47, F13:F35, F3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F3:F3188Expression="$E3:$E58<>$B3:$B58"textNO
it is telling me that there is a naming error on the first minisheet how would i find that
 
Upvote 0
I can't tell what column on the calculations sheet is the column your using to find worksheets for.
 
Upvote 0
I can't tell what column on the calculations sheet is the column your using to find worksheets for.
I am trying to match both the bin number and the item number so that it will pull the count for that location off of the appropriate worksheet Column A and B
 
Upvote 0
I am trying to match both the bin number and the item number so that it will pull the count for that location off of the appropriate worksheet Column A and B
I have been manually changing the formula to match the worksheet designation i do not know a way to tell it to look for this page to pull the correct locations i from the worksheets i used =XLOOKUP([@[Serial Number]],'B02-002 2C'!C:C,'B02-002 2C'!A:A,"") for items that had a serial number but with items without serial numbers i cant do that i have to do a multi criteria search or xlookup and i just cant get it to work right
 
Upvote 0
I can't tell what column on the calculations sheet is the column your using to find worksheets for.
Hopefully your doing better than i am trying different variations of formula to get it to work is most recent i also tried going back to the old Index match type formula with no luck
=XLOOKUP(1, ([Item] =Item23) * ([Bin Number] =Bin_Number23),Count23,"NO")
=INDEX('R23'!E3:E50, MATCH(1, ([@Item] =@ 'R23'!B2:B113) * ([@[Bin Number]] =@'R23'!A2:A113), 0))
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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