The times when you had to put numbers in sequence in Excel manually are long gone. In modern Excel, you can make a simple number series in a flash with the Auto Fill feature. If you have a more specific task in mind, then use the SEQUENCE function, which is specially designed for this purpose. Continue reading
Comments page 6. Total comments: 439
Hello team!
I need a solution to increment alphanumeric numbers by 1 that have a string as the prefix, and the suffix as a sequential number. I need the increments to restart from 0 if the suffix string is different.
For example, in column A, I have sets of different strings, e.g. “ATD” in A2:A7, “FMR” in A8:A11, “OWG” in A12:A15, “ATD” again from A16:A19, etc.
In column B, I would like a sequence of numbers which includes the string from column A as the prefix and the suffix “-R00”, incremented by one for each instance of that particular string.
The caveat is that if the string already exists, e.g. “ATD”, I would need the numbering to continue from the last previous instance in column B.
So in column B, from cell B2, I would have the following:
2 ATD-R00
3 ATD-R01
4 ATD-R02
5 ATD-R03
6 ATD-R04
7 ATD-R05
8 FMR-R00
9 FMR-R01
10 FMR-R02
11 FMR-R03
12 OWG-R00
13 OWG-R01
14 OWG-R02
15 OWG-R03
16 ATD-R06
17 ATD-R07
18 ATD-R08
19 ATD-R09
I have written the current formula =IF($A2=$A1,CONCATENATE($A2,"-R"&TEXT(ROWS($1:1)-1,"00")),CONCATENATE(A2,"-R00")) in column B, and although this restarts the numbering to R00 for a different string, the next number suffix is not 001 as I require. Could you advise what the best formula is for this?
Thank you!
Hello!
Use COUNTIF function to count the number of prefixes up to the current row.
To display a number with two digits, use the TEXT function.
=A1&"-R"&TEXT(COUNTIF($A$1:A1,A1)-1,"00")
You can copy this formula down along the column.
Genius, thank you!! I wanted to number through starting at 1, for each category in a different column and this works a treat with amendment to my purpose :)
=TEXT(COUNTIF($A$1:A1,A1),"00")
Absolutely perfect, thank you for your speedy response, Alexander!
Hi,
Thanks a lot for this.
I would like to go in the sequence 001,002,003 etc down a column
using the sequence function I am getting 001,011,021,031 etc.
Would appreciate it if you could let me know how to correct this.
Thanks.
Hello!
To create a sequence, use the formulas recommended above.
=TEXT(SEQUENCE(100,,1,1),"000")
To show leading zeros, use these guidelines: How to add leading zeros in Excel.
Hi!
I would like to make a pattern going down a column:
1
4
2
4
2
4
2
4
1
The first and last value must always be 1, and in-between needs to be a pattern of 4,2,4,2,4... The pattern needs to be autofilled in when I add a value in the column next to it on the same row (it needs to be applied to blank cells so if I add or delete values the pattern remains with 1 at the start and end). I can't figure out what to use so that the first and value stay at 1. Much appreciated if possible to help!
Hi!
I do not think that the sequence of your numbers can be described mathematically.
Hello,
I have a very large table consisting of 5-digit ID codes (approximately 8,000 rows). For each ID code, I need to concatenate or append a separate table consisting of 4-digit product codes (3,000 rows). The final list would be in the neighbourhood of 24m rows (8k x 3k). Is this something I can do in Excel or perhaps Power Query and how?
tbl_IDCode tbl_ProdCode
20456 1111
20457 2333
20468 2654
20471
End Result
204561111
204562333
204562654
204571111
204572333
204572654
204681111
204682333
204682654
204711111
204712333
204712654
Thank you,
Dan
Hello!
With this formula, you can form an array of values.
=TRANSPOSE(INDEX(A1:A4;SEQUENCE(1;4;1;1))&B1:B3)
Then replace formulas with values using Paste Special.
Then use the Create Cards tool from the Ultimate Suite for Excel.
You can install Ultimate Suite in a trial mode and check how it works for free.
I hope it’ll be helpful. If something is still unclear, please feel free to ask.
Hi I have a question where I need to create a column of index numbers
beginning at 20 and incrementing by 1 so that the last number in the column is 44 how do I cap it at 44.
Hi!
Just specify in the formula that you need 25 numbers:
=SEQUENCE(25,1,20,1)
hi
is it possible to sequence
2222/22
2223/22
2224/22 etc
thanks
Hi!
Use the & operator to concatenate a number sequence with text. There are a lot of similar questions in the comments below.
=SEQUENCE(100,,2222,1)&"/22"
001/22-23
002/22-23
HOW TO CONTINUE THIS SEQUENCE ?
Hi!
Please read the comments below your question. There is a solution to your problem.
Hi Alexander, I am hoping you can help with a formula I have been struggling to find. I need to list all values between two original values. For example, I have the following 2 values: ABC2100701 & ABC2101800. I need a formula to list the entire range between these 2. Is that possible at all?
Hello!
I believe the following formula will help you solve your task:
="ABC210"&TEXT(SEQUENCE(1100,1,701,1),"0000")
You can learn more about TEXT function in Excel in this article on our blog.
Hello,
I want to type something in sequence, like below.
A0101
A0104
A0201
A0204
A0301
A0304
etc.
Up to
A7001
A7004
Is there a formula doing that typing quickly?
Hello!
The formula below will do the trick for you:
="A"&TEXT(CEILING(ROW(A1)/2,1),"00") &"0"& (TRUNC(MOD((ROW(L1)-1)/1,2)+1))^2
Copy this formula down along the column.
Hi - I have a slightly random one. For livestock animals such as cattle, they have passport numbers that go up in a specific sequence, for example:
UK121629 101653
UK121629 201654
UK121629 301655
UK121629 401656
UK121629 501657
UK121629 601658
UK121629 701659
UK121629 101660
UK121629 201661
UK121629 301662
UK121629 401663
UK121629 501664
UK121629 601665
UK121629 701666
There's UK for the country, then the herd number of the farmer (which usually stays the same) and then the last 6 digits are the individual animal's tag number. This goes up by one each time for the last 4 digits, but the first two numbers go up by 10 each time, until they reach 70, then it goes back to 10,20,30 and so on.
Is there any way I can make this into a sequence?
Thank you!
Hello!
If I got you right, the formula below will help you with your task:
="UK121629 "&TRUNC(MOD((ROW(A1)-1)/1,7)+1)&"0"&ROW(A1653)
Copy this formula down along the column.
That's great thank you - So next question... If I have a list of unordered passport numbers, is there a way I can order them according to this sequence?
Hi!
Sorry, I do not fully understand the task. Perhaps this article will be useful: Excel SORT function - auto sort data using formula.
Hi, what is the formula for this kind of sequence?
20220327.01.01
20220327.02.01
20220327.03.01
20220327.04.01
20220327.05.01
I already tried the formula you shared in this article, but I couldn't figure it out. Any help would be appreciated. Thank you!
Hello!
Please read the two comments just below your question. There is a solution to your problem.
Hello,
I need to create the following sequence
5-00001-01
5-00002-01
5-00003-01
5-00004-01
etc
Any advice?
Hello!
Use the TEXT function to apply a custom number format. All the information you need about the SEQUENCE function is in the article above.
="5-"&TEXT(SEQUENCE(100,1,1,1),"00000")&"-01"
There are many examples in the comments.
I am looking to create the ongoing sequence below and could use help with the formula. As I have to go very high with the numbers, I really don't want to be entering them all manually. Thanks!
2022.1.1
2022.2.1
2022.3.1
2022.4.1
2022.5.1
2022.6.1
2022.7.1
Hello!
To concatenate text and a number, use the & operator.
="2022."&SEQUENCE(100,1,1,1)&".1"
Hi, i want a column A to generate a sequential number of p/o's to an unlimited numer of rows. can you post an expample?
Hello
I hope you can help me out.
I am new to excel and am probably over my head.
I have a sheet with 8 columns in this order (last name, first name, hire date, shift, position, hours, switch and rank) I have it set up so that the data auto sorts by position first, then shift, hours, hire date and last name and when a new person is added to a master sheet they are automatically added to this sheet and placed according to the sort listed above. What i am desperately needing help on is how to auto number my rank column so that they are ranked dynamically as per multiple criteria of (shift, position, hours, hire date and alphabetically by last name. There are 4 different positions, 4 different shifts. I would like the numbering to be between shift and position and then hours but If people are tied in hours then number by hire date but if tied with that as well then number by first letter of last name alphabetically. If this is too much to ask I understand and we can get by with numbering by hand after printing. here is a mock up of what I am trying to accomplish. Ps. switch column is nothing important
last first hire shift position hours switch rank
smith bill 2-13-21 A hauler 19 1
davis fred 2-22-21 A hauler 22 2
hill mike 2-22-21 A hauler 22 3
kreg mary 2-12-19 A lifter 23 1
hall kate 5-30-18 A lifter 25 2
gore ned 3-09-19 A sorter 14 1
toews greg 3-12-17 A sorter 28 2
lao ning 4-12-20 A tech 22 1
hicks june 5-23-20 A tech 22 2
hash brian 7-04-19 B hauler 17 1
bush kim 4-09-22 B hauler 22 2
and continued on with other classes in shift b, c and d.
As you can see by the chart when fred davis and mike hill tie for hours and hire date they are then ranked by first initial of last name and when ning lao and june hicks tie for hours the ranking is next based on hire date and doesnt have to go to last name. everyone else is ranked by low hours first in their own shift and position. Hopefully I have made this readable. I did discover this formula but it only works with ranking shift, hours and position. =COUNTIFS($G$13:$G$150,"<"&G13,$F$13:$F$150,F13)+1
(g is my hours column, f is my position column and e is my shift column)
Thanks again for any help you have on this.
Sincerely, Gordon Stuart
Hello!
In Excel, you can determine the rank using the RANK function. However, it only works with numbers.
So could I somehow join the rank function with the formula I have above?
Hi!
If your table uses automatic sorting by columns D, E, F, G, then the rank will be equal to the serial number in the table. H13+1 and so on.
Hello,
I want to to do grouping of numbers based on sequence, e.g,
567, 568, 569, 570, 571 - sequence 5
230,231,232,233,234,235 - sequence 6
723, 724, 725, 726 - sequence 4
123,124,125,126 - sequence 4
Sequence should be calculated on the basis of count
Hello!
I recommend reading this guide: How to count cells with text in Excel.
If this is not what you wanted, please describe the problem in more detail.
1 9 17 25
2 10 18 26
3 11 19 27
4 12 20 28
5 13 21 29
6 14 22 30
7 15 23 31
8 16 24 32
33 41 49 57
34 42 50 58
35 43 51 59
36 44 52 60
37 45 53 61
38 46 54 62
39 47 55 63
40 48 56 64
-- how to create this sequence.. please help me ?
Hello!
Write in the first row 4 numbers - 1 9 17 25.
In cell A2 write the formula =A1+1
Copy this formula 3 columns to the right and 6 rows down.
In cell A9, write the formula =A1+32
Copy this formula 3 columns to the right and down as needed.
Here is the article that may be helpful to you: How to use AutoFill in Excel - all fill handle options.
I am trying to create a spreadsheet to help me keep track of our pay periods and check date.
Imagine this is a spread sheet..lol:
Header: Week Period Begins Period Ends Check Date
1 12/19/21 01/01/21 01/08/21
2 01/02/21 01/15/21 01/22/21
3 01/16/21 01/29/21 02/05/21
4 01/30/21 02/12/21 02/19/21
I made this with my phone side ways.
I am a nube when it comes to formulas, but I try.
Can you help me? Ty!!
Todd Hurley
Hello!
What result do you want to get exactly?
A simple spreadsheet to keep track of bi-weekly pay periods every fiscal year. So at the beginning of every new year I enter the starting dates for period begins, period ends, and Check Date. The cells below each start date automatically configured with a formula for the remaining pay periods for the remaining year. If that makes sense.
Also each pay period header increase by 2 weeks/14 days.
Hi!
If I understand you correctly, write down the date 19.12.21 in cell B1. Try to enter the following formula in cell B2 and then copy it down along the column:
=B1+14
Do the same with columns C and D.
It worked!
Thank you very much for your help!! Much appreciated.
Hi!?
I created a Payroll Spread calculation hours per day x pay per hour to get total gross weekly pay.
I did:
Row M is the daily total gross pay:
M3 = $139.88 + M4= $133.13
=SUM(M3:M4) which should equal
$273.01
How ever the cell shows: $273.00
I made certain to format the cell to currency with 2 decimal places but the .01 is missing. I am a newbie to excel or OpenOffice.
What am I missing? Thank you for your time.?
Todd
Hello!
If your numbers are derived from calculations, then in cells M3 and M4 they are displayed with rounding to two decimal places. However, the number is not rounded. For example, 139.884356 is displayed as 139.88
When adding such numbers, the result is different from what you see in the cells.
To avoid this, use round numbers to 2 decimal places in your formulas.
Hi there
Is there a way to combine SEQUENCE and MAX functions? I would like to use SEQUENCE to have a series of descending numbers but don't want the negative numbers in the sequence (i.e. once the descending SEQUENCE goes below zero) as it affects my other SUM functions. I tried combining SEQUENCE and MAX functions in an attempt to remedy this but wasn't having much luck combining the two!
I am trying to examine the effect of different reduction rates vs time, attempt was:
=MAX(0,(SEQUENCE(24,1,B1-C1))
Where, B1 = Starting Number C1= Reduction Rate
Thanks in advance
Hello!
Write an example of a sequence of values that you want to get.
e.g.
Starting Point = x = 20
Time = 24 months
Reduction Rate = (x-y), where y ranges between y = 2.8 per month
Would like SEQUENCE to decrease from 20 until it reaches zero and then stop, not continue until the sequence covers the full 24 months.
Hello!
If I understand your task correctly, you can create a sequence using the IF function.
A1 - 20
A2 - =IF(A1-2.8>0,A1-2.8,0)
After that you can copy this formula down along the column.
Hi there,
I am wondering if there is a way to create a code based on an order number and quantity
Order # Quantity
324954 1
434928 3
224860 4
724782 2
Would like the codes to look the same as below:
324954 - 01
434928 - 01 | 434928 - 02 | 434928 - 03 |
224860 - 01 | 224860 - 02 | 224860 - 03 | 224860 - 04 |
724782 - 01 | 724782 - 02 |
Not sure if this is possible.
A pot can hold 1000 coins. I would like to display this as a primary key. For example,
P1C1
P1C2
P1C3
...
P1C999
P1C1000
P2C1
P2C2
...
P2C998
P2C999
P2C1000
P3C1
P3C2
P3C4
The list should have no bottom limit, allowing as many entries as possible.
What is the best way to do this?
Any help would be greatly appreciated!
Hi!
If I got you right, the formula below will help you with your task:
="P"&CEILING(SEQUENCE(4500,1,1,1)/1000,1)& "C" &TRUNC(MOD((SEQUENCE(4500,1,1,1)-1)/1,1000)+1)
what would be the best formula to get gaps on this sequence
220-0007
220-0009
221-0001
223-0001
223-0002
223-0004
to return the exact missing numbers
i.e 220-0008 & 223-0003 are missing.
what would be the best formula to get gaps on this sequence
220-0007
220-0009
221-0001
223-0001
223-0002
223-0004
to return the exact missing numbers
i.e 220-0008 & 223-0003 are missing.
Hello!
Write in another table the sequence that you think is correct. Then compare these columns using the Compare Tables tool.
There is no pattern in your data, so I cannot suggest a formula.
Hello Sir,
Thanks for your help in advance. Every time a record is added to excel I have to generate a sequence number automatically. Sequence=Stage.Phase.Next Number - Can you please help how to do this in excel.
Stage Phase Sequence
1 1 1.1.1
1 1 1.1.2
1 2 1.2.1
2 2 2.2.1
2 3 2.3.1
2 3 2.3.2
Hi!
I don't see any pattern in your data. If it exists, please describe it.
Pattern is Stage.Phase.Next Incremental number in that Stage.Phase
Stage.......Phase.......Sequence
1000...........1..............1000.1.1
1000...........1..............1000.1.2
1000...........1..............1000.1.3
2000...........2..............2000.2.1
2000...........2..............2000.2.2
1000...........2..............1000.2.1
1000...........2..............1000.2.2
Hope it makes sense...thank you!
I did it successfully using COUNTIF. Thank you for your time!
Correction to previous post -
The format for both methods in my first post got off-alignment when I submitted.
Here is my attempt to correct the formatting of the 2 methods so that it's readable (I hope it doesn't get messed up again).
Method 1
========
Tab Cell E1
==== ========
01 01-Jan-2022
02 =('01'!E1+1)
03 =('02'!E1+1)
04 =('03'!E1+1)
05 =('04'!E1+1)
Method 2
========
Tab Cell E1
==== ========
01 01-Jan-2022
02 =('01'!E1+1)
03 =('01'!E1+2)
04 =('01'!E1+3)
05 =('01'!E1+4)
I was searching Google for a better way to do the following and your website popped up. I hope you can help and that it’s not something that can’t be done.
I have a workbook for each month with either 28,30 or 31 tabs/sheets – one for each day depending on the month.
I have a date field in the same cell (E1) for each tab - date format is dd-mmm-yyyy.
I would like the same formula for cell E1 in each tab that increments the date without me having to edit the formula in cell E1 in each tab to change the tab name (Method 1) or increment number (Method 2) to point to the previous tab and add the increment number.
I have the following 2 formulae that works but I have to change each tab (from tab ‘02’ onwards) to either point to the previous tab name and add 1 or add an increasing increment number to tab name ‘01’. Is there a way to specify the previous tab without having to actually name it – ie. is there a variable name that represents the previous tab ? Here is what currently works, but to me is a bit clumsy.
Thanks, in advance, for any suggestions.
Method 1
Tab Name Cell E1
======== ==========
01 01-Jan-2022
02 =('01'!E1+1)
03 =('02'!E1+1)
04 =('03'!E1+1)
05 =('04'!E1+1)
etc etc
Method 2 - it also works if I do this :
Tab Name Cell E1
======== ===========
01 01-Jan-2022
02 =('01'!E1+1)
03 =('01'!E1+2)
04 =('01'!E1+3)
05 =('01'!E1+4)
etc etc
Method 1
Tab Name . . . . Cell E1
======== . . . . ===========
01 . . . . . . . . 01-Jan-2022
02 . . . . . . . . =('01'!E1+1)
03 . . . . . . . . =('02'!E1+1)
04 . . . . . . . . =('03'!E1+1)
05 . . . . . . . . =('04'!E1+1)
etc . . . . . . . . etc
Method 2 - it also works if I do this :
Tab Name . . . . Cell E1
======== . . . . ===========
01 . . . . . . . . 01-Jan-2022
02 . . . . . . . . =('01'!E1+1)
03 . . . . . . . . =('01'!E1+2)
04 . . . . . . . . =('01'!E1+3)
05 . . . . . . . . =('01'!E1+4)
etc . . . . . . . . etc
Hello!
You can only get the name of the previous worksheet using a VBA macro. Regular Excel formulas can only get the name of the sheet where the cell is located:
=MID(CELL("filename",Sheet1!A2),SEARCH("]",CELL("filename",Sheet1!A2))+1,31)
Hi, is it possible to arrange the sequence formula to add number until the end of the table and automatically add a number if the table row range is extended?
Hello!
In the first argument of the SEQUENCE function, you can use the COUNTA function, which will count the number of rows with data in the table. When adding. data in column A, the SEQUENCE function will add one more value.
=SEQUENCE(COUNTA(A:A),1,1,1)
I hope my advice will help you solve your task.
I am attempting to create a series of mobile numbers. The first four digits and final two digits should not change.
Example:
567-000-042
567-000-142
567-000-242
567-000-343
The series should create a list of all possible combinations from 567-000-042 to 567-999-942 (only the 4th-7th digits will change. The first 3 digits and final two digits should not change.) Thank you.
Hello!
Use the TEXT function to write the number in the desired format.
="567-"&TEXT(CEILING(SEQUENCE(1000,1,0,1),1),"000-0")&"42"
I hope my advice will help you solve your task.
Hi there,
I need to create a sequential list of barcode numbes - 20 digits, the first two digits being "00"
What do i need to do to the formula to make that come out, without getting rid of the two "00" at the front of the number
Hello!
To have a number start with "00", save number as text. You can use the & operator to do this:
"00" & 123456
I hope it’ll be helpful.
HELLO SIR
EMP ID Generate :- NAME WITH NUMBER
PRAKASH P0001
PRATIK P0002
POOJA P0003
I don't know how I can.
Hi!
Pay attention to this comment.
I hope it’ll be helpful.
How do I write a formula to have 0 to 9 followed by A to Z in a sequence and then to be copied to let's say copied to 180 rows?
0
1
2
3
4
5
6
7
8
9
0
A
B
C
etc..
I want to create following sequence
01-01-21
01-01-21
01-01-21
02-01-21
02-01-21
02-01-21
03-01-21
03-01-21
01-01-21
and so on
i need to create chart,
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
leave a blank and then generate
21 22 23 24 25
26 27 28 29 30
31 32 33 34 35
36 37 38 39 40
blank cell
41 42 43 44 45
46 47 48 49 50
51 52 53 54 55
56 57 58 59 60
suggest pls
Hello,
I have a question regarding the "n" in the SEQUENCE Function.
Can it be unknown?
From a table, I would like the formula to list all the data that are above 13%. I can do this using the INDEX, SORT and FILTER functions. But I do not know how many people will be above 13%. Is there a solution to this?
My formula is as per the below:
=INDEX(SORT(FILTER(Master!F4:AC248,Master!AC4:AC248>=13%),24,-1),SEQUENCE(20),{1,24})
Thanks,
Matt
Hello!
In the SEQUENCE function, specify the maximum number of values (for example, 245). To ignore errors, use the IFERROR function.
=IFERROR(INDEX(SORT(FILTER(Master!F4:AC248,Master!AC4:AC248>=13%),24,-1),SEQUENCE(245),{1,24}),"")
Hope this is what you need.
Hi Alexander,
Thank you for taking the time to reply and apologies for the delay of my answer.
Unfortunately this does not work for me so had to change the formula to the below:
=INDEX(SORT(FILTER(Master!B4:AC243,(Master!S4:S243="GBP")*(Master!M4:M243=""),"No results"),28,-1),SEQUENCE(20),{5,28})
So what this does is giving me the 20 top percentages. But only 8 of them are above 13%.
How can I make sure that with this formula, it removes the percentages that are under 13%?
(if this is possible).
Thanks,
Matt
Hi!
Without seeing your data it is difficult to give you any advice.
If you are fetching data from column AC, add a filter condition to the formula:
FILTER(Master!B4:AC243,(Master!S4:S243=”GBP”)*(Master!M4:M243=””)*(Master!AC4:AC243>13%),”No results”)
I hope I answered your question.
Hi Alexander,
Works a treat! Thank you so much!
Matt
I want to enter the following in the column , so kindly help me out:
A1 : 0-1
A2 : 1-2
A3 : 2-3
and so on.
whereas A1, A2, A3 are the address of the Column and the numerics are the value to be entered.
Hello
I would like to have this numbering sequence:
01-G
02-G
03-G
Thanks in advance for the help
Hello!
You can use this formula:
=TEXT(SEQUENCE(10,1,1,1),"00")&"-G"
Add text to the sequence of numbers using the & operator.
Hi Sir,
I would like to make following sequence, which would be changing based on names in other column. The number of rows with the same name is random - sometimes 5 rows, sometimes 1 row:
2021-1000 John
2021-1000 John
2021-1000 John
2021-1001 Tim
2021-1001 Tim
2021-1001 Tim
2021-1002 James
2021-1002 James
2021-1003 Michael
I would appreciate your help.
Hi!
What you want to do is not sequence. This is a random number of duplicates. I'm really sorry, looks like this is not possible with the standard Excel options.
Hello, I am trying to make a SEQUENCE based on the text in the cell next to it.
Column B can be either IC, IG, IB, or any other 2 letter
Column C is a number list 21001 21002 21003 and so on.
However the number can repeat based on the letters in Column B. So I need the sequence to be based on the next available number that relates to the letters in column B.
I hope that make sense
Hello!
To make a sequence of numbers with a condition, use the formula
=21000+COUNTIF($B$2:B2,B2)
Hope I understood the problem correctly.
It did work thank you. Now if I can get my co workers to stop skipping number
Hello I had a follow up on this. I changed the formula a little to exclude texts from the count so it looks like this now.
=21000+COUNTIFS('2022'!$D$3:D3,D3,'2022'!$K$3:K3,"CO",'2022'!$K$3:K3,"NCCO")+1
My problem is when I go to the next cell the is jumps numbers equal to how many cells are used
EX.
=21000+COUNTIFS('2022'!$D$3:D5,D4,'2022'!$K$3:K5,"CO",'2022'!$K$3:K5,"NCCO")+1
=21000+COUNTIFS('2022'!$D$3:D7,D5,'2022'!$K$3:K7,"CO",'2022'!$K$3:K7,"NCCO")+1
=21000+COUNTIFS('2022'!$D$3:D9,D6,'2022'!$K$3:K9,"CO",'2022'!$K$3:K9,"NCCO")+1
^ ^ ^
I put arrows where the numbers jump. Why would it do that and not follow the order? I can not seem to stop this.
I am constantly having to create numbering sequences that look like this:
100 000001
100 000002
three numbers, space and then 6 numbers with only the last 6 numbers increasing. What would be the formula to achieve that?
Thanks
Hi!
You can use a custom number format to repeat zeros.
Use the TEXT function to display a number in this custom format.
="100 " & TEXT(SEQUENCE(100,,1,1),"*00000##")
Hope this is what you need.
I am in need of a way to have a number increase by one each day for a production report. Example
4 departments in separate columns. Above each heading is the number of days worked. Is there a way increase those days by 1 automatically each day?
Thanks in advance!
Is there a way to sequence numbers if the numbers look like this------
PI-2021-07-0480
PI-2021-07-0481
Please advise -
Dawn
Hi,
what if I have number series like
[1,2,3,4,5], [11,12,13,14,15], [21,22,23,24,25] and so on in one column until some hundred,
is there any way to do this?
thank you!
Good Day
We would like to have the following data on a separate line for a raffle draw. They unfortunately did the numbering as :
31100-31127
32656-32697
34729-34750
90784-90828
92159-92198
333-336
851-856
116-119
867-858
859
2070-2079
2709-2713
2569-2573
337-340
341-343
860
861-861
Is there a way to have them in one column in order?
Hi!
I'm really sorry, we cannot help you with this.
Hello,
I suggest a helper column in column B with this formula (and copy down):
=IF(ISNUMBER(A1),A1,VALUE(LEFT(A1,FIND("-",A1)-1)))
Then in cell C1, have a sort formula =SORT(A1:B1000,2)
Hope this solves the problem.
André
Hello sir, how about sequence with text in rows, like:
var 1 var 2 var 3
And so on.
Thank you for your help
Hello!
Please re-check the article above since it covers your task. The SEQUENCE function works on a row as well.
I've tried
="var "&SEQUENCE(1,50,1,1)
But it doesn't work
Hi!
It works for me. What doesn't work for you? SEQUENCE function available in Microsoft Excel 365.
how about
KD1-20
KD21-40
KD41-60
and so on.
tnx
Hi!
Try the following formula:
="KD"&CEILING(SEQUENCE(100,1,1,20)/1,1)&"-"&CEILING(SEQUENCE(100,1,1,20)/1,1)+19
i forgot something formula for
1kd 1 - 20
2kd 21 - 40
3kd 41 - 60
4kd 61 - 80
thank u sir godbless
Hello Sr
how can I do a sequence of rows every 8 repetitive number, every 8 rows same number, then the next one 8 times, etc. Example: the patern is same number 8 rows or 8 times, then next number ther 8 rows or times:
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
2
3
3
3
3
3
3
3
3
thank you
Hello!
Please use the following formula
=CEILING(SEQUENCE(800,1,1,1)/8,1)
Thanks
thank you
I am currently stuck on a problem while creating an MLB pitching model. I would like to distribute the number of batters faced across the 9 positions in a batting order. Lets say a pitcher faces 23 batters during his out outing I would like to distribute that across the 9 batting order spots in sequential order. In doing this manually I know the pitcher would face the first 5 batters 3 times and the 6-9th batter 2 times. How can I create a running tally that distributes those 23 batters across the 9 batting order spots -- more simply put how can I tally the number 23 across 9 cells in sequential order? Thank you in advance if you can solve this riddle!
I want to generate the following pattern in excel cells. Would it be possible
0000000000
1000000000
1100000000
1110000000
1111000000
....
I want to generate this kind of number but I am having difficulty. Anyone can help me?
=VLOOKUP(G2,O2:P23,2,FALSE)
=VLOOKUP(G3,O2:P23,2,FALSE)
=VLOOKUP(G4,O2:P23,2,FALSE)
=VLOOKUP(G5,O2:P23,2,FALSE)
=VLOOKUP(G6,O2:P23,2,FALSE)
=VLOOKUP(G7,O2:P23,2,FALSE)
=VLOOKUP(G8,O2:P23,2,FALSE)
=VLOOKUP(G9,O2:P23,2,FALSE)
=VLOOKUP(G10,O2:P23,2,FALSE)
The G Is the one only rising. Thank you to anyone who can help.
Hi!
When you copy the formula down the column, G2 will change to G3, G4, and so on.
Hi,
1 have 5 digits number, for example 01234, from that number I want to generate 2 digits number for all the possible sequence, so 00, 01, 02, 03, 04, 10, 11, 12, 13, 14, 20, 21,... and so forth.
Any way to do this? TYIA
would it be possible to sequence numbers but end on the number that is in the next column.
example:
1 6
2 6
3 6
4 6
5 6
6 6
1 3
2 3
3 3
1 5
2 5
We are using the info for a data merge for bundles. so the outcome would be "Bundle 1 of 6"
Thank you
Hello!
You have not written what is the source data. I am assuming column B. Perhaps this formula will work -
=COUNTIF($B$1:B1,B1)
After that you can copy this formula down along the column.
If this is not what you wanted, please describe the problem in more detail.
Sorry, Can you tell I don't know what I'm doing?
I was able to plug this in and worked. But I do see when I scroll down and some of the "bundles" are combined together and then go back to correct sequence. what could cause this?
example: Source is column B.
1 8
2 8
3 8
4 8
5 8
6 8
7 8
8 8
8 7
9 7
10 7
11 7
12 7
13 7
14 7
1 9
2 9
3 9...
Hello!
What formula are you using?
The formula used was =COUNTIF($B$1:B1,B1)
After some testing I realized that the repeating bundles would start from the previous similar bundles. see below.
example:
1 5
2 5
3 5
4 5
5 5
1 7
2 7
3 7
4 7
5 7
6 7
7 7
6 5
7 5
8 5
9 5
10 5