+ Reply to Thread
Results 1 to 4 of 4

Can a Check Box swap Formulas

  1. #1
    Forum Contributor
    Join Date
    06-30-2008
    Location
    PSL, FL
    Posts
    271

    Can a Check Box swap Formulas

    Guys,

    I have two formulas

    =IFERROR(IF(H18="","",CEILING(IF(H18<0,H18*(($C$17*'MLB OVERALL'!$E$7)+$C$16)/-100,(($C$17*'MLB OVERALL'!$E$7)+$C$16)/$H18*100),1)), "")

    and

    =IFERROR(IF(H18="","",CEILING(IF(H18<0,H18*(((G18*-1)*'MLB OVERALL'!$E$7)+$C$16)/-100,(((G18*-1)*'MLB OVERALL'!$E$7)+$C$16)/$H18*100),1)), "")

    these two formulas are in cells
    J18:J25 and on sheets
    Week 1a:week 26b


    what I want is to create a check box on my main sheet


    which if checked does formula #2 and if unchecked does formula #1?


    Is this possible and how please?


    Matt

  2. #2
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Can a Check Box swap Formulas

    Create the check box, right click on the box and click on "Format Control" and on Cell link, link it to say A1.

    Then on J18:J25

    =IF($A$1="True",IFERROR(IF(H18="","",CEILING(IF(H18<0,H18*(($C$17*'MLB OVERALL'!$E$7)+$C$16)/-100,(($C$17*'MLB OVERALL'!$E$7)+$C$16)/$H18*100),1)), ""),IFERROR(IF(H18="","",CEILING(IF(H18<0,H18*(((G18*-1)*'MLB OVERALL'!$E$7)+$C$16)/-100,(((G18*-1)*'MLB OVERALL'!$E$7)+$C$16)/$H18*100),1)), ""))

    Try it and let us know.

    1st EDIT: Change "A1" to whatever cell you link the box to. This could be on another sheet
    2nd EDIT: My bad I confused the order of how you wanted it. If checked you want IF number 2. just change the word "TRUE" to "False"
    Last edited by ron2k_1; 06-30-2010 at 04:10 PM.
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

  3. #3
    Forum Contributor
    Join Date
    06-30-2008
    Location
    PSL, FL
    Posts
    271

    Re: Can a Check Box swap Formulas

    Ok,

    This is what I got and now matter what happens I am getting

    this part of the formula

    =IFERROR(IF(H18="","",CEILING(IF(H18<0,H18*(((G18*-1)*'MLB OVERALL'!$E$7)+$C$16)/-100,(((G18*-1)*'MLB OVERALL'!$E$7)+$C$16)/$H18*100),1)), "")


    The Formula

    =IF('MLB OVERALL'!$C$9="True",IFERROR(IF(H21="","",CEILING(IF(H21<0,H21*(($C$17*'MLB OVERALL'!$E$7)+$C$16)/-100,(($C$17*'MLB OVERALL'!$E$7)+$C$16)/$H21*100),1)), ""),IFERROR(IF(H21="","",CEILING(IF(H21<0,H21*(((G21*-1)*'MLB OVERALL'!$E$7)+$C$16)/-100,(((G21*-1)*'MLB OVERALL'!$E$7)+$C$16)/$H21*100),1)), ""))

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Can a Check Box swap Formulas

    I have no idea what that last formula is supposed to do, but believe it simplifies to

    =IFERROR(IF(H21="", "", CEILING(IF(H21<0, H21*(IF(M!$C$9, $C$17, -G21)*M!$E$7 - $C$16)/100, (IF(M!$C$9, $C$17, -G21)*M!$E$7+$C$16)/$H21*100), 1)), "")
    Entia non sunt multiplicanda sine necessitate

+ 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