+ Reply to Thread
Results 1 to 10 of 10

Nested IF with multiple calculations

  1. #1
    Registered User
    Join Date
    02-25-2016
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    22

    Nested IF with multiple calculations

    Hi Everyone

    New to this Forum.

    I need to calculate the following:

    I have weights that have certain prices attached to it, i.e. if the weight in C4 is greater than 1000, then I multiply the cell by the cost in B9 but then I still need to work out how much the cost would be i.e. if its 150 kg then I need to multiple the result from my nested if to get the cost for 150 kg.

    =IF(C4>1000,$B$9*7.23,IF(C4>500,$B$9*7.54,IF(C4>300,$B$9*7.86,IF(C4>100,$B$9*8.3,$B$9*9.2))))

    How do I do this?

    Help would be wonderful.

    Thanks

    Kim
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Nested IF with multiple calculations

    =IF(C4>1000,$B$9*7.23,IF(C4>500,$B$9*7.54,IF(C4>300,$B$9*7.86,IF( AND ( C4>100, C4 <> 150 ) ,$B$9*8.3, IF ( C4 = 150 , calc for 150 , $B$9*9.2)))))
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    02-25-2016
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    22

    Re: Nested IF with multiple calculations

    Thanks, but I don't understand. I am so sorry, I don't want to waste your time.


    The 150 is not a constant, it could be any kg amount - which would be typed into C4.


    I am not very clued up on the AND either.

    Your help would be appreciated.

    Kim

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Nested IF with multiple calculations

    try:
    =CHOOSE(MATCH(C4,{0,101,301,501,1001}),9.2,8.3,7.86,7.54,7.23)*$B$9
    but what is a cost for 150 kg? 8.08 ?
    if yes:
    =CHOOSE(MATCH(C4,{0,101,151,301,501,1001}),9.2,8.3,8.08,7.86,7.54,7.23)*$B$9
    Last edited by sandy666; 02-25-2016 at 11:50 AM.

  5. #5
    Registered User
    Join Date
    02-25-2016
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    22

    Re: Nested IF with multiple calculations

    Thanks Sandy

    But that doesn't solve my problem, I got the same result as you.

    I need to now calculate what the costs will be if the persons order weighs a certain amount (c4) what will it come to in total i.e. c4 * 1.66 to give total cost. I can't put it into a separate column because after I have this answer I need to then calculate that if it's a minimum of 9 they will pay 9. but it gives me a circular reference.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Nested IF with multiple calculations

    So, you need result of =CHOOSE(MATCH(C4,{0,101,301,501,1001}),9.2,8.3,7.86,7.54,7.23)*$B$9 multiple by C4?

    =CHOOSE(MATCH(C4,{0,101,301,501,1001}),9.2,8.3,7.86,7.54,7.23)*$B$9*C4

    or tell me why just 1.66 or it can be variable?

    or you need in one cell two results?

  7. #7
    Registered User
    Join Date
    02-25-2016
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    22

    Re: Nested IF with multiple calculations

    Ahh silly me, I have the correct answer now.

    Thanks Sandy

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Nested IF with multiple calculations

    You mean this is a correct answer =CHOOSE(MATCH(C4,{0,101,301,501,1001}),9.2,8.3,7.86,7.54,7.23)*$B$9*C4 ?

  9. #9
    Registered User
    Join Date
    02-25-2016
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    22

    Re: Nested IF with multiple calculations

    Yes, it is

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Nested IF with multiple calculations

    Glad to help.
    I saw it thanks for rep and don't forget mark thread as solved. Thank you.

+ 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] How are nested IF formulas that include calculations organised?
    By RogH in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-27-2014, 04:24 AM
  2. How can I do calculations on multiple fields on multiple worksheets
    By rgreene in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-20-2013, 11:01 AM
  3. Nested what if formula with some calculations
    By raperm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-05-2013, 02:44 PM
  4. Nested formula with some greaterthan/less than calculations
    By raperm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2013, 03:51 PM
  5. Need a formula for multiple calculations
    By ashh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-04-2013, 06:08 AM
  6. Multiple calculations in one SUMIF formula across multiple worksheets
    By necht_angel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2011, 05:30 AM
  7. Bonus calculations using Nested IF's
    By Irfan123 in forum Excel General
    Replies: 3
    Last Post: 07-17-2008, 05:05 AM
  8. Doing multiple calculations.
    By berettagtz in forum Excel General
    Replies: 7
    Last Post: 04-11-2007, 01:42 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