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

feat(formula): add FINDB function implementation #2538 #2547

Closed
wants to merge 8 commits into from
Closed
Prev Previous commit
Next Next commit
feat(formula): add FIND function implementation
close #2508
  • Loading branch information
sneha khaitan authored and sneha khaitan committed Jun 14, 2024
commit aadb34c4fffa39277fd69979a4465a22ad14539b
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ export default {
},
],
functionParameter: {
text1: { name: 'findText', detail: 'The text to find. The item can be a text value, number, or cell reference.' },
text2: { name: 'withinText', detail: 'The text in which findText has to be found.The item can be a text value, number, or cell reference.' },
number1: { name: 'startNum', detail: 'The position from which string has to be found' },
findText: { name: 'find_text', detail: 'The text to find. The item can be a text value, number, or cell reference.' },
withinText: { name: 'within_text', detail: 'The text in which findText has to be found.The item can be a text value, number, or cell reference.' },
startNumber: { name: 'start_num', detail: 'The position from which string has to be found' },
},
},
FINDB: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ export default {
},
],
functionParameter: {
number1: { name: 'number1', detail: 'first' },
number2: { name: 'number2', detail: 'second' },
findText: { name: 'find_text', detail: 'The text to find. The item can be a text value, number, or cell reference.' },
withinText: { name: 'within_text', detail: 'The text in which findText has to be found.The item can be a text value, number, or cell reference.' },
startNumber: { name: 'start_num', detail: 'The position from which string has to be found' },
},
},
FINDB: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ export default {
},
],
functionParameter: {
number1: { name: 'number1', detail: 'первый' },
number2: { name: 'number2', detail: 'второй' },
findText: { name: 'find_text', detail: 'The text to find. The item can be a text value, number, or cell reference.' },
withinText: { name: 'within_text', detail: 'The text in which findText has to be found.The item can be a text value, number, or cell reference.' },
startNumber: { name: 'start_num', detail: 'The position from which string has to be found' },
},
},
FINDB: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ export default {
},
],
functionParameter: {
number1: { name: 'number1', detail: 'first' },
number2: { name: 'number2', detail: 'second' },
findText: { name: 'find_text', detail: 'The text to find. The item can be a text value, number, or cell reference.' },
withinText: { name: 'within_text', detail: 'The text in which findText has to be found.The item can be a text value, number, or cell reference.' },
startNumber: { name: 'start_num', detail: 'The position from which string has to be found' },
},
},
FINDB: {
Expand Down
16 changes: 8 additions & 8 deletions packages/sheets-formula/src/services/function-list/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,22 +266,22 @@ export const FUNCTION_LIST_TEXT: IFunctionInfo[] = [
abstract: 'formula.functionList.FIND.abstract',
functionParameter: [
{
name: 'formula.functionList.HLOOKUP.functionParameter.findText.name',
detail: 'formula.functionList.HLOOKUP.functionParameter.findText.detail',
example: 'Hello',
name: 'formula.functionList.FIND.functionParameter.findText.name',
detail: 'formula.functionList.FIND.functionParameter.findText.detail',
example: '"Hello"',
require: 1,
repeat: 0,
},
{
name: 'formula.functionList.HLOOKUP.functionParameter.withinText.name',
detail: 'formula.functionList.HLOOKUP.functionParameter.withinText.detail',
example: 'Hello World',
name: 'formula.functionList.FIND.functionParameter.withinText.name',
detail: 'formula.functionList.FIND.functionParameter.withinText.detail',
example: '"Hello World"',
require: 1,
repeat: 0,
},
{
name: 'formula.functionList.HLOOKUP.functionParameter.startNum.name',
detail: 'formula.functionList.HLOOKUP.functionParameter.startNum.detail',
name: 'formula.functionList.FIND.functionParameter.startNum.name',
detail: 'formula.functionList.FIND.functionParameter.startNum.detail',
example: '1',
require: 0,
repeat: 0,
Expand Down
Loading