RANDBETWEEN excel function giving errors [closed] - excel

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

Related

Can I input a number in scientific notation? [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 last year.
Improve this question
I want to input a large number by scientific notation, for example of distance to sun.
distance = float(input("distance to sun?:"))
I tried to enter 1.471*10**11 and 1.471e11, but both said "could not convert string to float"
Do I have to type the multiple "0"? Thanks for answering in advance.

Compile error: Sub or Function not defined - I want to add an Enter button to my form [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 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 :-)

COUNTIF function with wild cards isn't working [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 3 years ago.
Improve this question
Have an excel sheet, I am trying to do a =COUNTIF(29:29, *TBB*). however these wild cards dont seem to be working. Any Ideas.
Try this
=COUNTIF(29:29,"*TBB*")

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