Hi, I was hoping someone could help me with some VBA.
Firstly, I will say I have found a similar example on this site however I cant work out what its doing and therefore I cant change it to meet my requirements, plus its missing additional constraints which I don't know how to do.
My current ability is intermediate, I am fairly good with excel but my VBA skills are all copy, paste and tweak and everything is self taught off other peoples code. I an a constant forum researcher and this is my first post asking for help so any would be greatly appreciated.
I am looking to run a solver query macro which repeats multiple times, I can do this manually by using the solver tool however as I have multiple columns (which could expand even further at a later date) this takes quite a long time.
This is what I'm trying to do (I have based my criteria on the first column, but I then want it to repeat until the column W):
Objective:
- Cell C67 (currently has a weighted average formula in) - i want the it to finish >80% but <100%
Variable Cells:
- Any cells between C35:c65 that have "No Data" in it
Constraints:
- No variable cells to exceed 100%
- If the row has a "ME" in column D then that cell is >58% but <70%
- If the day is a "Sat" in column C then cell is >58% but <75%
- If the day is a "Sun" in column C then cell is =0%
The excel doc I've attached is not actual data but just a test however I will use the layout as a template.
I would really appreciate if someone could not only answer the question but also include some commentary which will allow me to learn it (rather than copy and paste).
Thanks in advance.
Bookmarks