早教吧作业答案频道 -->其他-->
excel宏程序X1=31,X2=65X3=30~43之间的整数,X4=88~124之间的整数X5=14~18之间的整数,或等于27,X6,X7=10,或14~18之间的整数,X8=34~38之间的整数,或等于40,k=(x1*x3*x5*x8)/x2*x2*x6*x7,求1.206466667
题目详情
excel 宏程序 X1=31,X2=65 X3=30~43之间的整数,X4=88~124之间的整数 X5=14~18之间的整数,或等于27,X6,X7=10,或14~18之间的整数,X8=34~38之间的整数,或等于40,k=(x1*x3*x5*x8)/x2*x2*x6*x7,求 1.206466667
▼优质解答
答案和解析
Sub kkk()
X1 = 31
X2 = 65
Dim X3 As Variant
X3 = Array(30,31,32,33,34,35,36,37,38,39,40,41,42,43)
Dim X4(37) As Variant
For i = 0 To 36
X4(i) = i + 88
Next i
Dim X5 As Variant
X5 = Array(14,15,16,17,18,27)
X6 = 10
X7 = 10
Dim X8 As Variant
X8 = Array(34,35,36,37,38,40)
rn = 2
Sheets(1).Cells(1,1) = "X3"
Sheets(1).Cells(1,2) = "X4"
Sheets(1).Cells(1,3) = "X5"
Sheets(1).Cells(1,4) = "X8"
For i = 0 To 13
For j = 0 To 36
For m = 0 To 5
For n = 0 To 5
k = (X1 * X3(i) * X5(m) * X8(n)) / X2 / X2 / X6 / X7
If 1.206466667 < k < 1.206866667 Then
Sheets(1).Cells(rn,1) = X3(i)
Sheets(1).Cells(rn,2) = X4(j)
Sheets(1).Cells(rn,3) = X5(m)
Sheets(1).Cells(rn,4) = X8(n)
rn = rn + 1
End If
Next n
Next m
Next j
Next i
End Sub
结果都输出到sheet1里
我感觉这个计算的式子 k = (X1 * X3(i) * X5(m) * X8(n)) / X2 / X2 / X6 / X7有点问题,运行了一下,有几千上万的组合.
X1 = 31
X2 = 65
Dim X3 As Variant
X3 = Array(30,31,32,33,34,35,36,37,38,39,40,41,42,43)
Dim X4(37) As Variant
For i = 0 To 36
X4(i) = i + 88
Next i
Dim X5 As Variant
X5 = Array(14,15,16,17,18,27)
X6 = 10
X7 = 10
Dim X8 As Variant
X8 = Array(34,35,36,37,38,40)
rn = 2
Sheets(1).Cells(1,1) = "X3"
Sheets(1).Cells(1,2) = "X4"
Sheets(1).Cells(1,3) = "X5"
Sheets(1).Cells(1,4) = "X8"
For i = 0 To 13
For j = 0 To 36
For m = 0 To 5
For n = 0 To 5
k = (X1 * X3(i) * X5(m) * X8(n)) / X2 / X2 / X6 / X7
If 1.206466667 < k < 1.206866667 Then
Sheets(1).Cells(rn,1) = X3(i)
Sheets(1).Cells(rn,2) = X4(j)
Sheets(1).Cells(rn,3) = X5(m)
Sheets(1).Cells(rn,4) = X8(n)
rn = rn + 1
End If
Next n
Next m
Next j
Next i
End Sub
结果都输出到sheet1里
我感觉这个计算的式子 k = (X1 * X3(i) * X5(m) * X8(n)) / X2 / X2 / X6 / X7有点问题,运行了一下,有几千上万的组合.
看了excel宏程序X1=31,X...的网友还看了以下:
英语翻译x指生育期平均温度与30℃的差值,低于30℃取正值,等于或高于30℃则温度差为“0” 2020-03-30 …
关于人生快乐,自由,梦想的古诗词中国老古人说的诗句或成语各30个关于人生快乐,自由,梦想的古诗词中 2020-05-17 …
天道著作吃书增加的阅历天道著作吃书都是增加3060和120不等但在什么情况下增加30我知道吃1等装 2020-06-15 …
某市举行“中学生诗词大赛”海选,规定:成绩大于或等于90分的具有参赛资格.某校有800名学生参加了 2020-07-29 …
如图所示,凸透镜焦距为15厘米,将光屏放在光具座的80厘米刻度处,保持透镜位置不变,蜡烛应在厘米刻 2020-07-31 …
excel宏程序X1=31,X2=65X3=30~43之间的整数,X4=88~124之间的整数X5= 2020-10-31 …
若D4小于1200,大于-400时,那么D4等于原值怎么设置公式?问题、(A-B)*C*D*系数.公 2020-10-31 …
通达信分时图选股公式选股条件:1.时间段为9:30-10:30之间均满足上下波动均小于2%并且期间有 2020-11-06 …
小明家的家用电器总功率为3.3KW,那么他家进户线上要装的保险丝额定电流应等于或大于A.他家的空调的 2020-11-14 …
探讨用“past”和“to”来报答时间.1.当分钟数大于或等于30时用(),常即,“分钟数+()+小 2020-12-31 …