If Statement with Named Range

murphyjeff4

New Member
Joined
Jan 23, 2018
Messages
6
Hello,

I am wanting to use a named range in a IF statement to significant shorten the formula. This is what I am currently using, but would need to expand the formula significantly to gather the information I need.

=IF(AND(F17>0,F17<J10),J10*0.1,IF(AND(F17>J10+1,F17<J11),J11*0.12,IF(AND(F17>J11+1,F17<J12),J12*0.14,0)))

If I inputted 500,000 into cell F17 I want it to import the value from the range in column j and multiple it by the correspond value in the column G (range). For example, if 530,000 is in F17 I want F18 to tell me it's 50,000 (500000*.1).The range/columns are below...

Column J Column G
500000 .1
600000 .11
700000 .12
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
What you wrote is very confusing because it doesn't seem clear, you mention using Named Ranges but don't give any detail as to what the named ranges are or what the cell references are to those ranges. And your formula is missing some variables "F17J10" should have something in between each of those cell references.
 
Upvote 0
Let me try this again. Thanks for asking for clarity.

Here is my formula. =IF(AND(F9>0,F9<J2),J2*L2,IF(AND(F9>J2+1,F9<J3),J3*L3,IF(AND(F9>J3+1,F9<J4),J4*L4,0)))

Essentially I want to create the above formula with the named ranges and the tables provided below. If I type in a value in F9 (530,000) then I want F10 to reference the "starting range" and "end range" to include the corresponding ending range number x the multiplier range number. Example below....


If F9 Value=$530,000
Then F10 Value= J3 (600,000)*L3 (.12)

So F10 = 72,000

Named Ranges

"Starting Range"= I:I
"Ending Range" =J:J
"Multiplier"= L:L



F
I (Starting Range)
J (Ending Range)
L (Multiplier Range)
0
500000
.1
500001
600000
.12
600001
700000
.14
700001
800000
.16

<tbody>
</tbody>
 
Upvote 0
My formula keeps getting cut off...

Here you go.

=IF(AND(F9>0,F9<J2),J2*0.1,IF(AND(F9>J2+1,F9<J3),J3*0.12,IF(AND(F9>J3+1,F9<J4),J4*0.14,0)))
 
Upvote 0
=IF(AND(F17>0,F17 < j10),j10*0.1,if(and(f17>J10+1,F17 < j11),j11*0.12,if(and(f17>J11+1,F17 < j12),j12*0.14,0)))

Mind the spaces added to each "<" if you copy this formula.
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,369
Members
449,080
Latest member
Armadillos

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