Return value based on criteria

Rportz

Board Regular
Joined
Mar 24, 2016
Messages
55
I need cell B7 to enter the daily payment rate based on the value that is entered in cell B1. For instance, if the no. of miles traveled (cell B1) is 17 then the daily travel rate will return $10.00 (cell B7).

Any help is so appreciated!!

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD="align: right"]No miles traveled:
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Miles
[/TD]
[TD]Daily Payment Rate
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]15 miles per day or less
[/TD]
[TD]$5.00
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]16-30 miles per day
[/TD]
[TD]$10.00
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]31-45 miles per day
[/TD]
[TD]$15.00
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]46-60 miles per day
[/TD]
[TD]$20.00
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD="align: right"]Daily Travel Rate:
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Here's one way:
Excel Workbook
AB
1No miles traveled:17
2MilesDaily Payment Rate
315 miles per day or less$5.00
416-30 miles per day$10.00
531-45 miles per day$15.00
646-60 miles per day$20.00
7Daily Travel Rate:$10.00
Sheet
 
Upvote 0

Forum statistics

Threads
1,223,532
Messages
6,172,878
Members
452,486
Latest member
standw01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top