Hello,
I'm trying to increment using two criteria; Category (Primary #) and Question(Secondary #). Categories will be 1, 2, 3, and the questions
that fall under each category will increment by 0.1 (i.e. 1.1, 1.2,
etc..). I'm using the formula B2+0.1. It works great up until it reaches 1.9, but after that, it jumps to 2. It should display display it as
1.10.
I’ve attached a screenshot to illustrate what I’m trying to do.
One more thing (Sorry lol), I've also noticed that 1.10 will display as
1.1 creating a duplicate. I'll be using these numbers as IDs, so it's important that they're unique..
Thanks in advance for all your help
+-------------------------------------------------------------------+ |Filename: Increment Help.jpg |
|Download: http://www.excelbanter.com/attachment.php?attachmentid=1069| +-------------------------------------------------------------------+
--
ymadi
On Wednesday, August 19, 2020 at 9:49:08 AM UTC-10, ymadi wrote:
Hello,
I'm trying to increment using two criteria; Category (Primary #) and
Question(Secondary #). Categories will be 1, 2, 3, and the questions
that fall under each category will increment by 0.1 (i.e. 1.1, 1.2,
etc..). I'm using the formula B2+0.1. It works great up until it reaches
1.9, but after that, it jumps to 2. It should display display it as
1.10.
I've attached a screenshot to illustrate what I'm trying to do.
One more thing (Sorry lol), I've also noticed that 1.10 will display as
1.1 creating a duplicate. I'll be using these numbers as IDs, so it's
important that they're unique..
Thanks in advance for all your help
Your spreadsheet is calculating correctly based on the data you are inputting. Row 3 in your range already has the 1.1 value you want
returned in Row 12. As you note, there is no difference in the numbers
1.1 and 1.10 so your calc would create a duplicate number anyway. Maybe
you want to work in true hundreths instead of tens: 1.10, 1.11, 1.12,
1.13, 1.14.... 2.10, 2.11, 2.12, 2.13, etc. HTH
Hello,
I'm trying to increment using two criteria; Category (Primary #) and Question(Secondary #). Categories will be 1, 2, 3, and the questions
that fall under each category will increment by 0.1 (i.e. 1.1, 1.2,
etc..). I'm using the formula B2+0.1. It works great up until it reaches 1.9, but after that, it jumps to 2. It should display display it as
1.10.
I’ve attached a screenshot to illustrate what I’m trying to do.
One more thing (Sorry lol), I've also noticed that 1.10 will display as
1.1 creating a duplicate. I'll be using these numbers as IDs, so it's important that they're unique..
Thanks in advance for all your help
+-------------------------------------------------------------------+ |Filename: Increment Help.jpg |
|Download: http://www.excelbanter.com/attachment.php?attachmentid=1069| +-------------------------------------------------------------------+
--
ymadi
Miles Baidack wrote:
On Wednesday, August 19, 2020 at 9:49:08 AM UTC-10, ymadi wrote:
Hello,
I'm trying to increment using two criteria; Category (Primary #) and
Question(Secondary #). Categories will be 1, 2, 3, and the questions
that fall under each category will increment by 0.1 (i.e. 1.1, 1.2,
etc..). I'm using the formula B2+0.1. It works great up until it reaches >> 1.9, but after that, it jumps to 2. It should display display it as
1.10.
I've attached a screenshot to illustrate what I'm trying to do.
One more thing (Sorry lol), I've also noticed that 1.10 will display as
1.1 creating a duplicate. I'll be using these numbers as IDs, so it's
important that they're unique..
Thanks in advance for all your help
Your spreadsheet is calculating correctly based on the data you are inputting. Row 3 in your range already has the 1.1 value you wantYou'll have to treat the data as strings (watch the word wrap):
returned in Row 12. As you note, there is no difference in the numbers
1.1 and 1.10 so your calc would create a duplicate number anyway. Maybe
you want to work in true hundreths instead of tens: 1.10, 1.11, 1.12,
1.13, 1.14.... 2.10, 2.11, 2.12, 2.13, etc. HTH
=IFERROR(LEFT(A1,FIND(".",A1))&MID(A1,FIND(".",A1)+1,LEN(A1)-FIND(".",A1))+ 1,A1)
There's probably better ways to do it, but this works for me.
--
Your mileage may vary. Results not guaranteed.
Warranty void in the United States, England, and the planet Earth.
My solution would be to create a cell for each category number and a cell for each question number, then in the incremented cells use a formula to combine the text in your category and question cells.try 1.09 + 0.01
Where A2 is your category number and B2 is your question number, your formula would read: =A2&"."&B2
Make sure to include the quotations around the period or whatever divider you choose. Also, you can use an absolute reference for your category ($A$2) so you can copy the formula down your column/row.
Using this method you will end up with an extra column or row of data with your category & question numbers but you can choose to hide those cells if you wish.
I hope this helps!
Blythe
On Wednesday, August 19, 2020 at 2:49:08 PM UTC-5, ymadi wrote:
Hello,
I'm trying to increment using two criteria; Category (Primary #) and
Question(Secondary #). Categories will be 1, 2, 3, and the questions
that fall under each category will increment by 0.1 (i.e. 1.1, 1.2,
etc..). I'm using the formula B2+0.1. It works great up until it reaches
1.9, but after that, it jumps to 2. It should display display it as
1.10.
I’ve attached a screenshot to illustrate what I’m trying to do.
One more thing (Sorry lol), I've also noticed that 1.10 will display as
1.1 creating a duplicate. I'll be using these numbers as IDs, so it's
important that they're unique..
Thanks in advance for all your help
+-------------------------------------------------------------------+
|Filename: Increment Help.jpg |
|Download: http://www.excelbanter.com/attachment.php?attachmentid=1069|
+-------------------------------------------------------------------+
--
ymadi
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 40:06:49 |
Calls: | 6,648 |
Files: | 12,193 |
Messages: | 5,329,412 |