I have a bid data set where each month the user has to select several different ranges, each of which are non-contiguous cells containing mostly text. I'm trying to write a VBA script to prompt the user with an input box so they are walked through this selection process for 10-12 different ranges.
My big problem is that, after the user selects the ranges, I would like to then COUNTIF to know how many times a name appears in each of these ranges. I would also like for that formula to work fairly quickly/update automatically anytime the document is edited. I suppose I could create a function of my own, but I've read that can be much slower than Excel's native functions and I don't want to slow this document down anymore than it already is.
I have experimented with nesting INDIRECT inside of COUNTIF but that doesn't work with a named range. Any other suggestions on how I could accomplish this? In my searches I saw some mention of FREQUENCY but that tends to return the same number regardless of what value is searched for.
Once I solve this problem, I might ask for tips designing the InputBox or Userform that gets this data from the user. I'm pretty new to both methods. Right now the biggest complaint I have is my current method the user has to know the key strokes to select a non-contiguous range within the dialog box (i.e. place a comma between selections).
Mahalo for your help!
My big problem is that, after the user selects the ranges, I would like to then COUNTIF to know how many times a name appears in each of these ranges. I would also like for that formula to work fairly quickly/update automatically anytime the document is edited. I suppose I could create a function of my own, but I've read that can be much slower than Excel's native functions and I don't want to slow this document down anymore than it already is.
I have experimented with nesting INDIRECT inside of COUNTIF but that doesn't work with a named range. Any other suggestions on how I could accomplish this? In my searches I saw some mention of FREQUENCY but that tends to return the same number regardless of what value is searched for.
Once I solve this problem, I might ask for tips designing the InputBox or Userform that gets this data from the user. I'm pretty new to both methods. Right now the biggest complaint I have is my current method the user has to know the key strokes to select a non-contiguous range within the dialog box (i.e. place a comma between selections).
Mahalo for your help!