+ Reply to Thread
Results 1 to 10 of 10

Looping formula in same columm / dynamic range?

  1. #1
    Registered User
    Join Date
    06-07-2018
    Location
    Joinville, Brazil
    MS-Off Ver
    2007
    Posts
    5

    Question Looping formula in same columm / dynamic range?

    Hi all,

    I had to make an account to find answers, so is my first post!

    What I need is the difference (max-min) in A column for each interval between zeros. Its possible with formulas only?

    This table is an example, real one had 3000 lines and too many sheets

    excel.JPG

  2. #2
    Registered User
    Join Date
    06-07-2018
    Location
    Joinville, Brazil
    MS-Off Ver
    2007
    Posts
    5

    Re: Looping formula in same columm / dynamic range?

    oh! IMPORTANT:

    the amount of cells between 0 is NOT always 3, it always varies .... the image tricks

    excel.JPG

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Looping formula in same columm / dynamic range?

    Hello gdieterich and Welcome to Excel Forum.
    For future reference please upload the sample file instead of a screen shot.
    I believe that the following array entered formula* will work in the 2007 version:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *1) Select cell C3,
    2) Paste the formula into the formula bar,
    3) Simultaneously press the Ctrl, Shift and Enter keys,
    4) Double click the fill handle to copy the formula down column C.
    To upload a spreadsheet click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  4. #4
    Registered User
    Join Date
    06-07-2018
    Location
    Joinville, Brazil
    MS-Off Ver
    2007
    Posts
    5

    Re: Looping formula in same columm / dynamic range?

    JeteMc,

    Thank you very much for your response, it's 99% what I want, helped me a lot.
    I attached the whole sheet, Its more explained there.

    now I just need to filter the highest values (final total time) and shrink the results one below the other.

    FYI, this is data of induction furnaces that melting cast iron, so with this formulas I can automate the extract of melting time.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Looping formula in same columm / dynamic range?

    This starts out being pretty promising, but then fails due to some of the stating times not having corresponding ending times and visa versa. For example I don't understand why M461 doesn't read Start, nor why M627 doesn't read Finish.
    At any rate if those issues are sorted then perhaps the following will help with getting total times.
    1) Column U shows a list of Start times using*: =IFERROR(INDEX(N$2:N$2421,SMALL(IF(M$2:M$2421="Start",ROW($2:$2421)-1),ROW(1:1))),"")
    2) Column V shows a list of Finish times using*: =IFERROR(INDEX(N$2:N$2421,SMALL(IF(M$2:M$2421="Start",ROW($2:$2421)-1),ROW(1:1))),"")
    3) Column W shows a list of Total times using: =IFERROR(V5-U5,"")
    *Denotes array entered formulas which need to be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER before they are copied down the column.
    Note that the formatting for the Totals column is: [h]:mm:ss
    Let us know if you have any questions.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-04-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    54

    Re: Looping formula in same columm / dynamic range?

    Please find attached solution

    Very easy to do if you make cluster group

    ADD reputation if you like my solution

  7. #7
    Registered User
    Join Date
    06-07-2018
    Location
    Joinville, Brazil
    MS-Off Ver
    2007
    Posts
    5

    Re: Looping formula in same columm / dynamic range?

    Thank you very much JeteMc, works like a charm!!!

  8. #8
    Registered User
    Join Date
    06-07-2018
    Location
    Joinville, Brazil
    MS-Off Ver
    2007
    Posts
    5

    Re: Looping formula in same columm / dynamic range?

    Thank you very much JeteMc, works like a charm!!!

    ashishkhurana93 thank you for your time, but the other template fits better hehe.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Looping formula in same columm / dynamic range?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Looping formula in same columm / dynamic range?

    You're Welcome and thank you for the feedback. I hope that you have a blessed day.

+ 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. Replies: 2
    Last Post: 02-04-2018, 11:01 AM
  2. Replies: 17
    Last Post: 08-08-2015, 08:40 AM
  3. Looping through dynamic range
    By mannymg in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2014, 03:52 PM
  4. Replies: 2
    Last Post: 02-02-2006, 04:10 PM
  5. Replies: 1
    Last Post: 10-02-2005, 10:05 PM
  6. (macro, formula,...) To Copy columm in various sheet's
    By pmarques in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-14-2005, 10:32 AM
  7. (macro, formula,...) To Copy columm in various sheet's
    By pmarques in forum Excel General
    Replies: 0
    Last Post: 07-14-2005, 07:25 AM

Tags for this Thread

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