+ Reply to Thread
Results 1 to 10 of 10

Formula Issue With Blank Cells (Product function)

  1. #1
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Formula Issue With Blank Cells (Product function)

    Hello again,

    Below is the formula which is having issue. The issue is i have to enter 1 in cell B24 otherwise formula is not working. Cany any one help me please.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Formula Issue With Blank Cells (Product function)

    hecgroups,

    Give this a try:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Formula Issue With Blank Cells (Product function)

    Thanks tiger. 1 more question can you tell me below is correct because it is giving wrong answer.

    Example: 2230 is my value & i am increasing 25% so the final value is 2230*25% = 557.50 then 557.50+2230 = 2787.50 but it is giving me 2580

    Can you help me in this issue please

    Please Login or Register  to view this content.

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Formula Issue With Blank Cells (Product function)

    I'd have to see your data, or an example file that is experiencing the issue. And if you want to increase by 25%, why not just multiply by 1.25? Also, you could take out that ",1" within the product formula, it's not doing anything.

  5. #5
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Formula Issue With Blank Cells (Product function)

    I am attaching a sample file. I have removed other tables to avoid confusion. I need a start then i will move on with other tables.

    If i put 1.25 in cell B14 it should increase 25% on above range i.e. B4:D10 & D3.
    after that if enter 1.25 again in cell B24 the it should increase 25% on above range i.e. B4:D10 & D3.

    I hope that I gave you correct information to make you understand what i am requesting.
    Attached Files Attached Files

  6. #6
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Formula Issue With Blank Cells (Product function)

    The formula will increase by 25% correctly with cell B24, but not with B14:B21 because you are multiplying then adding a static number. As a result, it won't be exactly *1.25*1.25, it will be ((#+#)*1.25+#)*1.25. I don't know what you're trying to do with your formula because I have no background in what this sheet seems to be about. If you were to calculate it manually, by hand, what are the steps you would take?

  7. #7
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Formula Issue With Blank Cells (Product function)

    Here are the steps

    1. Calculating 25% - 3000*25/100 = 750
    2. 25% + existing value - 3000+750 = 3750

    But on excel sheet it is giving 3625

  8. #8
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Formula Issue With Blank Cells (Product function)

    It gives the correct answer when you put 1.25 in cell B24, because the B24 calculation is outside the addition block. Move the Production function outside the addition block and it should then calculate correctly also:
    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Formula Issue With Blank Cells (Product function)

    As i told you this is a sample file. i cannot take B24 because of some restriction of the file management calculation requirement. The formula is calculation of step by step.

    Example: Dental limit+Optical limit*Deductible++out-patient premiums+In-Patient* Hospital Loading. so i cannot move the cell back or front.
    $AO28+$BL28) *PRODUCT($B$14:$B$21,1)+$BF28)*IF($B$24="",1,$B$24)

    =SUM(($AO28+$BL28)*PRODUCT($B$14:$B$21,1)+$BF28)*IF($B$24="",1,$B$24)

    It is very complicated if you solve the issue with the present formula it will be great help for me.

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: Formula Issue With Blank Cells (Product function)

    This
    1. Calculating 25% - 3000*25/100 = 750
    2. 25% + existing value - 3000+750 = 3750
    is not the same as this
    =SUM(($AO29+$AV29)*PRODUCT($B$14:$B$21,1)+$AP29)*IF($B$24="",1,$B$24) taken from B4 in sample file in post 5
    when B14 is 25%. I can't be sure what the correct calculation should be, as this is a field I, too, am not familiar with.

    You might use the formula evaluation tool (http://office.microsoft.com/en-us/ex...932.aspx?CTT=1 click on "evaluate a nested formula one step at a time") to see the steps Excel is taking to obtain the result.

    Sometimes I find it helpful to put a formula like this on paper in a more algebraic notation. With AO29=0, AV29=2500, B14=1.25, AP29=500 I get ((0+2500)*1.25+500)*1 -> 2500*1.25+500 -> 3125 + 500 -> 3625 Which is the correct result for the formula in B4. This is not the same thing as 3000*1.25=3750.

    If you want ((0+2500)*1+500)*1.25, simply put the 1.25 into B24 instead of B14.

    Or perhaps your formula is incorrect, and you wanted ((0+2500+500)*1.25)*1.

    At this point, it seems to me that we aren't sure exactly what the calculation should look like. If you are correct, then the formula was incorrectly put into Excel. You should go back to the original source documentation for the formula to see what it should be, then re-enter the formula into Excel. If the formula in Excel is correct, then you are misunderstanding what it should be doing and should review what the exact form and intent of this calculation is. Either way, I would suggest going to the original documentation and determine how this calculation should be performed.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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