+ Reply to Thread
Results 1 to 8 of 8

A formula that can be used in whole column that brings back a positive result.

  1. #1
    Registered User
    Join Date
    06-26-2014
    Location
    North East, USA
    MS-Off Ver
    Excel 2013
    Posts
    12

    A formula that can be used in whole column that brings back a positive result.

    Hi,

    I have a formula (=IF(I28=I29,0,-V29) in column AE. I also have the formula (=SUMIF(H28:H28,"I - Shop Order Component Issue",T28) in column AF. I have the formula (=-(AF28-AE28)) in column AM.

    Now, column "I" in the formula in column AE is a part # which results in the same # in column AE. I only need the value in AE to show up once for the multiple of rows for that same part #, hence my formula. Now in column AF, the values for the same part # are different ( hence why I cannot use the same formula as in AE).

    Now, I have the formula in column AM to essentially calculate the difference between all rows with the same part #. This formula (=-(AF28-AE28)) only works when the sum in range AF28:AF33 is more than the value in column AE of the same part #. When the sum in range AF28:AF33 is less than the value in column AE, it brings out a negative value in column AM( the value is the correct value, I just cannot have it negative).

    I have tried a multitude of things ranging from using ABS(), IF(), OR(),AND(),SUMIF(), along with other formulas. I just can't seem to figure out how to work the formula to read a positive sum in column AM.. Please help!!
    Last edited by ttreacy29; 06-26-2014 at 11:30 AM. Reason: typo was found in formula for column AE

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: A formula that can be used in whole column that brings back a positive result.

    =IF(I28=I28,0,-V29) wont that always be 0?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    06-26-2014
    Location
    North East, USA
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: A formula that can be used in whole column that brings back a positive result.

    Sorry that was a typo, it was supposed to read =IF(I28=I29,0,-V29) My apologies.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: A formula that can be used in whole column that brings back a positive result.

    i think its time for you to upload a workbook showing the expected results
    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Registered User
    Join Date
    06-26-2014
    Location
    North East, USA
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: A formula that can be used in whole column that brings back a positive result.

    here it is - the columns have changed. if you select columns' X,Y,Z you can see the formulas and follow them to the correct columns.. Thanks
    Attached Files Attached Files
    Last edited by ttreacy29; 06-26-2014 at 12:22 PM. Reason: Needed to add information

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: A formula that can be used in whole column that brings back a positive result.

    i realy dont follow the logic why do some numbers stay -ve and others change?

  7. #7
    Registered User
    Join Date
    06-26-2014
    Location
    North East, USA
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: A formula that can be used in whole column that brings back a positive result.

    Column Z is the only column I'm looking to for help on ( formula wise). To explain the reasoning for the Negatives and Positives within the rows will take awhile to explain. The formulas up until column Z are working properly so ignore those.


    The sum of the range Y3:Y8 will be (17.7820) which is less than the total in column X (17.1972). Thus, to get the sum of range Z3:Z8 as a positive .7623 I have to use the formula =-(Y3-X3).

    Now, look at the sum of range Y9:Y15 (which will be (17.00). this sum is more than the total in Column X (17.1972). If I used the same formula, =-(Y9-Y9), the sum of range Z9:Z15 would be (.0197). I need this sum to be a positive.

    As an end result - I have thousands of rows where this formula will be used, so instead of having to sort through the data - I'd like to be able to just use the same formula that will work for both conditions that I explained previously.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: A formula that can be used in whole column that brings back a positive result.

    I don't understand much of what you are trying to do and your special formatting but it sounds like you need to use the ABS function somewhere.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

+ 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] Match formula brings #N/A result. How to change to blank cell?
    By JPWRana in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-24-2013, 11:40 AM
  2. COUNTIF brings back too many numbers
    By jceg316 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2013, 11:50 AM
  3. Cell formula where result to be Positive only
    By Freddie in forum Excel General
    Replies: 4
    Last Post: 02-01-2006, 11:45 AM
  4. [SOLVED] my sumif statement brings back mutiple answers, how do I fix it?
    By graham in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-15-2005, 04:15 PM
  5. [SOLVED] NEED A FORMULA THAT BRINGS OUT NAME OF COLUMN (HEADER) A VALUE BE.
    By DAGO in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-10-2005, 04:06 PM

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