4 IF Statements within Excel

mobyzone

Board Regular
Joined
Apr 17, 2008
Messages
73
Hi all,

I'm wanting to do an IF statement but include 4 statements in the same formula.

IF E8 is less than 50000 then return 1, if its between 50000 and 100000 then return 2, if its between 100000-250000 then return 3, otherwise greater than 250000 return 4.

Any ideas?

Thanks
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi all,

I'm wanting to do an IF statement but include 4 statements in the same formula.

IF E8 is less than 50000 then return 1, if its between 50000 and 100000 then return 2, if its between 100000-250000 then return 3, otherwise greater than 250000 return 4.

Any ideas?

Thanks
Your levels are not well defined!

You have overlaps at 100000 and 250000.

See if this is what you had in mind:

=IF(COUNT(E8),MATCH(E8,{0,50000,100000,250000}),"")
 
Upvote 0
=if(e8="","",if(e8<50000,1,if(and(e8>=50000,e8<100000),2,if(and(e8>=100000,e8<2500000),3,4))))
No need for the AND functions:

=IF(E8="","",IF(E8<50000,1,IF(E8<100000,2,IF(E8<2500000,3,4))))

See my comment about the levels not being clearly defined.
 
Upvote 0
No need for the AND functions:

=IF(E8="","",IF(E8<50000,1,IF(E8<100000,2,IF(E8<2500000,3,4))))

See my comment about the levels not being clearly defined.

Thanks for that,

1 more,

If F8 has any value in it return 1, if G8 has any value return 2, if F8 and G8 both have a value then return 3?

Thanks
 
Upvote 0
Thanks for that,

1 more,

If F8 has any value in it return 1, if G8 has any value return 2, if F8 and G8 both have a value then return 3?

Thanks
Try this..

=IF(COUNT(F8:G8)=2,3,IF(COUNT(F8),1,IF(COUNT(G8),2,"")))
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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