+ Reply to Thread
Results 1 to 10 of 10

Sumifs / or function help

Hybrid View

  1. #1
    Registered User
    Join Date
    07-03-2014
    Location
    Manchester, UK
    MS-Off Ver
    MS Office 2007
    Posts
    2

    Sumifs / or function help

    Hey all.

    I know zero about excel, I'm hoping someone can help me.

    I'm trying to write a manufacturing spreadsheet that will tell me how long it will take to hand print a piece of silk based on specific criteria.

    So, I need a function box that someone can type YES/NO into and it will change the overall value.

    For example:

    A1 = 10
    B1 = 10
    C1 = 10
    D1 total = 30

    If E1 = yes, = A1, B1 + C1*2 (40)
    but
    If E1 = no, = A1, B1 + C1 (30)

    I know some basic SUMIF /SUMIFS formulas but I can't figure this one out on my own!

    Thanks in advance,
    Hattie

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Sumifs / or function help

    Something like this?
    =IF(E1="Yes",A1+B1+(C1*2),IF(E1="No",SUM(A1:C1),"Nothing in E1"))
    you should consider using Data Validation for the cell that someone will be entering this Yes, No. It can be found in the Data tab. Select "List" and type Yes,No into the textbox on the window. What this will do is turn the cell you have selected into a dropdown menu, so ONLY yes or no can be selected/entered into it
    Last edited by Speshul; 07-03-2014 at 10:21 AM.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,100

    Re: Sumifs / or function help

    =if( E1="yes", A1 + B1 + (C1*2), IF( E1="NO", A1 + B1 + C1, "E1 does not a Yes or No"))
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Sumifs / or function help

    Or this

    =IF(E1="yes",SUM(A1,B1,C1*2),SUM(A1,B1,C1))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Sumifs / or function help

    You can use something like this

    =IF(E1="Yes",(B1+C1)*2,B1+C1)
    Excel Guru in the making

    <----------If the question has been answered to your satisfication please click the Add Repuation star to the left

  6. #6
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Sumifs / or function help

    You have a few options, try this:

    =(E1="yes")*(First formula here) + (E1<>"yes")*(Second formula here)


    The (E1="yes")*( ) will become 1*( ) when E1 contains "yes", when E1 does not contain "yes" (E1="yes")*( ) will become 0*( ) or just 0.


    This is the boolean logic method, you could also use IF(E1="yes", first formula, second formula)
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  7. #7
    Registered User
    Join Date
    07-03-2014
    Location
    Manchester, UK
    MS-Off Ver
    MS Office 2007
    Posts
    2

    Re: Sumifs / or function help

    Sorted now guys! Thanks so much !

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Sumifs / or function help

    Thank you for the feedback!

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,100

    Re: Sumifs / or function help

    your welcome, thanks for the feedback

  10. #10
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Sumifs / or function help

    Glad to here, please mark your question "solved"

    To mark your thread solved do the following:
    New Method
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    Old Method
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

+ 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. Help nesting an OR function inside a SUMIFS function
    By wes228 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-21-2014, 06:22 PM
  2. SUMIFS Function
    By rjb59 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-21-2013, 08:52 AM
  3. SUMIFS function
    By mmmarks in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-12-2013, 09:09 AM
  4. [SOLVED] SUMIFS function?
    By jed38 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2012, 04:33 PM
  5. OR function in SUMIFS
    By skysurfer in forum Excel General
    Replies: 6
    Last Post: 05-09-2012, 02:41 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