Find Location of Matches in an Array

MartyCollins

New Member
Joined
Jan 21, 2022
Messages
38
Office Version
  1. 365
Platform
  1. Windows
Hi there first post :)

Ok I have an array in one sheet.(EG 80 rows/50Columns)
EG....... it goes LOT/QTY - LOT/QTY Repeat-- I know bad design but too late to change and its not mine...

LOTQTYLOTQTYLOTQTY
H12510H1233XYZ
9​
J12415ABC9
H125AFF
10​
H1239ABC5

In another sheet I have a simple column of LOT numbers. (an ERP download of available LOTS)
These same Lot numbers can appear many times in any location within the array above EG H123 appears twice


LOTSSum
H123
14​
H125
13​
J124
15​
UKG6
0​



Beside the single column of LOTS i want to write a formula that returns the sum of the QTYs to the immediate right of all instances of matches..

Looking forward to your responses.

Thanks,
MArtin.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEF
1LOTQTYLOTQTYLOTQTY
2H12510H1233XYZ9
3
4J12415ABC9
5H12513AFF10
6H1239ABC5
7
8
9LOTSSum
10H12312
11H12513
12J12415
13UKG60
Main
Cell Formulas
RangeFormula
B10:B13B10=SUMIFS(B2:F7,A2:E7,A10)
 
Upvote 0
Solution
Hi Fluffs,
That is just brilliant.. staggered arrays?? - Ive not seen that before.
Thanks so much!!
Ill see if i can get it work but i cant see why it wont
Brilliant,
Martin.
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,174
Members
448,870
Latest member
max_pedreira

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