Group return value.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,454
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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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,225,237
Messages
6,183,770
Members
453,188
Latest member
amenbakr

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