+ Reply to Thread
Results 1 to 6 of 6

Combining three formulas

  1. #1
    Forum Contributor
    Join Date
    05-29-2009
    Location
    sheffield
    MS-Off Ver
    Excel 2013
    Posts
    210

    Combining three formulas

    I have the following three CSE formulas that are in one cell each. I'd like to combine the three formulas into one cell:-

    {=($C9="Continental")*SUM(IF($F9:$L9="",0,IF($F9:$L9<0.5,0.5,$F9:$L9)))}

    {=($C9="Days")*SUM(IF($G9:$K9="",0,IF($G9:$K9<11/24,11/24,$G9:$K9)))}

    {=($C9="Nights")*SUM(IF($F9:$K9="",0,IF($F9:$K9<10/24,10/24,$F9:$K9)))}

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,902

    Re: Combining three formulas

    How do you want them combined? Add the results together?

    Pete

  3. #3
    Forum Contributor
    Join Date
    05-29-2009
    Location
    sheffield
    MS-Off Ver
    Excel 2013
    Posts
    210

    Re: Combining three formulas

    Sorry. No I want the three formulas to work independently but just have them contained in the same cell.

    Cell C9 that the formulas reference contains either "Continental", "Days" or "Nights"

    Quote Originally Posted by Pete_UK View Post
    How do you want them combined? Add the results together?

    Pete

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,902

    Re: Combining three formulas

    Try this:

    =IF($C9="Continental",SUM(IF($F9:$L9="",0,IF($F9:$L9<0.5,0.5,$F9:$L9))),IF($C9="Days",SUM(IF($G9:$K9="",0,IF($G9:$K9<11/24,11/24,$G9:$K9))),SUM(IF($F9:$K9="",0,IF($F9:$K9<10/24,10/24,$F9:$K9)))))

    Entered with CSE.

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    05-29-2009
    Location
    sheffield
    MS-Off Ver
    Excel 2013
    Posts
    210

    Re: Combining three formulas

    Quote Originally Posted by Pete_UK View Post
    Try this:

    =IF($C9="Continental",SUM(IF($F9:$L9="",0,IF($F9:$L9<0.5,0.5,$F9:$L9))),IF($C9="Days",SUM(IF($G9:$K9="",0,IF($G9:$K9<11/24,11/24,$G9:$K9))),SUM(IF($F9:$K9="",0,IF($F9:$K9<10/24,10/24,$F9:$K9)))))

    Entered with CSE.

    Hope this helps.

    Pete
    Fantastic - thank you Pete.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,902

    Re: Combining three formulas

    You're welcome - thanks for marking the thread as SOLVED.

    Pete

+ 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] Combining Formulas
    By hammer2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-23-2015, 05:49 AM
  2. [SOLVED] combining 2 formulas
    By bzl in forum Excel General
    Replies: 5
    Last Post: 08-23-2014, 09:05 AM
  3. Combining IF and OR formulas
    By Scuba*33 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-31-2013, 01:11 AM
  4. Combining IF formulas
    By donyc in forum Excel General
    Replies: 4
    Last Post: 09-09-2010, 05:42 PM
  5. Combining Two Formulas to One
    By Jerkyboy via OfficeKB.com in forum Excel General
    Replies: 1
    Last Post: 08-17-2006, 12:35 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