+ Reply to Thread
Results 1 to 5 of 5

Excel Formula

  1. #1
    Kelly
    Guest

    Excel Formula

    In One sheet I have a chart that has miles and pay.
    A B
    0 $15
    10 $20
    15 $25

    I want to be able to put in one cell the ammount of miles and in another
    cell it will automatically give me the pay. if it is 0-9.99 miles it is $15
    and 10-14.99 miles it is $20. I have written a formula before but I can not
    seem to remeber how I did it.

  2. #2
    goofy11
    Guest

    RE: Excel Formula

    This should do the trick:

    =IF(A2<10,15,IF(AND(A2>9.99,A2<15),20,25))


    "Kelly" wrote:

    > In One sheet I have a chart that has miles and pay.
    > A B
    > 0 $15
    > 10 $20
    > 15 $25
    >
    > I want to be able to put in one cell the ammount of miles and in another
    > cell it will automatically give me the pay. if it is 0-9.99 miles it is $15
    > and 10-14.99 miles it is $20. I have written a formula before but I can not
    > seem to remeber how I did it.


  3. #3
    Karthik
    Guest

    Re: Excel Formula

    Hi Kelly

    You need to use Vlookup...

    Thanks
    Karthik Bhat
    Bangalore


  4. #4
    Bob Phillips
    Guest

    Re: Excel Formula

    =VLOOKUP(16,A1:B3,2)

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Kelly" <[email protected]> wrote in message
    news:[email protected]...
    > In One sheet I have a chart that has miles and pay.
    > A B
    > 0 $15
    > 10 $20
    > 15 $25
    >
    > I want to be able to put in one cell the ammount of miles and in another
    > cell it will automatically give me the pay. if it is 0-9.99 miles it is

    $15
    > and 10-14.99 miles it is $20. I have written a formula before but I can

    not
    > seem to remeber how I did it.




  5. #5
    Karthik
    Guest

    Re: Excel Formula

    Say you put in the miles in A1 and want result in A2. Enter this in A2
    =IF(A1>=15,25,IF(A1>=10,20,15))

    Simple isn't it.

    Thanks
    Karthik Bhat
    Bangalore


+ 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