Range().value="=(if) ... " in Excel [closed] - excel

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"",""""))"

Related

Why calculating cosine manually is not working? [closed]

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 7 days ago.
Improve this question
Here is the program to download: https://drive.google.com/file/d/13SREbCQArV4U1nidc8A6YO-Vt1Kh6TM6/view?usp=sharing
It is based on this C program: https://www.bragitoff.com/2017/08/evaluate-plot-cosine-infinite-series-using-c-programming-gnuplot/

Qtdesigner buttons layout [closed]

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 19 days ago.
Improve this question
How can I put these buttons in the layout to don't change their position because when I try I get something like this

Issue trying to delete space in Excel [closed]

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 2 years ago.
Improve this question
I'm trying to delete this space "26 %" and I just can't. I've tried the subsitute formula and the replacement and I can't get it to be 26% without that space in between the % and the 26.
Thank you!
It is probably a NBSP char(160)
=SUBSTITUTE(A1,CHAR(160),"")

Excel multiple IF AND [closed]

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.

Can you please identify the error in this code [closed]

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.

Resources