1) I have a Column (Range) of values in Sheet2 ... The A column to be exact
2) Need to loop through that Column (Range) from Sheet2 of values to find, and 1) determine the number of matches found in a range from Sheet1, Store the matches amount found in the B Column of Sheet2, just to the right of the value that was searched for in Column A of worksheet2, and 2) if a match is found, add the additional quantity amount, which is found one cell to the right of the searched/found value from Sheet1, to a running total for each value from the Sheet2 values being searched for and store the total in the C column of Sheet2, 2 cells to the right of the value that was searched for in Column A of worksheet2.
The dillemna I am facing, and haven't encountered previously, is that the range being searched through on Sheet 1 is not just two columns side by side, it consists of various columns side by side, for example, Value/Quantity/Empty column/Value/Quantity/Empty Column, ETC. ie. sets of three columns. The number of Values/Items in each column in the range to be searched on Sheet1 is variable, Some sets of three columns may only have 2 values/quantities, some may have three, four or five or more. Future additional info of the three columns is added to the right of the previous info stored on Sheet1, aka it is a living/breathing document that expands three columns wide at a time each time additional supplies are added.
I'm not sure how to use the installed XL2BB so I will just post some pics.
Cell formulas and/or VBA macro code is fine.
The cell formula I have used thus far to capture the amount of matches for each searched value is:
Formula for Sheet2 Range B1-B6:
=COUNTIF(Sheet1!A$1:Sheet1!K$5,INDIRECT(ADDRESS(ROW(),COLUMN()-1)))
2) Need to loop through that Column (Range) from Sheet2 of values to find, and 1) determine the number of matches found in a range from Sheet1, Store the matches amount found in the B Column of Sheet2, just to the right of the value that was searched for in Column A of worksheet2, and 2) if a match is found, add the additional quantity amount, which is found one cell to the right of the searched/found value from Sheet1, to a running total for each value from the Sheet2 values being searched for and store the total in the C column of Sheet2, 2 cells to the right of the value that was searched for in Column A of worksheet2.
The dillemna I am facing, and haven't encountered previously, is that the range being searched through on Sheet 1 is not just two columns side by side, it consists of various columns side by side, for example, Value/Quantity/Empty column/Value/Quantity/Empty Column, ETC. ie. sets of three columns. The number of Values/Items in each column in the range to be searched on Sheet1 is variable, Some sets of three columns may only have 2 values/quantities, some may have three, four or five or more. Future additional info of the three columns is added to the right of the previous info stored on Sheet1, aka it is a living/breathing document that expands three columns wide at a time each time additional supplies are added.
I'm not sure how to use the installed XL2BB so I will just post some pics.
Cell formulas and/or VBA macro code is fine.
The cell formula I have used thus far to capture the amount of matches for each searched value is:
Formula for Sheet2 Range B1-B6:
=COUNTIF(Sheet1!A$1:Sheet1!K$5,INDIRECT(ADDRESS(ROW(),COLUMN()-1)))