If Statement too long multiple conditions

smarksberry

New Member
Joined
Dec 15, 2005
Messages
15
Hi! I need help!

I tried to write an IF statement but it got too long. I have a column of % growths like so:

Growth
18%
20%
5%
10%
9%
14%
3%

And in the next column I have % Payout wich needs to look at the individual cells and return a % value based on the % in the growth column.

I had so far:
=(IF(C12<=10%,"0",IF(C12=11%,"2%",IF(C12=12%,"3%",IF(C12=13%,"4%",IF(C12=14%,"6%",IF(C12=15%,"8%",IF(C12=16%,"10%",IF(C12=17%,"12%")))))))))

But I need to include in my if statement:
18%, "14%"
19%, "16%"
20%, "18%"
>21%, "20"

I also tried to use:
=LOOKUP(C13,{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21},{"0%","0%","0%","0%","0%","0%","0%","0%","0%","0%","0%","2%","3%","4%","6%","8%","10%","12%","14%","16%","18%","20%"})

But as long as the growth column is formatted with %, it won't recognize it.

What should I do???

Sharon
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
As NBVC says you need to multiply by 100 or change the lookup range. Also you don't need to list all percentages, just the boundaries. You could use this

=LOOKUP(C13*100,{0,11,12,13,14,15,16,17,18,19,20,21},{0,2,3,4,6,8,10,12,14,16,18,20})/100

format as percentage

....and Welcome to the board
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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