+ Reply to Thread
Results 1 to 4 of 4

How to set up a formula with two false values?

  1. #1
    Chris
    Guest

    How to set up a formula with two false values?

    I need to set up of a formula with this info:
    1-5 pcs =$5, 6-10=$7, 11-15 = $10. I use the "IF" format, but I can't
    figure it out. Can anyone help?

  2. #2
    Ron Coderre
    Guest

    RE: How to set up a formula with two false values?

    Maybe one of these?:

    For a value in A1

    B1: =CHOOSE(INT((A1-1)/5)+1,5,7,10)
    or
    B1: =VLOOKUP(A1,{0,5;6,7;11,10},2,1)

    Is that something you can work with?
    ***********
    Regards,
    Ron

    XL2002, WinXP


    "Chris" wrote:

    > I need to set up of a formula with this info:
    > 1-5 pcs =$5, 6-10=$7, 11-15 = $10. I use the "IF" format, but I can't
    > figure it out. Can anyone help?


  3. #3
    Biff
    Guest

    Re: How to set up a formula with two false values?

    Hi!

    Try this:

    A1 = some number

    =LOOKUP(A1,{0;1;6;11},{"";5;7;10})

    If A1 is empty or 0 the formula returns a blank. If A1 >15 the formula
    returns 10.

    Biff

    "Chris" <[email protected]> wrote in message
    news:[email protected]...
    >I need to set up of a formula with this info:
    > 1-5 pcs =$5, 6-10=$7, 11-15 = $10. I use the "IF" format, but I can't
    > figure it out. Can anyone help?




  4. #4
    Chris
    Guest

    RE: How to set up a formula with two false values?

    WOW!!! The second forumual worked!!! Thank you so much for you help!!!!!

    "Ron Coderre" wrote:

    > Maybe one of these?:
    >
    > For a value in A1
    >
    > B1: =CHOOSE(INT((A1-1)/5)+1,5,7,10)
    > or
    > B1: =VLOOKUP(A1,{0,5;6,7;11,10},2,1)
    >
    > Is that something you can work with?
    > ***********
    > Regards,
    > Ron
    >
    > XL2002, WinXP
    >
    >
    > "Chris" wrote:
    >
    > > I need to set up of a formula with this info:
    > > 1-5 pcs =$5, 6-10=$7, 11-15 = $10. I use the "IF" format, but I can't
    > > figure it out. Can anyone 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.6.0 RC 1