File Exchange
Try Origin for Free
The Origin Forum
Home
|
Profile
|
Register
|
Active Topics
|
Members
|
Search
|
FAQ
|
Send File to Tech support
Username:
Password:
Save Password
Forgot your Password?
|
Admin Options
All Forums
Origin Forum
Origin Forum
Finding Closest Value
New Topic
Reply to Topic
Printer Friendly
Author
Topic
farp1980
USA
9 Posts
Posted - 11/12/2025 : 12:36:44 PM
Origin Ver. 2025b and Service Release: 10.2.5.212
Operating System: W11
Hi,
Is there a function to find the cell with the closest value to a given number and get its row index? I haven't had any luck with index or xindex.
Example: Find the cell in column B with the value closest to 100 and return its row index.
Thanks.
YimingChen
1689 Posts
Posted - 11/12/2025 : 2:36:14 PM
Try this:
list(table(B,B,100,2),B)
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Forum
Origin Viewer Forum
Origin Learning Edition Forum
Origin Forum for Programming
Forum for Python
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
LabTalk Forum
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000