+ Reply to Thread
Results 1 to 1 of 1

Find negatives and reciprocal positive values to flag

  1. #1
    Registered User
    Join Date
    10-12-2011
    Location
    New Castle, PA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Find negatives and reciprocal positive values to flag

    Hello,

    I have a spreadsheet that I cannot find an efficient way to complete this task, so any help would be greatly appreciated. Even if it's just a function and not VBA code.

    I need to identify all negative values, then based off of 3 columns (ID, ID_2, Total Cost) find it's reciprocal positive value (so ID and ID_2 have to match, and Total Cost has to have a negative, then a positive in the same amount), and flag them (doesn't matter what the flag is....a 1 in the last column would work). The problem I ran into though was that when there was more than 1 positive value. I'm attaching a spreadsheet for an example to show what values would need to be kept and what need to be flagged.

    This is just a small sample out of workbook with about 20 columns and 9000 rows. And because the columns shift a lot, if VBA is used, it would have to read the column headers, not the column position.

    Please let me know if any further clarification is needed.

    Thanks.
    Attached Files Attached Files

+ 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] Adding Positive and Negatives
    By Jflann1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-18-2012, 04:23 PM
  2. Evaluating cell values for corresponding positive and negatives
    By rwmccall in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2011, 10:59 PM
  3. Sum Negatives into next Positive
    By ScooterNM5 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-05-2010, 07:01 AM
  4. Converting inputted negatives to positive #'s
    By JMRamsey in forum Excel General
    Replies: 4
    Last Post: 06-14-2007, 04:00 PM
  5. I need to change positive values to negatives
    By lancekeith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2006, 02:32 PM

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