+ Reply to Thread
Results 1 to 4 of 4

Please Help with formula usage per month use if statements in one formula?

  1. #1
    Registered User
    Join Date
    11-30-2017
    Location
    Curacao
    MS-Off Ver
    Office2016
    Posts
    2

    Please Help with formula usage per month use if statements in one formula?

    Kolum Tariff group NAF/kWh
    A ≤ 250 0.4761 cents
    B >250 ≤ 350 0.5824 cents
    C >350 0.6266 cents

    I have 3 tariff groups like above.

    If the usage for example = 240 till or equals 250 = 240 x 0.4761

    If >250 ≤ 350

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

    Re: Please Help with formula usage per month use if statements in one formula?

    Hello and welcome to the forum.

    Assuming that the usage is in cell A2, try this:

    =LOOKUP(A2,{0,251,351},{0.4761,0.5824,0.6266})

  3. #3
    Registered User
    Join Date
    11-30-2017
    Location
    Curacao
    MS-Off Ver
    Office2016
    Posts
    2

    Re: Please Help with formula usage per month use if statements in one formula?

    Thank you for your quick response,

    I will try your method first, looks more simple

    I tried this with the if statement
    =IF(C4<=250,(C4*$F$2),IF(C4>250,<=350,(C4*$G$2),IF(C4>350,(C4*$H$2)))

    Thank you i will come back

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

    Re: Please Help with formula usage per month use if statements in one formula?

    The only issue with the formula in post #2 is that it assumes that the usage will always be an integer.

    If it is possible for the usage to be, say 250.1, the formula in post #2 would result in 0.4761 when the expected result is 0.5824.

    You could change the values in the first array to something like {0,250.0001,350.0001} but then if there can be a usage of 250.00001 (for example), the formula would return an unexpected result.

    The most foolproof way would probably be through a nested IF formula like this:

    =IF(A2>350,0.6266,IF(A2>250,0.5824,0.4761))

+ 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] if statement - usage of double if statements - solved
    By lydte in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-22-2017, 01:53 AM
  2. Usage of IR formula
    By gonefishing83 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-24-2016, 06:12 AM
  3. Replies: 3
    Last Post: 11-26-2013, 02:34 PM
  4. Countif formula usage
    By newbie1234 in forum Excel General
    Replies: 12
    Last Post: 02-07-2012, 11:00 PM
  5. Replies: 12
    Last Post: 05-15-2009, 08:38 AM
  6. Need HELP with conditional usage formula
    By anthonyjf in forum Excel General
    Replies: 2
    Last Post: 08-02-2007, 05:49 AM
  7. Usage of SUMIF formula in the VBA code
    By GreenInIowa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2005, 06:20 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