Need Excel to return 1 of 6 answers? If/Than/and

kurtma

New Member
Joined
Jun 29, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello! I keep getting stuck on this one. Any help would be greatly appreciated.

I am inputting a number into H3, then want excel to give the answer in I3.

If H3 is less than 1,499,999 I want it to return 0
If H3 is between 1,500,000 and 2,000,000 I want it to return 1000
if H3 is between 2,000,001 and 3,000,000 i want it to return 1500
if H3 is between 3,000,001 and 4,000,000 i want it to return 2500
if H3 is between 4,000,001 and 5,000,000 i want it to return 5000
if H3 is greater than 5,000,001 I want it to return 10,000

I have it set up where A9 is 0, b9 is 1,499,999, and c9 is 0
a10 is 1,500,000, b10 is 2,000,000 and c10 is 1000, and so on

How do I get that many nested if functions?
Thanks!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi & welcome to MrExcel.
How about
=INDEX(C9:C14,MATCH(H3,A9:A14,1))
 
Upvote 0
Welcome to the forum, create a simple table as below, then use

=LOOKUP(H3,$D$3:$E$8)

My table is in D3:E8
1593440822031.png
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,545
Members
449,317
Latest member
chingiloum

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