Hi Here is my code. It's my first day using excel's VBA tool, and I'm getting a mismatch error on the bolded line. Here is my data set.
Screen Shot 2016-06-27 at 1.06.55 PM.png
Please Login or Register to view this content.
Hi Here is my code. It's my first day using excel's VBA tool, and I'm getting a mismatch error on the bolded line. Here is my data set.
Screen Shot 2016-06-27 at 1.06.55 PM.png
Please Login or Register to view this content.
Last edited by Vinkebot; 06-27-2016 at 04:08 PM.
Please use code tags with your code as per forum's rule.
There is no cell zero
Please Login or Register to view this content.
I think I fixed the old problem. Could anyone help me with the new code.
The Goal: I'm basically trying to get an average value (from the 2s and 3s in the middle column) for each of the ones that appear in the one to the left. I want the values to show up in the empty column on the right.
Please attach a sample book, showing your desired result. I dread though, you are on Mac.
Something like this
Screen Shot 2016-06-27 at 1.18.26 PM.png
Different from space?Please Login or Register to view this content.
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
Hm what do you mean by that. I was basically trying to use this line to write the condition (as long as the cell is not empty).
Look for the difference.Please Login or Register to view this content.
Oh ok. I still get the type mismatch error after that change.
2.66666667 is not an integer
try long instead?Please Login or Register to view this content.
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
deleted by bvj
Last edited by protonLeah; 06-28-2016 at 06:10 PM.
Ben Van Johnson
Based on your image in post#5
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks