+ Reply to Thread
Results 1 to 8 of 8

Excel 2010 Mulitplying by Percentages based on True False values

  1. #1
    Registered User
    Join Date
    04-06-2014
    Location
    St Albans
    MS-Off Ver
    Excel 2010
    Posts
    2

    Excel 2010 Mulitplying by Percentages based on True False values

    Hi there,

    This might seem like an obvious question so im sure someone out there will get this one easy.

    I have a checkbox where the values are reflected as True/False in a seperate column, what i simply want to do is take the value from one cell, and add 10% of the value each time a value becomes True.

    For example in this value column after the check box has been filled out it might look like this:

    False
    True
    True
    True
    False
    False
    False

    The cell then needs to take the figure, lets say, 100, add 10%, then add 10% to 110, then again and so on for however many "True" statements are in the column.

    I have tried with no success with various SUM/SUMIF/COUNT/COUNTIF/IF etc cant seem to get it to work, im not sure the cell refreshes correctly after the checkbox is filled out and its not registering the new "True" value as by default its all set to "False".

    Any help on this would be greatly appreciate, youve all been very helpful in the past and i hope you can help me out again.

    Kind Regards,
    Lewis

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Excel 2010 Mulitplying by Percentages based on True False values

    welcome to the forum, Lewis. say your data is:
    Data Range
    A
    1
    FALSE
    2
    TRUE
    3
    TRUE
    4
    TRUE
    5
    FALSE
    6
    FALSE
    7
    FALSE

    then use:
    =COUNTIF(A1:A7,TRUE)*0.1+1

    format as percentage. upload a sample excel file with your desired results you wish to see if that doesn't help

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    04-06-2014
    Location
    St Albans
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Excel 2010 Mulitplying by Percentages based on True False values

    Thanks for your reply, that does help to a degree but there is a slight difference i need.

    I know it sounds pedantic but ill explain.

    The formula of yours takes X number of true statements and totals the 10 percents each time, so 5 True statements equal a 50% increase.

    What i need is a 10% increase on each 10% increase, so 5 True statements would cause a figure to have 10% to be added, and then another 10% added to the total after the first 10% was added.

    You can see how this creates a different figure than straight percentage increase.

    Difference explained, with 5 True statements,

    100 + 50% = 150
    100 + 10% = 110 + 10% = 121 + 10% = 133.1 + 10% and so on.

    Thanks again

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Excel 2010 Mulitplying by Percentages based on True False values

    would be an interesting formula to compound them in 1 formula. but i cant think of any at the moment. what you can do is probably do up another column that helps you. for eg in B1:
    =IF(A1,1+0.1,1)
    B2 & copy down:
    =IF(A2,B1+B1*0.1,B1)

  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: Excel 2010 Mulitplying by Percentages based on True False values

    It is difficult to tell what exactly you want. Are all the values added going to be the same?

    If they are all going to be the same then you could use the FV function which uses a constant interest rate and constant payments:

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


    This is another possibility:

    A
    B
    C
    1
    FALSE
    100
    =IF(A1=FALSE,"",B1+SUMIFS($B$1:B1,$A$1:A1,TRUE)*0.1)
    2
    TRUE
    100
    =IF(A2=FALSE,"",B2+SUMIFS($B$1:B2,$A$1:A2,TRUE)*0.1)
    3
    TRUE
    100
    =IF(A3=FALSE,"",B3+SUMIFS($B$1:B3,$A$1:A3,TRUE)*0.1)
    4
    TRUE
    100
    =IF(A4=FALSE,"",B4+SUMIFS($B$1:B4,$A$1:A4,TRUE)*0.1)
    5
    FALSE
    100
    =IF(A5=FALSE,"",B5+SUMIFS($B$1:B5,$A$1:A5,TRUE)*0.1)
    6
    FALSE
    100
    =IF(A6=FALSE,"",B6+SUMIFS($B$1:B6,$A$1:A6,TRUE)*0.1)
    7
    FALSE
    100
    =IF(A7=FALSE,"",B7+SUMIFS($B$1:B7,$A$1:A7,TRUE)*0.1)
    8
    =SUM(C1:C7)


    Which gives:

    A
    B
    C
    1
    FALSE
    100
    2
    TRUE
    100
    110
    3
    TRUE
    100
    120
    4
    TRUE
    100
    130
    5
    FALSE
    100
    6
    FALSE
    100
    7
    FALSE
    100
    8
    360
    <---------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
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Excel 2010 Mulitplying by Percentages based on True False values

    Very nice, newdoverman, but did you perhaps mean:

    =FV(10%,COUNTIF(A1:A7,TRUE),,100)*-1

    with 100 as the 4th argument, not 3rd?

    This is of course equivalent to:

    =100*1.1^COUNTIF(A1:A7,TRUE)

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

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

    Re: Excel 2010 Mulitplying by Percentages based on True False values

    @ XOR LX

    This is where the question is ambiguous to say the least. The OP said that there were check boxes with values. 5 TRUE statements....does that mean 5 values with interest, or 1 value with 5 interests? Are all the values the same? If the values are all different, that will change the outcome again.

    Using =FV(10%,COUNTIF(A1:A7,TRUE),100)*-1 the starting value is 0 and there are 3 payments of 100 with compounded interest

    Using =FV(10%,COUNTIF(A1:A7,TRUE),,100)*-1 there no payments but a starting value of 100 with 3 interest payments.

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Excel 2010 Mulitplying by Percentages based on True False values

    Hmmm, good point!

    Guess we'll have to wait for the OP to confirm.

    Regards

+ 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. [SOLVED] Excel 2007 : Determining TRUE or FALSE based on multiple values
    By BarnesB in forum Excel General
    Replies: 5
    Last Post: 05-30-2012, 04:46 PM
  2. Sum values based on TRUE/FALSE property on different sheet?
    By grantpanderson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-19-2010, 11:38 AM
  3. Can Excel operate a function based on a true or false result?
    By SteveD in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  4. Can Excel operate a function based on a true or false result?
    By SteveD in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. Can Excel operate a function based on a true or false result?
    By SteveD in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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