Group return value.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,413
Office Version
  1. 2007
Platform
  1. Windows
Hi,


I have 6 groups of numbers :


1 to 7 = 1
8 to 14 = 2
15 to 21 = 3
22 to 28 = 4
29 to 35 = 5
36 to 39 = 6


Starting in column C9 I have numbers that run from 1 to 39.
and starting in column AF9 I would need a formula that return the group ID of that number.


so if in C9 I have the number 16 in AF9 it should return the group 3
if in C10 I have the number 33 in AF10 it should return the group 5
and so on, Thank you.

Serge.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
One option
=IF(C9<8,1,IF(C9<15,2,IF(C9<22,3,IF(C9<29,4,IF(C9<36,5,IF(C9<40,6,""))))))
 
Upvote 0
Thank you so much Fluff, that exactly what I needed, I really appreciate it.
Serge.
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,771
Messages
6,126,797
Members
449,337
Latest member
BBV123

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