+ Reply to Thread
Results 1 to 8 of 8

Sum values from IF function

  1. #1
    Registered User
    Join Date
    03-26-2014
    Location
    New Zealand
    MS-Off Ver
    Excel 2013
    Posts
    3

    Angry Sum values from IF function

    Hello! This is my first question in this forum.

    I have searched through other questions but nothing quite matches what I am trying to do:

    SUM a row of values which are calculated using an IF function:

    I have assigned values to each selection in a drop down list, (I have done this using the following formula, which seems to be working - i.e: the required value is going into the cell I require) =IF(ISBLANK(Monday!H2),"0","10")
    I have also tried: =IF(ISTEXT(Monday!H3),"10","0")

    So basically on a Monday, I want to be able to select a meal that my customer has ordered, and for it to say "$10.00" on the invoicing sheet - if they haven't ordered then it is left blank - at the end of the week I want to be able to sum all the weekdays to be able to print out a weekly invoice, but the SUM function doesn't seem to work on the values that are showing up as a result of the IF formula.

    My head hurts! Can anyone help me or point me in the direction of a relevant help article? Many thanks.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Sum values from IF function

    Please upload a sample workbook with enough sample data in it.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

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

    Re: Sum values from IF function

    Have you tried SUMIF,SUMIFS or SUMPRODUCT yet?
    Quang PT

  4. #4
    Registered User
    Join Date
    03-26-2014
    Location
    New Zealand
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Sum values from IF function

    Quote Originally Posted by sktneer View Post
    Please upload a sample workbook with enough sample data in it.
    Book1.xlsx

    The problem is summing the row on the weekly totals tab.
    Thank you

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Sum values from IF function

    I think on Weekly Totals tab in cell H3 you have a formula "=H3" and that is causing circular reference.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Sum values from IF function

    Try this array formula on weekly Totals tab in cell Q2. Since this is an array formula, so remember to confirm this formula with Ctrl+Shift+Enter instead of just Enter. (i.e. hold down Ctrl and Shift and then press Enter)

    Please Login or Register  to view this content.
    Does that help?

  7. #7
    Registered User
    Join Date
    03-26-2014
    Location
    New Zealand
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Sum values from IF function

    Yes thank you!! It works, you lifesaver!!

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Sum values from IF function

    Glad to help you. Thanks for the feedback.
    If that takes care of your question, please mark your thread as solved.
    Moreover you may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks to them.

+ 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. Replies: 2
    Last Post: 12-30-2013, 08:15 AM
  2. NoobQ: Rank function treats negative values as positive values. Help!
    By lutonoodles in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-12-2013, 02:10 PM
  3. switch values of a pivot data fields using cell values (function and attribute)?
    By Shmulik_r in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2013, 02:36 PM
  4. Function in VBA should display some default values in function window
    By amolryeolekar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2012, 11:26 PM
  5. [SOLVED] RE-write if function with isna function for more values
    By funtastic in forum Excel General
    Replies: 6
    Last Post: 07-12-2012, 04:33 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