+ Reply to Thread
Results 1 to 11 of 11

Excel Problem on Multiple Consecutive Negative Numbers - Challenging :(

  1. #1
    Registered User
    Join Date
    09-16-2014
    Location
    Boston, MA
    MS-Off Ver
    2013
    Posts
    10

    Angry Excel Problem on Multiple Consecutive Negative Numbers - Challenging :(

    Hi all,

    I have been stuck on a problem for quite some time and I was hoping someone can lend me a hand.

    Table.PNG

    Basically, given a horizontal list of years and values, it would be helpful to have formulas that return the year where negative values happen, and also how long it lasts for.

    I have tried using INDEX, MATCH, FREQUENCY (in which transpose might have to be used because frequency works on vertical lists).

    However, I just can't come up with a solution no matter how I try. I have attached the file within.

    Please point me in the right direction.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Excel Problem on Multiple Consecutive Negative Numbers - Challenging :(

    hi can you the logic why 2004 is not your required result

    Punnam

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Excel Problem on Multiple Consecutive Negative Numbers - Challenging :(

    Hi

    first answer: how to list years in C7

    Please Login or Register  to view this content.
    Hope it helps
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Registered User
    Join Date
    09-16-2014
    Location
    Boston, MA
    MS-Off Ver
    2013
    Posts
    10

    Re: Excel Problem on Multiple Consecutive Negative Numbers - Challenging :(

    Hi Punnam,

    This is because the table should only return the instance where it dips into the negative values, and then how long it stays. So in the case above, it would dip into the negative values in 2003, and remain like that for two years, so 2003 & 2004. Similarly, we can see that the 5th time it dips into the negative value is in 2010, where it lasts for 3 years, so that includes 2010-2012.

  5. #5
    Registered User
    Join Date
    09-16-2014
    Location
    Boston, MA
    MS-Off Ver
    2013
    Posts
    10

    Re: Excel Problem on Multiple Consecutive Negative Numbers - Challenging :(

    Quote Originally Posted by canapone View Post
    Hi

    first answer: how to list years in C7

    Please Login or Register  to view this content.
    Hope it helps
    Hi canapone,

    I appreciate your prompt response and help on the first half, it works nicely!

  6. #6
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Excel Problem on Multiple Consecutive Negative Numbers - Challenging :(

    Hi again

    in C7


    Please Login or Register  to view this content.

    Not sure if formula is robust.

    Cheers

  7. #7
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Excel Problem on Multiple Consecutive Negative Numbers - Challenging :(

    Hi again

    better to open formula with IF


    Please Login or Register  to view this content.

    I hope you' ll get better solutions.

    Cheers

  8. #8
    Registered User
    Join Date
    09-16-2014
    Location
    Boston, MA
    MS-Off Ver
    2013
    Posts
    10

    Re: Excel Problem on Multiple Consecutive Negative Numbers - Challenging :(

    Thank you so much! Not only do they work perfectly, but you answered very quickly too.

    I really appreciate it!!!


    Quote Originally Posted by canapone View Post
    Hi again

    in C7


    Please Login or Register  to view this content.

    Not sure if formula is robust.

    Cheers

  9. #9
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Excel Problem on Multiple Consecutive Negative Numbers - Challenging :(

    Hi,

    you're welcome and thanks for kind feedback: probably formula needs a little snip (=it's too long).

    Greetings from Firenze

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Excel Problem on Multiple Consecutive Negative Numbers - Challenging :(

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).


    CROSSPOST link added for you as a courtesy: http://www.mrexcel.com/forum/excel-q...allenging.html

    Do not do this again. Thank you.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  11. #11
    Registered User
    Join Date
    09-16-2014
    Location
    Boston, MA
    MS-Off Ver
    2013
    Posts
    10

    Re: Excel Problem on Multiple Consecutive Negative Numbers - Challenging :(

    Hi,

    I didn't mean to cross post.

    What happened was that I posted in the other forum, but realized it has limited functionalities such as it does not support uploading an excel file so it can be more clear.

    Then I searched if there is a better forum board and I did here. The utilities were much better and users were more active.

    It was simply a change in preference of using this forum over another forum board. Now that I have moved here, it won't happen again

    PS: I did try to edit & delete the post in the other forum, but there was no such option (another limitation).


    Quote Originally Posted by JBeaucaire View Post
    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).


    CROSSPOST link added for you as a courtesy: http://www.mrexcel.com/forum/excel-q...allenging.html

    Do not do this again. Thank you.

+ 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. Trend formula- consecutive positive and negative numbers
    By Col83 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-05-2014, 02:53 AM
  2. [SOLVED] Find consecutive 15 positive or negative numbers in a column
    By Sarangsood in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-19-2013, 05:26 AM
  3. [SOLVED] Count Consecutive Positive/Negative numbers
    By Taislin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2013, 01:02 PM
  4. Sum of time for consecutive positive/ negative numbers
    By DexterG in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-25-2012, 04:03 AM
  5. Replies: 6
    Last Post: 11-13-2012, 07:33 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