I am filling a column with a formula, but I keep getting a compile error: "Expected: )" in the 2nd line of the code at ", "
Does anyone see what I am doing wrong?
Thanks for taking a look.![]()
Please Login or Register to view this content.
I am filling a column with a formula, but I keep getting a compile error: "Expected: )" in the 2nd line of the code at ", "
Does anyone see what I am doing wrong?
Thanks for taking a look.![]()
Please Login or Register to view this content.
Can you post a sample workbook? I feel like I am missing something
This won't cause an error but I don't know if it'll produce the formula you want.
![]()
Please Login or Register to view this content.
Last edited by Norie; 01-02-2013 at 05:36 PM.
If posting code please use code tags, see here.
I converted your code to...
This gives the formula =OR(I2="",AND(F2>I2, F2>J2)) in cell A1![]()
Please Login or Register to view this content.
Is this what you were after?
I should have mentioned, the "i" and "v" are variables.
I just need it to fill the last column (i9) with the following formula for each row:
OR(v9="", AND(V6 > v9, v6 > v10))
Try this...
![]()
Please Login or Register to view this content.
Have you tried either suggestion?
What I posted works with the code in the workbook you attached.
![]()
Please Login or Register to view this content.
Personally, if I'm trying to build a string which includes quotes I always use Chr(34), rather than try to get the double quotes right - it ends up being easier to work with and looks a lot less confusing.
Here's a shorter version.
![]()
Please Login or Register to view this content.
Norie, your first post worked fine. I just didnt see it until after I had replied with a sample. Thank you all.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks