Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Translate the entire conversation x

Identify starting points

YA_10963798
14-Alexandrite

Identify starting points

Hi there

 

I have some data of depth of 10 inputs  but I need the calculation to start from single point in each input and ignore the one above : for example the starting point of first input is 1.31 but its depth starts from (0) ...so I need the program to ignore all the data from 0 to 1.31 and starts at 1.31.

the second input d2 has values from 0.5  I need the program to ignore this values and starts from 1.26 

so basically it eliminates all the points before the starting points I decided 

YA_10963798_0-1737988196850.png

Prime 10 is attached 

also the excel sheet 

 

ACCEPTED SOLUTION

Accepted Solutions

15 REPLIES 15

Can you answer one question:

In screen grab in post all values of starting point are positive

Capture2.JPG

In your file there are some negative values

Capture.JPG

Which do we follow?

Capture.JPG

why I having this error , did I write it wrongly?

YA_10963798_0-1737993214028.png

 

match as a function by default looks for equal values {you can change this}.  This means the depth must be in the CPT to get a match.

I have changed some of your start values to match values in the CPT's.  4.27 for 4.26, 4.15 for 4.14, 4.13 for 4.12.

 

If you wish to keep starting;z subscript cpt.pos as the values you have that do not appear in CPT's you can add the "geq" greater than or equal in the match function.

Capture.JPG

Hi there 

The positive values 

terry can you please help me fix this equation ... It will be more accurate if I just substruct them .. 

YA_10963798_1-1737994540299.png

 

subscript for two values is i subscript n, one is just i

 

One other correction I made is to add range_5 to definition of range it was missing. In your sheet range only has nine entries.

See what I need is something like this forumla : the first start point from the first d ... so it loops twice .. and I should get this answer

YA_10963798_0-1737995923267.png

YA_10963798_1-1737996025355.png

I wrote a program , and I get these wrong answer:

YA_10963798_2-1737996074404.png

can you help fix the program ?

Thanks 

 

 

terryhendicott_0-1737997522145.png

What is the correct output expected?

Like this one 

YA_10963798_0-1738000590703.png

 

 

In your sheet range is missing range_5.  I added it. range in your sheet has nine entries

two values have index values i subscript n and one has index i use same index for all

Werner_E
25-Diamond I
(To:YA_10963798)

Not sure but are you looking for something like shown in the attached file?

I prefer programmed for loops over worksheet range variables...

 

Capture.JPG

Thank you Terry. 

YA_10963798
14-Alexandrite
(To:Werner_E)

Thank you Werner 

Announcements

Top Tags