AilingParticiple
New Member
- Joined
- Sep 15, 2023
- Messages
- 4
- Office Version
- 2019
- Platform
- Windows
I have a sheet that I am using for bulk inventory. The Table is a list of all transfers into and out of each bin.
Currently what I am trying to do is make a list of all the bins with their current totals. I found the below code on this forum which I was able to get the total from the entire column.
Is there a way to modify the code to start at a specific line in the column? And is there a way to replace the search term with a variable?
Other than changing the table/header names and replacing "In Use" with a bin number manually, everything else that I have tried just results in errors.
Currently what I am trying to do is make a list of all the bins with their current totals. I found the below code on this forum which I was able to get the total from the entire column.
Is there a way to modify the code to start at a specific line in the column? And is there a way to replace the search term with a variable?
Other than changing the table/header names and replacing "In Use" with a bin number manually, everything else that I have tried just results in errors.
VBA Code:
Sub Into_Array()
Dim Ary As Variant
Ary = Application.Index(Range("Table1[ID Number]").Value, Filter(Application.Transpose(Evaluate(Replace("if(#=""In Use"",Row(#)-" & Range("Table1[#Headers]").Row & ",""x"")", "#", Range("Table1[Status]").Address))), "x", False), 1)
End Sub