+ Reply to Thread
Results 1 to 17 of 17

sum function help needed

  1. #1
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139

    sum function help needed

    I'm using columns D and E.
    I have one condition in each column, the condition in column D is triggered first then the condition in column E.
    Is there a way to find the difference between the two numbers that show when each condition is triggered?
    Last edited by novice2430; 12-12-2008 at 04:37 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Can you repeat that in better detail please?

    What do you mean by "conditions".. formulas in those cells?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139
    I'm using a function with conditional formatting for column D, and another function with conditional formatting in column E. The condition in d is met first then the condition in e is met. I'm trying to have excel calculate the difference between the value in each cell once both conditions are met.
    Can this be done?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Still hard to understand...can you post a sample sheet showing what you are trying to do?

  5. #5
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139
    I don't know how to add a sample sheet. What I'm working on isn't that important, so I'll work on it later. Thanks for giving it a go.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    When you click Reply, you will see a paperclip icon.. use that to attach an .xls or .zip file.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    It's probably as easy as creating an IF(AND()) formula that combines the conditions...

    something like:

    =IF(AND(Cond1,Cond2),do_this,do_that)

  8. #8
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139
    I have attached a sample.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139
    Anyone know

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Can you please attach as a .xls file.. I don't have access to XL2007 on this computer.

  11. #11
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139
    Here's the xls file
    Attached Files Attached Files

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I am afraid it is still not exactly clear what you want as a final result...

    can you fill out the cell(s) you want results in manually.... so that I can see what you are expecting... and re-attach the sheet.

  13. #13
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139
    Thanks for taking the time to help me!
    Attached example.
    Attached Files Attached Files

  14. #14
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    See attached...

    I used 2 helper columns to assist in getting the final result the way you want it to appear... you can hide those columns, if desired.

    In Helper column G, formula in G2 is
    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER not just ENTER. You will see { } brackets appear around the formula

    in Helper column H, formula in H2 is
    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER not just ENTER

    In Column I, formula in I2 is:
    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER not just ENTER

    You can then copy these formulas down the whole column.
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139
    That looks real good! Excatly what I wanted.
    Thanks again for your time and effort!
    I do have one more question. When making a function an array, is there any way to ctrl+shift+enter the whole column instead of each cell seperately?

  16. #16
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139
    figured it out...ctrl+shift+enter the first cell, then drag that cell down as far as needed.

  17. #17
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by novice2430 View Post
    figured it out...ctrl+shift+enter the first cell, then drag that cell down as far as needed.
    Correct

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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