cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Using vhlookup on a dataset for a vector

frederico.cms
10-Marble

Using vhlookup on a dataset for a vector

Dear,

 

I have a dataset where the first column represents the index of a vector and column 2,3 and 4 the three possibilities. The first row contains the classification for a specific condition. The dataset has been manipulated to align these indices and classifications.

 

fredericocms_0-1723918855139.png

My vector, for example, have this format::

fredericocms_1-1723918872309.png

 

However, I'm having trouble getting the vertical-horizontal lookup (VHLOOKUP) to search for each element in my vector and correctly return the value at the intersection based on the classification assigned to each vector element. Anything I tried returned 3x1.

 

I have tried it all from the similar post:

https://community.ptc.com/t5/Mathcad/Use-vlookup-over-a-vector/td-p/482509

 

Prime 9 attached.

 

ACCEPTED SOLUTION

Accepted Solutions

Maybe you are looking for something like this:

Werner_E_0-1723922165851.png

 

Depending on your needs it could be convenient to turn it into a function

Werner_E_1-1723922229173.png

 

BTW, there seems to be no difference between "LOW" and "MEDIUM"

 

Prime 9 sheet attached

View solution in original post

2 REPLIES 2

Maybe you are looking for something like this:

Werner_E_0-1723922165851.png

 

Depending on your needs it could be convenient to turn it into a function

Werner_E_1-1723922229173.png

 

BTW, there seems to be no difference between "LOW" and "MEDIUM"

 

Prime 9 sheet attached

I can't thank you enough, Werner. That was a brilliant solution.

 

I have to work much harder on programming, as it is compulsory for manipulating and extracting information from datasets.

 

By the way, the table is for a hazardous zone study IEC 60079-10-1.

 

Many thanks again.

 

Fred

 

 

 

 

Announcements

Top Tags