+ Reply to Thread
Results 1 to 4 of 4

time series return positive and negative numbers and numbers following

  1. #1
    Registered User
    Join Date
    07-16-2017
    Location
    norway
    MS-Off Ver
    365
    Posts
    46

    Question time series return positive and negative numbers and numbers following

    I have a time series with positive and negative numbers. See attachment with example.

    Problem:
    1. I need to find the first number equal or above 2,2 or equal below -2,2.
    2. If I find the number above 2,2 than I need to return the next number in the time series that is 0 or below. Or if I find -2,2 or below i Need to return the next 0 or above number in the time series.
    3. repeat.

    As the numbers does not come in any order (seems pretty random to me), I cant figure out how to do this. I can return the numbers with the IF function but there i get stuck.

    Thanks for any help in advance!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-14-2013
    Location
    Austria
    MS-Off Ver
    2016 / 2019
    Posts
    339

    Re: time series return positive and negative numbers and numbers following

    I would do it with VBA
    see attached file
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-16-2017
    Location
    norway
    MS-Off Ver
    365
    Posts
    46

    Re: time series return positive and negative numbers and numbers following

    Thanks very much Gue2013!

  4. #4
    Valued Forum Contributor
    Join Date
    01-14-2013
    Location
    Austria
    MS-Off Ver
    2016 / 2019
    Posts
    339

    Re: time series return positive and negative numbers and numbers following

    good if you can accept a VBA solution instead of complex formula :-)
    welcome

+ 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] How to change a series of positive numbers to negative numbers
    By Richard Buttrey in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 09-06-2005, 10:05 PM
  2. [SOLVED] How to change a series of positive numbers to negative numbers
    By Ellie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 PM
  3. [SOLVED] How to change a series of positive numbers to negative numbers
    By Ellie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  4. [SOLVED] How to change a series of positive numbers to negative numbers
    By Ellie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. [SOLVED] How to change a series of positive numbers to negative numbers
    By Richard Buttrey in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 09:05 AM
  6. [SOLVED] How to change a series of positive numbers to negative numbers
    By Ellie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  7. [SOLVED] How to change a series of positive numbers to negative numbers
    By Ellie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  8. [SOLVED] How to change a series of positive numbers to negative numbers
    By Ellie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 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