+ Reply to Thread
Results 1 to 15 of 15

SUMIF Issue

  1. #1
    Registered User
    Join Date
    11-17-2017
    Location
    Bristol
    MS-Off Ver
    Office 2016
    Posts
    8

    SUMIF Issue

    Thought I'd try this forum as I'm stumped...

    I've attached below an image of the problem

    I'm trying to multiple £120 by 2,287 but as the value is over 2000 then the final 287 units have to be multiplied by £100 instead..

    Any idea how I could get this into a formula? I was thinking along the lines of SUMIF by a tad stumped... £268,700 is the total value it should come to.

    Cheers

  2. #2
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: SUMIF Issue

    Hello,
    There is no attachment of image?
    Regards,
    Thangavel D

    Appreciate the help? CLICK *

  3. #3
    Registered User
    Join Date
    11-17-2017
    Location
    Bristol
    MS-Off Ver
    Office 2016
    Posts
    8

    Re: SUMIF Issue

    http://uploads.im/YHlZ4.jpg

    Yeah the insert image attachment was having a bit of a breakdown.

  4. #4
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: SUMIF Issue

    Hello,
    This can be done with if + sum function. Please refer the attached excel for more insights.
    Attached Files Attached Files

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: SUMIF Issue

    Use this formula. BtW, images aren't much use. Attach an Excel sheet next time.

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    If your no of units is in A1:

    =SUMPRODUCT(--(A1>{0,2000}),--(A1-{0,2000}),{120,-20})
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Registered User
    Join Date
    08-02-2013
    Location
    tacoma, wa
    MS-Off Ver
    excel 2010
    Posts
    53

    Re: SUMIF Issue

    Can you please explain what the "--" means?

    Thank you!




    Quote Originally Posted by Glenn Kennedy View Post
    Use this formula. BtW, images aren't much use. Attach an Excel sheet next time.

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    If your no of units is in A1:

    =SUMPRODUCT(--(A1>{0,2000}),--(A1-{0,2000}),{120,-20})

  7. #7
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: SUMIF Issue

    The double negative (--), which is technically called the double unary operator, coerces TRUE and FALSE into ones and zeros: {0;1;0;0;1;0;1;0;0}

  8. #8
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: SUMIF Issue

    I'd use a simpler formula
    =min(A1,2000)*100+max(A1-2000,0)*120
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: SUMIF Issue

    Fair point, xlnitwit... But I'd stick to mine, as it's very easily expandable to cover more than two price tiers...

  10. #10
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: SUMIF Issue

    I'd agree, if that's a likely scenario. If not, I prefer to keep things simple until such times as they need to be complicated.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: SUMIF Issue

    Whatever....

  12. #12
    Registered User
    Join Date
    11-17-2017
    Location
    Bristol
    MS-Off Ver
    Office 2016
    Posts
    8

    Re: SUMIF Issue

    Thanks everyone!

  13. #13
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: SUMIF Issue

    Please close thread if you done with it.

  14. #14
    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,798

    Re: SUMIF Issue

    There is no need for the thread to be closed.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. 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.

  15. #15
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: SUMIF Issue

    sorry, instead of saying solved i said close.
    please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] Issue with SUMIF
    By Worldtraveller in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2015, 05:45 PM
  2. Sumif(?) issue?
    By FFrrEEddRRiiKK in forum Excel General
    Replies: 2
    Last Post: 07-23-2009, 09:54 AM
  3. Odd issue with SUMIF
    By Justin.fowler in forum Excel General
    Replies: 8
    Last Post: 05-28-2009, 02:40 PM
  4. Sumif Issue
    By ramia1983 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-06-2009, 03:49 PM
  5. SUMIF Issue
    By vlro in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2008, 02:30 PM
  6. Issue with SUMIF
    By Rgaherty in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-03-2008, 02:44 PM
  7. sumif issue
    By redneck joe in forum Excel General
    Replies: 11
    Last Post: 11-18-2006, 07:29 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