+ Reply to Thread
Results 1 to 4 of 4

Multiply 2 cells depending on which checkbox is checked.

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-08-2019
    Location
    CO
    MS-Off Ver
    Office 365
    Posts
    106

    Multiply 2 cells depending on which checkbox is checked.

    Hello all,

    I am trying to achieve a sum of 2 cells IF a checkbox is marked, but a different sum IF a different box is checked. For instance:

    A1=TRUE(checkbox), B1*C1, OR D1=TRUE(different checkbox), B1*E1. I want this value to return a monetary number dependent on which box is checked in the same cell.

    For example if I have 5 hours at $100/hr or 5 hours at $150 dependent on which box is checked.

    It should be simple in my mind, but I just get a "TRUE" return from what I have tried.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Multiply 2 cells depending on which checkbox is checked.

    Try this:

    IF(A1,B1*C1,IF(D1,B1*E1,0))

    Copy down as required.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    08-08-2019
    Location
    CO
    MS-Off Ver
    Office 365
    Posts
    106

    Re: Multiply 2 cells depending on which checkbox is checked.

    Annnd that was it! Thank you so much. Way easier than I was making it.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Multiply 2 cells depending on which checkbox is checked.

    Glad to help, and thanks for the rep.

    Pete

+ 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. If checkbox is checked, disable the cells
    By olga6542 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2019, 04:43 PM
  2. VBA code to Count cells with checked checkbox
    By Mr.Castle in forum Excel General
    Replies: 0
    Last Post: 01-03-2019, 09:19 PM
  3. [SOLVED] Macro for a button that clears cells adjacent to a checked checkbox
    By daveblair197 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-20-2015, 07:40 AM
  4. [SOLVED] When checkbox is checked it does not copy to new sheet. Only if not checked using false
    By thelisa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2013, 07:59 AM
  5. [SOLVED] VBA code to uncheck checkbox 2 & 3 if checkbox 1 is checked
    By hydz1213 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-25-2013, 03:10 AM
  6. Checkbox value to be pasted in cells when checked by user?
    By stingerz123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2012, 05:56 PM
  7. How to have Checkbox A uncheck with checked Checkbox B
    By Texas Aggie 09 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2007, 09:29 AM

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