Nested ifs statement

Stclements1

Board Regular
Joined
Sep 15, 2018
Messages
158
Office Version
  1. 365
Platform
  1. Windows
I am looking for a solution that I believe maybe nested IFS but I think there maybe a better solution.
In cells J1:J9 I have values 0, 10000, 50000,100000,250000,5000000,750000,1000000,5000000
In cells K1:K9 I have values 10, 12, 12.5, 13,13.5,14,15,16,18
In cell B1 I want to select a value from J1:J9 and in cell C1 dispaly a corresponding number from the array K1:K9
I have done this by using the formula =INDEX($k$1:$k$9;MATCH(B1;$j$1:$j$9;0);)
What I realised that if a number was input that wasn't relative to the values in the array J1:J9 then I it would return an error.
So what I want to do is to be able to input any number in cell B1 and then an if statement along the lines if B1>0,but less than<10000, K1 and so on so if B1>10000 <50000, etc but I'm not sure how to put all theses values into one formula.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Just remove the 0 parameter in the MATCH:

=INDEX($k$1:$k$9;MATCH(B1;$j$1:$j$9;0))

=INDEX($k$1:$k$9;MATCH(B1;$j$1:$j$9))
 
Upvote 0
Glad we could help. The parameter in MATCH (and VLOOKUP) can make a big difference.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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