+ Reply to Thread
Results 1 to 10 of 10

FInding Max stress values until an instant strain values

  1. #1
    Registered User
    Join Date
    11-28-2015
    Location
    berlin
    MS-Off Ver
    office 2013
    Posts
    4

    FInding Max stress values until an instant strain values

    Dear Friends,

    I have problems finding max value with respect to an instant strain values.May you help me to write an excel code for this.
    I have two column datas (stress-strain). I want to find the max stress values until an instant strain values and being written in 3rd column.
    I actually do not have any knowledge about macros.
    As you see below; the maximum value until an instant strain was written.Although the third row had a value of 0, max stress was found to be 0.00249 until a strain of 0.01685.
    Is there anyone can program this would be great.
    Thank you

    stress ___ strain __ 3. column (macro calculates)
    0 _____ 0 _______ 0
    0.00249 0.00562 0.00249
    0.00249 0.01124 0.00249
    0_____ 0.01685 0.00249
    0.00249 0.01685 ....
    0.00249 0.02247
    0.00498 0.02247
    0.00498 0.02809
    0.00498 0.03371
    0.00746 0.03933
    0.00995 0.03933
    0.01244 0.04494
    0.01244 0.05056
    0.01244 0.05056
    0.01493 0.05618
    0.01493 0.0618
    0.01742 0.06742
    0.01742 0.07303
    0.0199 0.07303
    0.02239 0.07865
    0.02239 0.08427
    0.02488 0.08427
    0.02737 0.08989
    0.02737 0.09551
    0.02986 0.10112
    0.02986 0.10112
    0.03483 0.10674
    0.03483 0.11236
    Last edited by mecheng85; 11-28-2015 at 01:55 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: FInding Max stress values until an instant strain values

    Hi,

    It's not clear, at least to me exactly how you want this to work. Would you upload the workbook and manually add the results you expect, along with a note that explains how you've arrived at the results? You can probably do this with standard Excel functions, but we'll be able to tell when we see the workbook.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-28-2015
    Location
    berlin
    MS-Off Ver
    office 2013
    Posts
    4

    Re: FInding Max stress values until an instant strain values

    Thank you Richard for answer.
    I attached the worksheet

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: FInding Max stress values until an instant strain values

    It is still not clear to me what you want to do. With one exception (row 7), the value in row C = value in row A. In row 7, the value iin row A was zero and the value in row C was equal to the previous value in row A.

    I can reproduce your expected results with this simple formula in D4, copied down:

    =IF(A4=0,D3,A4)

    but, to be honest, I have no idea what I am trying to do. Can you explain exactly wha you need, breaking it down into very simple terms, so that I can understand...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: FInding Max stress values until an instant strain values

    In C4 and copy down,

    =MAX(C3,A4)
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    11-28-2015
    Location
    berlin
    MS-Off Ver
    office 2013
    Posts
    4

    Re: FInding Max stress values until an instant strain values

    The stress values are not linearly increased with increasing strain. Sometimes it decreases.
    Lets say I have such datas:
    stress : 0 5 8 3 5 6 5 7
    step: 1 2 3 4 5 6 7 8
    I want to find the max measured stress value for each step. For instance; expected result for this data set is:
    res: 0 5 8 8 8 8 8 8
    because 8 is the largest measured value for step 3,4,5,6,7,8,
    I hope you can understand, yes it is complicated but I hope it is clear now.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: FInding Max stress values until an instant strain values

    Maybe, I understand now...

    =MAX($A$7:A7) copied down

  8. #8
    Registered User
    Join Date
    11-28-2015
    Location
    berlin
    MS-Off Ver
    office 2013
    Posts
    4

    Re: FInding Max stress values until an instant strain values

    hey thank you

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: FInding Max stress values until an instant strain values

    Hi Perhaps in C5 copied down

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: FInding Max stress values until an instant strain values

    I guess that was it!! Thanks for the Reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] the code is finding repeated values but i need to search values from E column to D
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-14-2014, 01:33 AM
  2. [SOLVED] Finding Sum of Unique Values for Duplicate Values
    By LegoLand in forum Excel General
    Replies: 13
    Last Post: 03-21-2014, 06:49 PM
  3. Finding Values Difference when values are ever changing
    By Gamerxx13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2013, 08:23 PM
  4. Summing Values after Finding Max Consecutive Values
    By pipsturbo in forum Excel General
    Replies: 6
    Last Post: 05-12-2009, 08:06 PM
  5. Finding Highest values and Lowest Values
    By jpthelpguy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-22-2009, 03:30 AM
  6. [SOLVED] Finding values within text and substituting with alternate values.
    By Bhupinder Rayat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2006, 09:45 AM
  7. finding values and displaying adjacent values
    By willy3211 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-12-2005, 11:49 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1