Counting Sequence

Jstump

New Member
Joined
Oct 25, 2023
Messages
36
Office Version
  1. 365
Platform
  1. Windows
I am looking for a sequence that changes 2 different variables in 2 different counts. example, i have the text C2A1.1. I need the the 1 after the A to change to a 2 every 12 rows while also changing the second 1 to a 2 every 6 rows and then a 3, 4 on so on all the way up to 12. Is there any formula I can use to achieve this? I've attached an image to kind of show what i am needing. look at column c
 

Attachments

  • Screenshot 2023-10-25 102554.png
    Screenshot 2023-10-25 102554.png
    12.5 KB · Views: 7

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi & welcome to MrExcel.
How about
Excel Formula:
="C2A"&INT(SEQUENCE(108,,0)/12)+1&"."&MOD(INT(SEQUENCE(108,,0)/6),2)+1
 
Upvote 1
"C2A"&INT(SEQUENCE(108,,0)/12)+1&"."&MOD(INT(SEQUENCE(108,,0)/6),2)+1

That worked amazing! I had to change the 108 to 144 to get my count to 12 but that just saved my whole day. Thank you so much.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Can I bug you for one more question? What would the formula be for my first column to have 102A-01 and count to 144 then switch to 102B-01 and count to 144?
 
Upvote 0
How about
Excel Formula:
="102"&CHAR(INT(SEQUENCE(288,,0)/144)+65)&"-"&TEXT(MOD(SEQUENCE(288,,0),144)+1,"00")
 
Upvote 0
Solution
How about
Excel Formula:
="102"&CHAR(INT(SEQUENCE(288,,0)/144)+65)&"-"&TEXT(MOD(SEQUENCE(288,,0),144)+1,"00")
Worked amazing! Thank you again! One day i will know how that breaks down lol.
 
Upvote 0
Worked amazing!
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,215,093
Messages
6,123,067
Members
449,090
Latest member
fragment

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