+ Reply to Thread
Results 1 to 4 of 4

Loop through rows identifying a positive/negative pattern and return value

  1. #1
    Registered User
    Join Date
    01-31-2009
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    66

    Loop through rows identifying a positive/negative pattern and return value

    Hello,

    I have about 20,000 rows. Each row contains 1 asset and 60 months of a running balance. I need to create a loop that goes through each cell in the row for all the months and determine if there are these pattersn:

    Asset is negative, then remains positive, return reschedule
    Asset is always negative, return BUY
    Assset is negative, then positive the negative, return reschedule
    Asset is positve, then always negative, return buy
    Asset is postive then negative then positve, then reschedule
    Asset is always positive, return good

    I'd just return the value in a cell beside the asset ID where the cases are being analyzed.

    Still trying to see if I can find something similar on the forum/google!

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Loop through rows identifying a positive/negative pattern and return value

    Hi,

    Uploading a sample data file will make things easy to understand.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Registered User
    Join Date
    01-31-2009
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    66

    Re: Loop through rows identifying a positive/negative pattern and return value

    Here is an example. I just realized as I was making that, that it the cases could continue like UP down UP down UP down.

    We need something to build on, this is a good start!
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-31-2009
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    66

    Re: Loop through rows identifying a positive/negative pattern and return value


+ 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. Zeroing out Positive and Negative Values in Rows
    By Lancer234 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-28-2013, 03:07 PM
  2. How to delete those rows which has same positive & negative value
    By joyharry in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 05-24-2013, 03:35 AM
  3. Hello| Formula To Return 1 if positive, o, if negative
    By scuba2x2 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-03-2013, 09:39 AM
  4. Convert negative to positive in sheet containing both positive/negative numbers
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2010, 07:52 PM
  5. Replies: 2
    Last Post: 11-13-2008, 12:35 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