+ Reply to Thread
Results 1 to 6 of 6

Thread: Multi-value IF formula?

  1. #1
    Registered User
    Join Date
    08-19-2009
    Location
    Long Beach
    MS-Off Ver
    CA
    Posts
    41

    Multi-value IF formula?

    Hi all,

    I know how to do a 2 value IF statement, but not 3 values. Here is the end result I am after for column U, carrying cost:

    • Carrying Cost ($U). Based on product sales rank and unit dimensions:
    ○ Sales rank ($K) of less than 5,000 = $0.15*(($L*$M$*$N)/1728)
    ○ Sales ranks 5,001 - 25,000 = $0.35*(($L*$M$*$N)/1728)
    ○ Sales ranks 25,001 or greater = $0.50*(($L*$M$*$N)/1728)
    I think Excel will have a way of doing this but am not sure. Any advice is appreciated!
    Last edited by Delta223; 01-13-2012 at 12:48 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,957

    Re: Multi-value IF formula?

    Try this formula:

    =CHOOSE(MATCH(K1,{0,5001,25001},1),0.15,0.35,0.5)*((L1*M1*N1)/1728)

  3. #3
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566

    Re: Multi-value IF formula?

    Andrew's CHOOSE() formula will work just fine.
    For general info should you ever have bigger tables to work from it's usually then advisable to build a lookup table for the bands and values and read the 0.15, 0.35, 0.5 etc. values with a VLOOKUP()
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  4. #4
    Registered User
    Join Date
    08-19-2009
    Location
    Long Beach
    MS-Off Ver
    CA
    Posts
    41

    Re: Multi-value IF formula?

    Hi, it does not seem to work. I made sure the formula was calling the correct cells, and I also expanded the cell formatting to show 15 digits so nothing would be hidden.

    Still, it showed a value of 0

  5. #5
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,957

    Re: Multi-value IF formula?

    Do the cells in L, M and N all have numeric values in? If any of them are blank or 0 then the overall result will be 0.

  6. #6
    Registered User
    Join Date
    08-19-2009
    Location
    Long Beach
    MS-Off Ver
    CA
    Posts
    41

    Re: Multi-value IF formula?

    No, they were blank, silly me. Thanks for the help!

+ 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.2.0