+ Reply to Thread
Results 1 to 6 of 6

I need a formula to be contingent upon a number in a different cell.

  1. #1
    Registered User
    Join Date
    10-18-2013
    Location
    adams, TN
    MS-Off Ver
    Excel 2007
    Posts
    3

    I need a formula to be contingent upon a number in a different cell.

    This is my first post on any help forum ever!

    I am calculating grain moisture, using this information to adjust my grain bushel amount.

    I need my formula to deliver a 0.0 if the moisture is lower than 13.0. If it is higher than 13.0 I need the following function performed: =SUM(F129-13)/100*K129

    If the moisture is lower than 13.00 the result would be negative. I don't need to make any adjustments if the result is negative.

    I tried formatting the cells like this: #,##0.00;"0.00" and this delivers a zero in the case of a negative, but this cell is used in another formula and the second formula is using the actual result not the 0.

    i have attached a portion of my data as an example. I am using Excell 2007.

    I am trying very hard to provide accurate information. Please help!! Thank you!

    Katie
    Attached Files Attached Files
    Last edited by katielux; 10-18-2013 at 03:16 PM. Reason: typo

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: I need a formula to be contingent upon a number in a different cell.

    Not sure if I've understood your requirement correctly, but, the way I read it is, if the value in column F is less than 13 then the value in column L should be 0.0. If the value in column F is greater than or equal to 13 then the value in column L should be the result of the formula you posted above.

    IF, this is the case then try =IF(F2<13,0,SUM(F2-13)/100*K2) in cell L2 and copy down.

    The thing that makes me think this is NOT what you actually require is the inconsistent formulas in column L in your example workbook.

  3. #3
    Registered User
    Join Date
    10-18-2013
    Location
    adams, TN
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: I need a formula to be contingent upon a number in a different cell.

    This is exactly what I need! Thank you!

    I think my formulas were inconsistent because I was testing out a few things and should have fixed it.

    Thanks for your help.

    Katie

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: I need a formula to be contingent upon a number in a different cell.

    My pleasure Katie. Happy to help.

    Feel free to mark the thread as SOLVED if you're happy you have you're solution.

    BSB.

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: I need a formula to be contingent upon a number in a different cell.

    The math in column N is correct. Even though a value of 0 is shown in in column L when negative, that is only formatting but the real value is still there and is being calculated correctly. The actual value in L2 is -4.43733333333334 even though 0.00 is shown. You can test this yourself by changing temporarily the formatting of L2 to GENERAL to make the real value of L2 appear. Notice that the calculation doesn't change in N2 the cell that is dependent upon the value in L2.
    Last edited by newdoverman; 10-18-2013 at 04:26 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Registered User
    Join Date
    10-18-2013
    Location
    adams, TN
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: I need a formula to be contingent upon a number in a different cell.

    This is true, but in this specific case if the number in column L is negative I want it to have no effect on column N. The formula in N is =SUM(K12-L12-M12), so I am taking column L, which is the amount of bushels I lose from moisture shrinkage, and reducing N. If the the negative value in L were to be considered I would effectively be adding back grain that doesn't exist. I am reducing my bushel amount based on the grain drying to the correct moisture (in this case 13.00).

+ 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. Replies: 3
    Last Post: 09-22-2011, 03:59 PM
  2. (IF(AND)) contingent upon date
    By katja328 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-09-2009, 01:47 PM
  3. Name change on contingent drop-down lists
    By stemcell1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-29-2007, 05:58 PM
  4. contingent z-scores
    By teejayvee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-12-2007, 10:47 AM
  5. FORMULA TO MAKE CELL COLOR CONTINGENT
    By FORMULA QUESTION in forum Excel General
    Replies: 5
    Last Post: 03-07-2005, 01: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