楼主: spealingman
1988 5

[其他] 假设10个数字,那么这10个数字就可以组合成10*9=90对组合,对于每一对这样的组合,我 [推广有奖]

  • 19关注
  • 8粉丝

已卖:9份资源

讲师

18%

还不是VIP/贵宾

-

威望
0
论坛币
9617 个
通用积分
0.0128
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
7949 点
帖子
274
精华
0
在线时间
449 小时
注册时间
2009-7-7
最后登录
2023-6-14

楼主
spealingman 发表于 2014-3-13 18:35:59 |AI写论文
3000论坛币
假设10个数字,那么这10个数字就可以组合成10*9=90对组合,对于每一对这样的组合,我们都让其相除,会得到90个数字。我是希望将这90个结果放在同一行中。用excel公式实现。

最佳答案

zmy0123 查看完整内容

请查看附件,是这样的吗?
关键词:用excel EXCEL xcel exce cel excel

沙发
zmy0123 发表于 2014-3-13 18:36:00
请查看附件,是这样的吗?
附件: 你需要登录才可以下载或查看附件。没有帐号?我要注册
已有 1 人评分论坛币 收起 理由
admin_kefu + 50 热心帮助其他会员

总评分: 论坛币 + 50   查看全部评分

藤椅
落泪星 发表于 2014-3-14 00:07:48
楼主,这是很简单的公式不断重复的过程,你可以自己慢慢输公式,这样效果好点
搞学术搞到位

板凳
jjjj6666 发表于 2014-3-20 09:58:08
using VBA is easier, not sure if you can use excel directly.

Sub perm2()

    ' data start
    Cells(2, 3).Select
    Set Rng = Range(Selection, Selection.End(xlToRight))
    i0 = 0
    For Each c1 In Rng.Cells
        For Each c2 In Rng.Cells
            If c1.Column < c2.Column Then
                i0 = i0 + 1
                'output results
                Cells(11, 2 + i0) = c2.Value / c1.Value
            End If
        Next c2
    Next c1
   
End Sub

报纸
spealingman 发表于 2014-3-20 17:06:59
jjjj6666 发表于 2014-3-20 09:58
using VBA is easier, not sure if you can use excel directly.

Sub perm2()
不知道怎么使用vba呢?

地板
jjjj6666 发表于 2014-3-20 20:29:30
open you excel with the data (the data, using the current VBA) started from C3, select that sheet with the data.

then hit "alt-f11", it will open an vba window, right click VBAProject (for the excel file you have data) under the Project-VBAProject tab (upper left), then "insert->module", then click "module1", paste the macro there.  You can run the macro using the VBA windows by click run->run sub/userforms" or go back to excel and hit "alt-f8" and select the macro name to run.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2026-1-2 11:10