+ Reply to Thread
Results 1 to 11 of 11

SUMIF statement for using two possible totals plus display ERROR if user error

  1. #1
    Registered User
    Join Date
    07-26-2018
    Location
    Bristol, England
    MS-Off Ver
    Office365
    Posts
    8

    SUMIF statement for using two possible totals plus display ERROR if user error

    Hi All,

    First time on the site and apologies if I don't describe well..

    I have a table with TWO totals and want to use ONE of them to total up multiplying the day rate.

    Table is:
    First total - Project Effort per task (This is auto populated) = Cell H55
    or
    Second total - Project Effort per task (This is manually entered) = Cell K55

    The Day Rate = O55

    Total = Q55 (£ Sterling)

    The formula should Multiple the Day Rate(O55) by either H55 (if populated and greater than 0.0) or K55 (if populated and greater then 0.0)
    If we have a figure in Column H (automatic entered) and Column K (manually entered) then show 'ERROR' in Q55.

    Anyone help pls?

    Thanks all for solving and helping me out
    Last edited by AliGW; 07-26-2018 at 05:07 PM. Reason: Post reinstated - thread makes no sense without it.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: SUMIF statement for using two possible totals plus display ERROR if user error

    Hello and welcome to the forum.

    Attach a sample workbook (not a picture or pasted copy).

    Make sure there is just enough data to demonstrate your need.

    Make sure your desired results are shown, mock them up manually if necessary.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  3. #3
    Registered User
    Join Date
    07-26-2018
    Location
    Bristol, England
    MS-Off Ver
    Office365
    Posts
    8

    Re: SUMIF statement for using two possible totals plus display ERROR if user error

    Attachment added...
    Attached Files Attached Files

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: SUMIF statement for using two possible totals plus display ERROR if user error

    I'm sure this could have been greatly simplified for the sake of a sample sheet... Also, I don't see the desired results. Where are they in your "sample" from post #3?

  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,939

    Re: SUMIF statement for using two possible totals plus display ERROR if user error

    See if this will work for you...
    =IF(AND(H55>0,K55>0),"ERROR",O55*IF(H55=0,K55,H55))
    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

  6. #6
    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,939

    Re: SUMIF statement for using two possible totals plus display ERROR if user error

    Also, I think your formula in H55 could be simplified to this...
    =E55*C55*IF(B55="All",SUM($B$8:$B$10),VLOOKUP(B55,$A$8:$B$10,2,0))

  7. #7
    Registered User
    Join Date
    07-26-2018
    Location
    Bristol, England
    MS-Off Ver
    Office365
    Posts
    8

    Re: SUMIF statement for using two possible totals plus display ERROR if user error

    Hi,

    Apologies...future ones I will add a sample sheet.

  8. #8
    Registered User
    Join Date
    07-26-2018
    Location
    Bristol, England
    MS-Off Ver
    Office365
    Posts
    8

    Re: SUMIF statement for using two possible totals plus display ERROR if user error

    Many thanks...this has worked.

    Surprised you cracked it with my vaguaries!
    Last edited by simongra; 07-26-2018 at 03:42 PM.

  9. #9
    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,939

    Re: SUMIF statement for using two possible totals plus display ERROR if user error

    Happy to help

  10. #10
    Registered User
    Join Date
    07-26-2018
    Location
    Bristol, England
    MS-Off Ver
    Office365
    Posts
    8

    Re: SUMIF statement for using two possible totals plus display ERROR if user error

    Thanks...I will edit.

  11. #11
    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,954

    Re: SUMIF statement for using two possible totals plus display ERROR if user error

    I have reinstated the opening post. Please do not post-edit your threads - it renders them useless to others.
    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.

+ 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] User Form Facing Compile Error and Automation Error
    By bala04msw in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 06-14-2018, 01:05 PM
  2. [SOLVED] I get an error when I try to display a user form box?
    By redsab in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-26-2017, 11:49 AM
  3. Getting error User input data error. Sheet name requested does not exist.
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2016, 08:32 AM
  4. [SOLVED] Error Handling: Creating code to display error messages
    By Student1990 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-01-2013, 02:21 PM
  5. compile error - Using text box to display date in an user form
    By sivdin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2013, 04:02 AM
  6. File Not Found error when opening User Form - need help tracing root of error
    By VBA FTW in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-25-2013, 03:48 PM
  7. How can I see if another user has a workbook open and display an error message?
    By messyjessyr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2012, 01:32 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