lookup fuction

lookup fuction - Messages

#1 Posted: 3/6/2023 5:02:40 AM
soomoon

soomoon

1 likes in 39 posts.

Group: User

I would like to have a function like lookup (vlookup, hlookup) in smath.

thank you.

File not found.File not found.
1 users liked this post
João Felipe Seráfico Melo 3/6/2023 10:09:00 AM
#2 Posted: 3/6/2023 5:45:04 AM
João Felipe Seráfico Melo

João Felipe Seráfico Melo

7 likes in 62 posts.

Group: User

findrows function within Special Functions plugin is what you're looking for, soomoon
#3 Posted: 3/6/2023 8:36:22 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I would like to have a function like lookup (vlookup, hlookup) in smath.


Find Index Key Code is lot more powerful.
Assume your Customer wants more information from his bar diameter
you can give all pertaining informations ...
Add price column, material, delivery ... etc.
Cheers ... Jean

bar size Findndex KeyCode.sm (10 KiB) downloaded 60 time(s).
#4 Posted: 3/6/2023 9:14:07 AM
NDTM Amarasekera

NDTM Amarasekera

130 likes in 352 posts.

Group: User

bar size.sm (9 KiB) downloaded 38 time(s).

Findrows.jpg
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
1 users liked this post
João Felipe Seráfico Melo 3/6/2023 10:05:00 AM
#5 Posted: 3/6/2023 10:05:04 AM
João Felipe Seráfico Melo

João Felipe Seráfico Melo

7 likes in 62 posts.

Group: User

Jean, your example shows EXACTLY what findrows does.
#6 Posted: 3/6/2023 5:23:05 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Jean, your example shows EXACTLY what findrows does


Yes for that simple application.
FindIdx(V,x,col) gives me more for advanced Engineering works
Thanks for the observation.
#7 Posted: 3/6/2023 11:46:16 PM
overlord

overlord

549 likes in 1332 posts.

Group: Moderator

https://en.smath.com/forum/yaf_postst673_lookup.aspx
Check thread above. You may find it useful.

You can look forum for your questions by searching too.
Searching may result with a ready answer to a question.

Regards
#8 Posted: 3/7/2023 12:30:02 PM
NDTM Amarasekera

NDTM Amarasekera

130 likes in 352 posts.

Group: User

findrows() function revisited.

As a part of a project undertaken to study flows of some perennial streams in Sri Lanka,
a particular stream, located far away from Colombo, was selected and a Rating Table (RT) was
prepared relating water levels to flows. This process took a few years so that the
data would almost cover reasonable range of depths for practical reasons, excluding severe floods.

During this period, an electronic device was also constructed to measure water levels (WL) and
transmit as digital signals to control station in Colombo.
However, the numerical values of transmitted WL had more than 6 decimals,
whereas the Rating Table (RT) was calibrated only to 2 decimals. Hence, initially WL values
had to be refined to 2 decimals for use with RT values.
Earlier a vlookup function which was posted in the forum was used, but it took a long time to process

But when the findrows function was available, data processing was dramatically fast.
Both Excel and SM files must be in the same folder.

Cheers

1.July WL&RT.xlsx (29 KiB) downloaded 28 time(s).
Find_Flows-R1.sm (26 KiB) downloaded 37 time(s).
Find_Flows-R1.pdf (234 KiB) downloaded 48 time(s).
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
1 users liked this post
Mark R Harris 3/8/2023 4:34:00 PM
  • New Posts New Posts
  • No New Posts No New Posts