Hello,
I'm currently working on getting this array function to work for me. Basically, I need it to pull specific items from a list based on a criteria. For instance, I have an excel report that i run weekly that lists different vendors' credits on account. These vendors are split among our sales people by state. So instead of copying and pasting each line (company A, California, $$$credit // company B, California, $$$credit // company c, Alabama, $$$credit) into each salesperson's excel worksheet, I'm trying to get it so I can pull them all at once. So for Alabama, California, and 4 others states that Bob controls, I can pull all those and paste it onto its own worksheet for Bob. That's the idea.
Right now, what I have works, but only for one state at a time. I'm using
In the bold is the specific cells on the report. I keep them $locked.
But it'd make my life way easier if I can include more than one state at a time. Otherwise, I'm copying and pasting the formula and changing it around for both the state and the column number (I already have to do the column changes at the very end of the formula to get 1-9 across the board).
I've tried nesting IF formulas into it, I've tried choosing multiple cells for the IF criteria (for instance, IF(REPORT STATE COLUMN=$A$1:$A:$5,etc.)), but I'm just not having any luck with any of those. I'll either get a statement saying I have too many arguments or too few arguments. Does anyone have any insight on what I can do here? I'm worried that I might be entering VBA territory, which I have extremely limited knowledge of.
Thank you.
Bookmarks