+ Reply to Thread
Results 1 to 11 of 11

Adding a fourth formula to spreadsheet

  1. #1
    Registered User
    Join Date
    01-18-2013
    Location
    Conifer, CO
    MS-Off Ver
    Excel 2010
    Posts
    26

    Adding a fourth formula to spreadsheet

    Hello,

    I have a bonus spreadsheet I am working on that used to calculate by periods and we moved to quarters so I need to add a fourth option to my if statements such as,


    =IF(B9=1,(B33+B41+B49+B57)*C268,IF(B9=2,(E33+E41+E49+E57)*C268,(H33+H41+H49+H57)*C268))

    Need to add if(b9=4,(k33+k41+k49+k57)*c268

    it is telling me I can only do so many formulas. Any help is greatly appreciated.
    Attached Files Attached Files
    Last edited by workingmom434; 11-24-2015 at 10:30 PM. Reason: add attachment

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding a fourth formula to spreadsheet

    Try this...

    =IF(B9=1,B33+B41+B49+B57,IF(B9=2,E33+E41+E49+E57,IF(B9=4,K33+K41+K49+K57,H33+H41+H49+H57)))*C268
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Adding a fourth formula to spreadsheet

    IK have a feeling that can be made far simpler, the row is teh same but the column changes.

    Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    01-18-2013
    Location
    Conifer, CO
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Adding a fourth formula to spreadsheet

    This worksheet has so many formulas errors due to a change from 3 periods to four quarters. When you pick the quarter 1, certain fields will calculate down the B row, if you pick quarter 2, the fields will calculate down the E column etc. The formula I am working on in this post is the bottom ones cell a263, c263, e263, h263 & k263 which all formulate off adding certain cells depending on the quarter and times by the quarterly salary.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Adding a fourth formula to spreadsheet

    OK still doesnt help much Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

  6. #6
    Registered User
    Join Date
    01-18-2013
    Location
    Conifer, CO
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Adding a fourth formula to spreadsheet

    I did add an attachment to my original posts

  7. #7
    Registered User
    Join Date
    01-18-2013
    Location
    Conifer, CO
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Adding a fourth formula to spreadsheet

    It's now missing quarter 3 or the if (b9=3

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Adding a fourth formula to spreadsheet

    Maybe:

    Please Login or Register  to view this content.
    Quang PT

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding a fourth formula to spreadsheet

    Did you try the suggestion in post #2?

    It does what you asked for.

  10. #10
    Registered User
    Join Date
    01-18-2013
    Location
    Conifer, CO
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Adding a fourth formula to spreadsheet

    I tried both suggestions, the one in the second post, does not calculate if its b9=3 and the second suggestion is calculating a number but not the correct amount.

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding a fourth formula to spreadsheet

    Let's try this...

    I'm assuming B9 will only contain the numbers 1, 2, 3 or 4.

    Fill in the blanks:

    If B9=1 sum cells ______

    If B9=2 sum cells ______

    If B9=3 sum cells ______

    If B9=4 sum cells ______
    Last edited by Tony Valko; 11-26-2015 at 10:21 AM.

+ 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] IP Formula to change third and fourth octet
    By mazakashi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-13-2014, 10:49 AM
  2. [SOLVED] Repeating sum formula every fourth block of rows
    By sjshah82 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-26-2013, 04:13 PM
  3. Macro formula to match two columns and Produce result in fourth column.
    By rishi1983 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-03-2012, 08:50 PM
  4. Replies: 2
    Last Post: 04-06-2012, 02:42 PM
  5. Formula to prevent a fourth entry
    By erinys in forum Excel General
    Replies: 6
    Last Post: 03-15-2012, 03:24 PM
  6. Formula every fourth row
    By jram in forum Excel General
    Replies: 1
    Last Post: 03-04-2011, 01:56 PM
  7. Replies: 5
    Last Post: 02-10-2009, 03:26 AM
  8. [SOLVED] MARK EVERY FOURTH ROW
    By lehigh46 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-05-2005, 10:05 PM

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