+ Reply to Thread
Results 1 to 18 of 18

If---then make a calculation

  1. #1
    Registered User
    Join Date
    06-09-2017
    Location
    Phila
    MS-Off Ver
    2010
    Posts
    12

    If---then make a calculation

    I'm trying to make the "if" function do a calculation if the one box is True.


    =IF(D7<=11,3.5,IF(D7<=24,2,IF(D7<=49,1.5,IF(D7<=99,1.25,IF(D7<=299,1,IF(D7>=300,0.9))))))

    This is the calculation that works...What I need is for a way to tell the cell that is another cell with a checkbox is checked to go ahead and do the calculation. If the check box is not check leave it as "0"

    Thanks in advance for the help.

    Michael
    Last edited by ristaze; 06-11-2017 at 08:46 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: If---then make a calculation

    You get better result on your question if you add a small excel file, without confidential information.

    Please also add the expected results manualy in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: If---then make a calculation

    Try something like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: If---then make a calculation

    Or
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: If---then make a calculation

    look also for the VLookup formula instead of the multiplied if formula.

  6. #6
    Registered User
    Join Date
    06-09-2017
    Location
    Phila
    MS-Off Ver
    2010
    Posts
    12

    Re: If---then make a calculation

    i GET#NAME? when I put this in.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: If---then make a calculation

    Please Login or Register  to view this content.
    Always add to whom you are replying.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: If---then make a calculation

    It's meant as a pseudo reference to whatever cell is linked to your checkbox. You haven't provided any details so it's just a guess to give you an idea what the formula would look like.

  9. #9
    Registered User
    Join Date
    06-09-2017
    Location
    Phila
    MS-Off Ver
    2010
    Posts
    12
    Quote Originally Posted by TMS View Post
    It's meant as a pseudo reference to whatever cell is linked to your checkbox. You haven't provided any details so it's just a guess to give you an idea what the formula would look like.
    Thanks...so if the checkbox is in e7 i would put that in between the quotation marks?

  10. #10
    Registered User
    Join Date
    06-09-2017
    Location
    Phila
    MS-Off Ver
    2010
    Posts
    12
    Quote Originally Posted by oeldere View Post
    You get better result on your question if you add a small excel file, without confidential information.

    Please also add the expected results manualy in your file.
    Thanks oeldere. I cant seem to digure out how to attach a file.

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: If---then make a calculation

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: If---then make a calculation

    Thanks...so if the checkbox is in e7 i would put that in between the quotation marks?
    No ...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    06-09-2017
    Location
    Phila
    MS-Off Ver
    2010
    Posts
    12

    Re: If---then make a calculation

    there are two things i would like to do with this. 1. if one of the check boxes is check that would disable the other check boxes. Then if the check box is checked run the fomula.
    Attached Files Attached Files

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: If---then make a calculation

    Different problem, different question, needs a new thread. You'd need VBA to do what you are asking.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  15. #15
    Registered User
    Join Date
    06-09-2017
    Location
    Phila
    MS-Off Ver
    2010
    Posts
    12

    Re: If---then make a calculation

    TMS it was not solved yet. when I put that in it keeps show the formula as text.

  16. #16
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: If---then make a calculation

    Sounds like the cell is formatted as Text.

  17. #17
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: If---then make a calculation

    Ah, now I've had a chance to look at the workbook on my laptop. You managed to get the double quotes in the wrong place. And, the test needs to be NOT(TRUE) rather than checking for blank.

    So, try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy and paste the formula, don't try to retype it.

  18. #18
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: If---then make a calculation

    Thanks for the rep.

+ 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: 1
    Last Post: 09-24-2013, 03:03 AM
  2. Replies: 1
    Last Post: 09-24-2013, 02:06 AM
  3. How do I make a calculation?
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 03:05 PM
  4. [SOLVED] How do I make a calculation?
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  5. How do I make a calculation?
    By Rob P in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. How do I make a calculation?
    By Rob P in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. How do I make a calculation?
    By Rob P in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  8. How do I make a calculation?
    By Rob P in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-13-2005, 09:05 AM

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