+ Reply to Thread
Results 1 to 12 of 12

Combing two formulas

  1. #1
    Registered User
    Join Date
    03-26-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    9

    Combing two formulas

    Any ideas on how I can combine these 2 two formulas into one without the later one being *2:

    =ROUNDUP(MMULT(D14:H14,V7:V11)/60/8,0)*2
    =ROUNDUP(MMULT(I14:J14,V12:V13)/60/8,0)

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Combing two formulas

    Hi

    I'm very confused. What do you mean by combining?

    See if you will multiply the value within ROUNDUP by 2, you will get a different value that depends on the value obtained by MMULT.

  3. #3
    Registered User
    Join Date
    03-26-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    9

    Re: Combing two formulas

    Hi

    Thanks for the reply, as you can tell my grasp on formulas is very limited. Please see the attached where I'm trying to create a calculator where some values are 2 and some are one, I've attached the spreadsheet which I hope will be clearer for what I'm trying to achieve.
    Attached Files Attached Files

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Combing two formulas

    Hi

    I suppose you want this, but I am not sure.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-26-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    9

    Re: Combing two formulas

    Thanks but that formula doesn't achieve what I'm after:
    R14 needs to increment by 2 for every increment in D14:H14
    R14 needs to increment by 1 for every increment in I14:J14

    Hence my first question about combing the 2 formulas which work independently but I need them to work as one outcome in R14

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,542

    Re: Combing two formulas

    Since the formulas "work independently" it would seem that you could SUM the formulas, as in:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,582

    Re: Combing two formulas

    This may be

    =ROUNDUP((MMULT((IF($D$7:$J$7="2 persons",2,IF($D$7:$J$7="1 person",1,0))),$V$7:$V$13))/60/8,0)

    Or

    =ROUNDUP((MMULT((($D$14:$J$14)*(IF($D$7:$J$7="2 persons",2,IF($D$7:$J$7="1 person",1,0)))),$V$7:$V$13))/60/8,0)

    Both are array formulas.
    Select suitable.

    How ARRAY formula is entered

    Paste Formula in the cell.
    Press F2
    Hold Shift+ Ctrl Keys and hit Enter key.
    Now the formula is surrounded by {} by excel.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  8. #8
    Registered User
    Join Date
    03-26-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    9

    Re: Combing two formulas

    Thanks for all your input and persisting while I try to convey my requirements but I'm still not there yet.

    Attached is the closest I am so far but I need any 2 person job (D, F, G and I14) to increment by 2 in R14.

    Essentially I have 480 mins in the 8 hr day and I need to efficiently fill that time with the correct amount of persons based on the duration of each task. As each task is reduced from the max per shift the saved minutes need to be picked up by other 1 or 2 person tasks to efficiently fill the 8 hrs with the least amount of people.

  9. #9
    Registered User
    Join Date
    03-26-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    9

    Re: Combing two formulas

    I've finally resolved the issue, many thanks for all your inputs, Reputation has been added

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,640

    Re: Combing two formulas

    For the benefit of others, please explain hour you resolved the issue. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  11. #11
    Registered User
    Join Date
    03-26-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    9

    Re: Combing two formulas

    The answer was blissfully simple, I had the 2 separate formulas report into different hidden cells and then just did a SUM of the 2 outcomes. My knowledge is very basic for excel and the amount of knowledge here is outstanding, thanks for all the help, I'll recommend and will be back

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,640

    Re: Combing two formulas

    Thank you.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Combing two codes
    By kbenjamin827 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2018, 09:10 AM
  2. [SOLVED] Combing tow formulas
    By Khaldon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2016, 08:48 AM
  3. [SOLVED] Combing two IF formulas
    By Chris Fawcett in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-24-2015, 10:16 AM
  4. [SOLVED] Need Help on a combing formula
    By alcorp in forum Excel General
    Replies: 3
    Last Post: 07-24-2014, 12:55 PM
  5. Combing Max and IF functions
    By AZ_Joe in forum Excel General
    Replies: 3
    Last Post: 06-02-2014, 02:14 PM
  6. Combing other cells into formulas
    By JakeMann in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2012, 11:47 AM
  7. Excel 2007 : Combing formulas
    By ccampbell14 in forum Excel General
    Replies: 6
    Last Post: 07-12-2012, 02:15 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