multiple cells into 1 IF cell

gabbie1977

New Member
Joined
Jun 3, 2011
Messages
9
I can't seem to be able to add more cells to my IF, i keep getting errors.

I want to take from D3 to D30, if the value exceeds 31999 do this, if the value is under do this.

So far this is what i have tried:

=IF(D3:D31>=31999,"OVER LIMIT","Under Limit")

^ that one generates #value error

<table border="0" cellpadding="0" cellspacing="0" width="101"><colgroup><col width="101"></colgroup><tbody><tr height="18"> <td class="xl64" style="height:13.5pt;width:76pt" height="18" width="101">
</td></tr></tbody></table>=IF(D3>=31999,"OVER LIMIT",IF(D4>=31999,"OVER LIMIT",IF(D5>=31999,"OVER LIMIT",IF(D6>=31999,"OVER LIMIT",IF(D7>=31999,"OVER LIMIT",IF(D8>=31999,"OVER LIMIT",IF(D9>=31999, "OVER LIMIT",IF(D10>=31999, "OVER LIMIT","Under Limit"))))))))

^ i cannot go over D10 cell using this method
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi

Welcome to the forum.

Try this -

Code:
=IF(MAX(D3:D31)>=31999,"OVER LIMIT","Under Limit")

hth
 
Upvote 0
Hi

Pleased to have helped you solve your problem.

Thanks for the feedback.

You'll find this forum is a fantastic resource to improve your Excel skills.
 
Upvote 0
Another method to consider...

=IF(COUNTIF(D3:D30,">=31999"),"OVER LIMIT","Under Limit")
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

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