+ Reply to Thread
Results 1 to 8 of 8

Calculation or Formula error HELP...

  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

    Calculation or Formula error HELP...

    Hello Again,

    i am calculating the budget on increment % per month and total for full year. Calculation on pro data basis. Means if a staff joined in jan his salary calculate full year from jan-dec. If the staff joined in august then the calculation will be from aug-dec.

    i am calculating with a formula but getting error if the row or column is blank.

    could you please help me to setup my requirement in proper and professional way.

    sheet is attached for your reference.

    Thanks in advance.

    your rapid response is highly appreciable.

    Best Regards
    HECGroups
    Last edited by hecgroups; 01-25-2012 at 11:18 AM. Reason: Updated sheet is attached

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Calculation or Formula error HELP...

    HECGroups,

    If I understand you correctly, try the following formula in cell P4 and let me know if it works:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Calculation or Formula error HELP...

    Try changing your IF formulas to look for 0 instead of "", e. g., =IF(E5<> 0,SUM(B4*C4/100)+B4*E5,"")

  4. #4
    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: Calculation or Formula error HELP...

    thanks for replying. Could you please me to understand the formula.

  5. #5
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Calculation or Formula error HELP...

    SUMPRODUCT takes the first array, multiplies it by the corresponding number in the second array, and then adds the numbers together.

    Using your specific case as an example:
    The first array is D4:O4, so the amounts in those cells make up array one.
    The second array is: (16-COLUMN(D4:O4)). This structure allows us to reduce the multiplied by 1 for each month. For example, 16-COLUMN(D4) is 16-4 = 12 (because column D is the 4th column). Similarly, 16 - COLUMN(E4) is 11, and so on...

    So, if we assume you have 1 employee for each month, then each cell in array 1 will be 110. The values in array 2 are 12, 11, 10..., 1 The formula multiplies in order: Value 1 in array 1 * value 1 in array 2 (110 * 12) + value 2 in array 1 * value 2 in array 2, etc

    DOes this help?

  6. #6
    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: Calculation or Formula error HELP...

    Excellent guidelines. thanks for your help. If any one ask me i am able to explain the formula this is the reason i have asked for explanation. don't mind.

  7. #7
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Calculation or Formula error HELP...

    I'm the same way. Learning the formula syntax also helps you reapply it in different settings.

    I'm happy I could help.

  8. #8
    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: Calculation or Formula error HELP...

    Dear Bigbas,

    i have attached a new sheet but have ing some problems with the formulas. could you please help me.

    thanks for your help in advance
    Last edited by hecgroups; 01-25-2012 at 11:17 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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