+ Reply to Thread
Results 1 to 14 of 14

Change cell value that exceeds other cell value

  1. #1
    Registered User
    Join Date
    06-06-2014
    Posts
    6

    Change cell value that exceeds other cell value

    Hello, I am trying to complete a project and am stumped with a needed formula. I would appreciate any help. If the amount in cell F25 is greater than the amount in E10 then the difference would go into E24.
    Thank you in advance your responses.
    Last edited by azgal; 06-06-2014 at 10:57 PM.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Need help with a formula

    Try this
    in E24

    =IF(F25>E10,F25-E10,"")
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Need help with a formula

    Hi azgal,

    Check this formula and hope this helps you :

    E24 = IF(F25>E10,F25-E10,0)


    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

  4. #4
    Registered User
    Join Date
    06-06-2014
    Posts
    6

    Re: Need help with a formula

    Thank you so much!! It worked!
    Last edited by azgal; 06-06-2014 at 10:09 PM.

  5. #5
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Need help with a formula

    Quote Originally Posted by azgal View Post
    With the formula you provided, is it possible to add something that would reduce F25 to the value of E10?
    What do you want to add to F25 to reduce it and tally with E10? Can u please be more specific?
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  6. #6
    Registered User
    Join Date
    06-06-2014
    Posts
    6

    Re: Need help with a formula

    AlKey and pareshj, thank you so much. Both formulas worked but I also need to have it that the amount it F25 does not exceed E10. I hope this makes sense. Thank you for helping me.

  7. #7
    Registered User
    Join Date
    06-06-2014
    Posts
    6

    Re: Need help with a formula

    Saarang84, the formula above works and puts the correct value in E24 but if F25 exceeds E10 I would like the value of E10 in F25

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Need help with a formula

    You can't change value in F25. Formulas in Excel do not change values in other cells. It only calculates values in the cell where formula is written.

  9. #9
    Forum Contributor
    Join Date
    02-12-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    275

    Re: Need help with a formula

    Azgal

    Inserting a number in a formula cell will automatically remove the formula.

    If you want a formula and number input in the same sell you will need a VB code to manage that.

  10. #10
    Registered User
    Join Date
    06-06-2014
    Posts
    6

    Re: Need help with a formula

    Would it be possible then to have the formula in F25 where that if it is greater than E10 then the value in E10 is used in F25 and the difference is put in E24?

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Need help with a formula

    Thanks for the title change
    Last edited by FDibbins; 06-07-2014 at 12:10 AM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  12. #12
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Need help with a formula

    Looks like the values of E10, F25 and E24 are inter-dependent. Without knowing the context in which these fields are used and calculated, it is difficult for us to give you any solutions. Can you post a layout of your workbook with sample data (insensitive) for us to help you further?

    And do remember to follow Ford's advice to change your thread title.

  13. #13
    Registered User
    Join Date
    06-06-2014
    Posts
    6

    Re: Change cell value that exceeds other cell value

    https://www.dropbox.com/s/qixg5d10vx...%20Sample.xlsm

    Saarang84, here is a copy of the worksheet. Thank you

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Change cell value that exceeds other cell value

    azgal please upload your file to the forum, not all members can access file-hosting sites (Company firewalls and stuff)

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

+ 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: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 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