+ Reply to Thread
Results 1 to 10 of 10

IF statement of 2 Sums Based on a Cell Value

  1. #1
    Registered User
    Join Date
    05-20-2014
    Posts
    16

    IF statement of 2 Sums Based on a Cell Value

    I am wanting a cell to choose which sum to apply if a value is less than a number in a cell.

    For example

    D1 value is 12.5

    IF D1 >12.5 then I need this calculation =SUM(Postage!$F$5*Prices!E1+Postage!$F$4)
    IF D1 <12.5 then I need this calculation =SUM(Postage!$L$11*Prices!E1+Postage!$L$10)

    Any help would be much appreciated.

    Thank you in advance
    Luke

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: IF statement of 2 Sums Based on a Cell Value

    have a look something like this...
    Please Login or Register  to view this content.
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Registered User
    Join Date
    02-17-2012
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: IF statement of 2 Sums Based on a Cell Value

    solution depends on one thing. What happens if D1 = 12.5?

  4. #4
    Registered User
    Join Date
    05-20-2014
    Posts
    16

    Re: IF statement of 2 Sums Based on a Cell Value

    Naveed - That formula is just coming up with VALUE. I suppose the formula wouldn't know which of the 2 formulas to use?

    polkev - This would need to use the upper formula

    Thanks
    Luke

  5. #5
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: IF statement of 2 Sums Based on a Cell Value

    Hi, try


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  6. #6
    Registered User
    Join Date
    05-20-2014
    Posts
    16

    Re: IF statement of 2 Sums Based on a Cell Value

    boopathiraja - This is still coming up with VALUE - I don't need D1 * the sum. I need the formula to choose the correct some based on D1 value.

    Thank you.
    Luke

  7. #7
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: IF statement of 2 Sums Based on a Cell Value

    Hi, try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-20-2014
    Posts
    16

    Re: IF statement of 2 Sums Based on a Cell Value

    boopathiraja - That's spot on. Thank you very much for your help. It's much appreciated.

    Cheers
    Luke

  9. #9
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: IF statement of 2 Sums Based on a Cell Value

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  10. #10
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: IF statement of 2 Sums Based on a Cell Value

    Quote Originally Posted by whiterosetools View Post
    Naveed - That formula is just coming up with VALUE. I suppose the formula wouldn't know which of the 2 formulas to use?

    polkev - This would need to use the upper formula

    Thanks
    Luke
    Hi Luke

    I think same function i also provide u only >= is misssed
    Please Login or Register  to view this content.

+ 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: 16
    Last Post: 06-19-2013, 12:11 AM
  2. Calculate multiple cells sums based upon another cell
    By swiftworks in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-28-2013, 11:44 AM
  3. Credit Card Statement Sums
    By Thepipesthepipes in forum Excel General
    Replies: 4
    Last Post: 09-22-2012, 01:00 PM
  4. Add sums based on a cell being filled...
    By arizero in forum Excel General
    Replies: 6
    Last Post: 02-09-2011, 10:10 PM
  5. Replies: 10
    Last Post: 12-25-2009, 08:10 AM

Tags for this Thread

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