Name box in if formula

gergo1001

New Member
Joined
Oct 26, 2018
Messages
8
Hi All,

I have the below formula, and the coloured words are name boxes. What I try to achive here is to have a shorter formula which pulls the info from those ranges, instead of adding each column to the formula.

=
IF(U5=HighestRatesTech,580,
IF(U5=MidHighRatesTech,475,
IF(U5=Z19,370,
IF(U5=LowRatesTech,AA20,0))))

Thanks for the help.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Instead of having named ranges, build a lookup table and use VLOOKUP instead.

Something like this:


Excel 2010
IJKLMNOPQRSTUV
2Highest RatesTech1580
3MidHighRatesTech2475
4LowRatesTech346
5Z194237042370
Sheet1
Cell Formulas
RangeFormula
K4=AA220
J5=Z19
V5=IFERROR(VLOOKUP(U5,$J$2:$K$5,2,0),0)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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