#1   Report Post  
Kelly
 
Posts: n/a
Default 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   Report Post  
goofy11
 
Posts: n/a
Default

This should do the trick:

=IF(A2<10,15,IF(AND(A29.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   Report Post  
Karthik
 
Posts: n/a
Default

Hi Kelly

You need to use Vlookup...

Thanks
Karthik Bhat
Bangalore

  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

=VLOOKUP(16,A1:B3,2)

--

HTH

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


"Kelly" wrote in message
...
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   Report Post  
Karthik
 
Posts: n/a
Default

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel CHALLENGE...3 questions(indirect,rank,array formula)... Mlowry Excel Worksheet Functions 8 August 1st 05 07:34 AM
converting formula from lotus.123 to excel zaharah Excel Worksheet Functions 2 July 27th 05 03:04 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
How do I get the formula bar in excel 2003 unionhall Excel Discussion (Misc queries) 1 February 17th 05 10:10 AM
Suddenly Excel can't calculate formula!!! Bob H Excel Worksheet Functions 2 November 30th 04 08:35 PM


All times are GMT +1. The time now is 05:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"