+ Reply to Thread
Results 1 to 6 of 6

Amount calculation by different criteria

  1. #1
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Amount calculation by different criteria

    Hello Experts,

    please help me to calculate following equation:

    If F2 equal 2017 and E2 =< D2 then B2 equal E2*0
    If F2 equal 2018 and E2 =< D2 then B2 equal E2*300
    If F2 equal 2019 and E2 =< D2 then B2 equal E2*500
    If F2 equal 2020 and E2 =< D2 then B2 equal E2*700

    If F2 equal 2017 and E2 > D2 then B2 equal E2*200
    If F2 equal 2018 and E2 > D2 then B2 equal E2*400
    If F2 equal 2019 and E2 > D2 then B2 equal E2*600
    If F2 equal 2020 and E2 > D2 then B2 equal E2*800

    If F5 equal 2017 then D2 equal E5*100
    If F5 equal 2018 then D2 equal E5*200
    If F5 equal 2019 then D2 equal E5*300
    If F5 equal 2020 then D2 equal E5*400

    Only this equations ..
    Last edited by AaruJaan; 07-03-2017 at 10:44 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: IF formula calculation

    Quote Originally Posted by farhangul View Post
    If F2 equal 2018 and E2 =< D2 then B2 equal E2*300
    If F2 equal 2018 and E2 =< D2 then B2 equal E2*500
    If F2 equal 2018 and E2 =< D2 then B2 equal E2*700
    You have a logic problem in the way you have asked this question. These all have the same condition. You can't get three different results from the same condition.

    If F2 equal 2018 and E2 > D2 then B2 equal E2*400
    If F2 equal 2018 and E2 > D2 then B2 equal E2*600
    If F2 equal 2018 and E2 > D2 then B2 equal E2*800
    Same problem here

    If F5 equal 2018 then D2 equal E5*200
    If F5 equal 2018 then D2 equal E5*300
    If F5 equal 2018 then D2 equal E5*400
    And here.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: IF formula calculation

    anybody help me?

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: IF formula calculation

    Quote Originally Posted by farhangul View Post
    anybody help me?
    Please see post #2 and respond.

  5. #5
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: Amount calculation by different criteria

    please check the post#1, before it was wrong years.

  6. #6
    Forum Contributor
    Join Date
    07-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: Amount calculation by different criteria

    Quote Originally Posted by farhangul View Post
    Hello Experts,

    please help me to calculate following equation:

    If F2 equal 2017 and E2 =< D2 then B2 equal E2*0
    If F2 equal 2018 and E2 =< D2 then B2 equal E2*300
    If F2 equal 2019 and E2 =< D2 then B2 equal E2*500
    If F2 equal 2020 and E2 =< D2 then B2 equal E2*700

    If F2 equal 2017 and E2 > D2 then B2 equal E2*200
    If F2 equal 2018 and E2 > D2 then B2 equal E2*400
    If F2 equal 2019 and E2 > D2 then B2 equal E2*600
    If F2 equal 2020 and E2 > D2 then B2 equal E2*800

    If F5 equal 2017 then D2 equal E5*100
    If F5 equal 2018 then D2 equal E5*200
    If F5 equal 2019 then D2 equal E5*300
    If F5 equal 2020 then D2 equal E5*400

    Only this equations ..
    In cell B2, enter the formula:
    =IF(E2>D2,(F2-2016)*200,CHOOSE(F2-2016,0,300,500,700))*E2

    In cell D2, enter the formula:
    =E5*(F2-2016)*100

+ 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: 1
    Last Post: 04-02-2016, 04:32 AM
  2. [SOLVED] Quintile Formula - Function Wise - Help need for formula calculation
    By Yadavgiri in forum Excel Formulas & Functions
    Replies: 38
    Last Post: 12-21-2015, 03:09 PM
  3. Add calculation in IF formula
    By jimmy32 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-14-2015, 03:52 PM
  4. How to read formula result for calculation of another formula?
    By Shad0wguy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2013, 02:15 PM
  5. excel formula calculation - how to insert the right formula
    By Manila.Boracay in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-17-2011, 04:21 AM
  6. [SOLVED] Re: base formula calculation on whether different cell has formula
    By Bill Kuunders in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2005, 05:05 PM
  7. [SOLVED] base formula calculation on whether different cell has formula
    By rcmodelr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2005, 08:05 PM

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