Hello!
Currently, I am attempting to write VBA code that will open a user selected file. In the file, I need 3 things calculated to be imported into the original sheet:
1) Sum of the Qty column when column State="CA""
2) Sum of the Qty column when column State="TX"
3) Sum of the Qty column when column Member= "Walgreens"
Unfortunately, The Qty, State, and Member columns do not stay in the same location each week. I have code that finds their column locations
I am having trouble writing cell formulas that can utilize those cell locations
If someone could help me out in writing formulas that will work with the variables above, or if anyone knows of a better method, that would be fantastic.
Thank you for your time,
Grazian2
Some Ideas that failed:
All Code:
Bookmarks