Formula help please

steverpi75

New Member
Joined
Mar 23, 2006
Messages
14
Hi all,

Need a little help with formulas.

I have fifty departments (A1 - A50). I have the total people in each department in B1 - B50. I'm having a hard time making a formula where the value in C1 - C50 is returned based on column B numbers/ people and the following:

0-50 people return a "1" in C1 - C50.
51-150 people return a "2" in C1 - C50.
151-250 people return a "3" in C1 - C50.

We'd be grateful if someone could help us out of a jam.

Thanks,
Steve
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Assuming you have no headers

in c1

=IF(B1>150,"3",IF(B1>50,"2","1"))
I've assumed anything over 150 people will return a 3 -Ie 300 people will still be 3
 
Upvote 0
Hi, if it's really just 1,2 and 3 you want to return you can try:

=MATCH(B1,{0,51,151})

Note, this will return 3 for numbers greater than 250.
 
Upvote 0
in C1, put

=if(B1<51,1,if(B1<151,2,if(B1<251,3,"?")))

and copy down
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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