Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] EXCEL公式处理错误 #4058

Open
catsimple opened this issue Feb 18, 2024 · 5 comments
Open

[Bug] EXCEL公式处理错误 #4058

catsimple opened this issue Feb 18, 2024 · 5 comments

Comments

@catsimple
Copy link

image

image
处理后的文本多了反斜杠,导致excel公式错误

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] EXCEL formula processing errors

image

image
The processed text contains extra backslashes, causing excel formula errors

@fred-bf
Copy link
Contributor

fred-bf commented Feb 18, 2024

@catsimple could you share the original prompt of the message? I guess the raw content return by GPT contains the character '/'

@catsimple
Copy link
Author

@catsimple could you share the original prompt of the message? I guess the raw content return by GPT contains the character '/'

"在Excel中,你可以使用一些公式来实现这样的数据处理。假设你的原始数据从第1行开始,A列和B列分别为A1:A4和B1:B4,而你想要生成的数据从第1行开始,D列和E列分别为D1:D8和E1:E8。你可以按照以下步骤进行操作:\n\n1. 在D1单元格中输入公式:\n \n =INDEX($A\$1:$A\$4,ROUNDUP(ROWS(D\$1:D1)/COUNTA($B\$1:$B\$4),0))\n \n 这个公式用于生成D列的数据,它会将A列的值按顺序重复。\n\n2. 在E1单元格中输入公式:\n \n =INDEX($B\$1:$B\$4,MOD(ROWS(E\$1:E1)-1,COUNTA($B\$1:$B\$4))+1)\n \n 这个公式用于生成E列的数据,它会将B列的值按顺序循环。\n\n3. 拖动D1和E1的公式填充到需要的行数。\n\n这样,你就会得到生成的数据,其中D列和E列分别包含了所有可能的组合。请确保调整公式中的单元格范围,使其适应你的实际数据范围。"

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


@catsimple could you share the original prompt of the message? I guess the raw content return by GPT contains the character '/'

"In Excel, you can use some formulas to achieve such data processing. Suppose your original data starts from row 1, columns A and B are A1:A4 and B1:B4 respectively, and the data you want to generate Starting from row 1, columns D and E are D1:D8 and E1:E8 respectively. You can follow the steps below:\n\n1. Enter the formula in cell D1:\n ``\n = INDEX($A$1:$A$4,ROUNDUP(ROWS(D$1:D1)/COUNTA($B$1:$B$4),0))\n \n This formula is used Generate data in column D, which will repeat the values ​​in column A in sequence.\n\n2. Enter the formula in cell E1:\n \n =INDEX($B$1:$B$4, MOD(ROWS(E$1:E1)-1,COUNTA($B$1:$B$4))+1)\n ```\n This formula is used to generate data in column E. It will The values ​​of the columns cycle in order.\n\n3. Drag the formulas of D1 and E1 to fill in the required number of rows.\n\nIn this way, you will get the generated data, in which columns D and E contain all Possible combinations. Be sure to adjust the cell range in the formula to fit your actual data range."

@H0llyW00dzZ
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants