Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 years ago.
Improve this question
I have a code that is giving me a compile error:
Expected: Expression and it specifically highlights the first IF of
the formula.
Code:
Sub ProduceTheListOfRecourseAccounts()
' Run formulas to populate the recourseable accounts on the Recourse Items Page
Sheets("Recourse Items").Range("A2:A & LastRow).FormulaArray = "=IF(ISERROR(INDEX('Formula sheet'!$A:$F,SMALL(IF('Formula sheet'!E:E>'WBC Recourse Summary'!$E$15,ROW('Formula sheet'!A:A)),ROW('Formula sheet'!1:1)),1)),"""",INDEX('Formula sheet'!$A:$F,SMALL(IF('Formula sheet'!E:E>'WBC Recourse Summary'!$E$15,ROW('Formula sheet'!A:A)),ROW('Formula sheet'!1:1)),1))"
End Sub
Please help me identify what I am doing wrong. This is my first VBA array, all normal formulas are working well in VBA.
Many thanks
You didn't close your string. You want:
"A2:A" & LastRow
Looks like this was answered in a comment.
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I am new to machine learning. I am trying to learn feature selection from this link. Here they have a line of code which is given below
search = GridSearchCV(pipeline, grid, scoring='neg_mean_squared_error', n_jobs=-1, cv=cv)
But whenever I try to run this code I get the error
I cannot find where to import neg_mean_squared_error from. I am not sure where I should write the function myself or not. The tutorial isn't clear on this issue.
It is just a typo.
You need
neg_mean_absolute_error
You typed
neg_mean_absolure_error
using an r instead of t
Reference: https://scikit-learn.org/stable/modules/model_evaluation.html
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
Compile error: Sub or Function not defined - I want to add an Enter button to my form
Change "STE" to "SET"
It happens to the best of us :-)
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I'm a beginner. Can you please help me with the below code?
Range ("B2","B16").value="=if(B1="","",if(B4=B5,"Completed",""))
It doesn't work.
Its really not clear what the intended formula is, but this would be valid if you are trying to put the formula in B2 and B16:
Union(Range("B2"),Range("B16")).formula = "=IF(B1="""","""",IF(B4=B5,""Completed"",""""))"
If you are trying to put the formula in B2:B16 then:
Range("B2:B16").formula = "=IF(B1="""","""",IF(B4=B5,""Completed"",""""))"
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I am struggling with an excel formula with multiple IF AND conditions. maybe you can help me. Here is an explanation of what I want to achieve:
List different prices if TWO conditions are met.
If A1=Ferrari AND B1=red, price=500; IF A1=Ferrari AND B1=gold, price=550; IF A1=Toyota AND B1=red, price=100, IF A1=Toyota and color=gold, price=110, else leave cell blankĀ“
I hope you understand what I want to achieve and can help me.
This is what I tried but it gives me an error. I am using google sheets by the way.
=IF(AND(I27="ferrari"; K27="red")Variables!$R$1;IF(AND(I27="ferrari"; K27="gold")Variables!$R$2;IF(AND(I27="toyota"; K27="red")Variables!$V$3;IF(AND(I27="toyota"; K27="gold")Variables!$V$4;""))))
I think you've got your semi colons and commas mixed up! Try this...
=IF(AND(I27="ferrari",K27="red"),Variables!$R$1,IF(AND(I27="ferrari",K27="gold"),Variables!$R$2,IF(AND(I27="toyota",K27="red"),Variables!$V$3,IF(AND(I27="toyota",K27="gold"),Variables!$V$4,""))))
You were also missing commas after some of your closing parentheses.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I'm pasting in the formula:
=RANDBETWEEN(DATE(2014, 1, 1),DATE(2015, 1, 1))
which is mentioned in several tutorials but getting the Excel "error with function message". I'm in Ireland which is a different format but either way it doesn't work.
Anything else I have to do to generate random dates?
Try :
=RANDBETWEEN(41640,42005)
And format as date.
For some countries:
=RANDBETWEEN(41640;42005)
And format as date.
And if the 2nd works maybe just:
=RANDBETWEEN(DATE(2014; 1; 1);DATE(2015; 1; 1))