+ Reply to Thread
Results 1 to 3 of 3

Nesting if formulas

  1. #1
    Registered User
    Join Date
    01-26-2009
    Location
    Kent
    MS-Off Ver
    Excel 2007
    Posts
    11

    Nesting if formulas

    I'm ok with normal if formulas, but am struggling slightly with this.
    Example: column 1 = qty column 2 = rate
    now I wish column 2 to show this, if qty is 0 then show 0.00, if qty is between 1 - 200 then show £1.54, if qty is 201 - 400 then show £1.34, if qty is between 401 - 600 then show £1.22, etc etc
    My column 3 is rate x qty this will then calculate the correct qty x rate automatically based on qty entered, hopefully.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Nesting if formulas

    In B2, try this formula

    =LOOKUP(A2,{0,1,201,401},{0,1.54,1.34,1.22})
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Nesting if formulas

    hi,

    JBeaucaire's suggestion of using virtual array (symbolised by the "squiggly brackets") within a lookup formula will work, but it can be harder to maintain if the rates change.

    I suggest creating a reference table & referring to the table, that way any rate changes are made within the table which is more "transparent" & the formulae can remain the same. See attached file for an example where I have also used a dynamic named range to automatically detect new entries on the Reference Table.

    hth
    Rob
    Attached Files Attached Files
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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