Auto Number Column Duplicating (2024)

CaraBart28 ✭✭✭✭

12/18/23 in Formulas and Functions

Good Morning,

I have an automation setup for when an individual orders an XL the row duplicates for the Standard size along with the XL.

What I cant figure out is why my auto number duplicates instead of applying the next auto number.

In the screen shot below you will see that the third row is a duplication of the second row however one row is for an XL blood pressure cuff and one is for a standard cuff. I am not able to figure out why the auto-number is duplicating for these instances.

Auto Number Column Duplicating (2)

0 · Share on FacebookShare on Twitter

  • SteyJ ✭✭✭✭✭✭

    12/18/23 edited 12/18/23

    https://community.smartsheet.com/discussion/114513/auto-number-column-duplicating

    Smartsheet only allows for one auto number column. You can essentially create your own custom auto number column with a formula like this:

    =[Order Number]@row + " " + COUNTIF([Order Number]:[Order Number], <> "")

    When a new row is created, it will assign a custom sequential order number, based on the [Order Number].

    The only issue with this, if you have multiple rows being created at the same time, it will calculate their order number as the same (such as automation moving rows into a sheet)

    Sincerely,

    Jacob Stey

    0 · Share on FacebookShare on Twitter

  • CaraBart28 ✭✭✭✭

    12/18/23

    @SteyJ That is actually how it is setup, the "Order Number" is a system auto-number column and the "Master Order Number" column is a formula based column for sequential ordering. I am not able to figure out why the system auto-number column is duplicating the "Order Number"

    0 · Share on FacebookShare on Twitter

  • SteyJ ✭✭✭✭✭✭

    12/18/23

    https://community.smartsheet.com/discussion/comment/410083#Comment_410083

    I see. Try verifying that the Order Number column didn't change to a text/number type, and verify there isn't another column that has changed to auto-number

    Sincerely,

    Jacob Stey

    0 · Share on FacebookShare on Twitter

  • CaraBart28 ✭✭✭✭

    12/18/23

    @SteyJ It is still set as auto-number, the auto-number transfers in from other sheets. There are 9 sheets which transfer into the master sheet, each of them have the auto-number setup and it transfers into the master sheet.

    0 · Share on FacebookShare on Twitter

  • Toufong Vang ✭✭✭✭✭

    12/29/23 edited 12/29/23

    Hi, @CaraBart28 , as you have discovered, an auto number does not change, and is unique only within the sheet that it is created. When setting it up, you can configure a prefix or suffix for the auto-number column. However, doing so changes the "auto-number" to a string and prevents you from using numeric functions directly on the value (e.g., MIN(), MAX(), and others).

    Here's one approach if you have a small, manageable number of rows in the master sheet. It requires minimal changes to your collection of sheets.

    1. Create a Text/Column named Sheet # in all of your 9 source sheets . In the first sheet, place the column formula =1; =2 in the second sheet; =3 in the third sheet; and so on.
    2. Create the Sheet # column in the master sheet, too.
    3. For every row in the master sheet, figure out in which sheet the row was originally created and enter the sheet number into Sheet #. If it is too time consuming, simply ensure that all of the rows with the "duplicate" auto-number have a different number in the Sheet # column.
    4. Place the column formula below into the Master Order # column.
    5. Done!

    Auto Number Column Duplicating (8)

    =IF(AutoNumber@row = MIN(COLLECT(AutoNumber:AutoNumber, AutoNumber:AutoNumber, @cell <> "")), 1, 1 + COUNTIF(AutoNumber:AutoNumber, <AutoNumber@row) + COUNTIFS([Sheet #]:[Sheet #], <[Sheet #]@row, AutoNumber:AutoNumber, =AutoNumber@row))

    Auto Number Column Duplicating (9)

    Auto Number Column Duplicating (10)

    Here's how the formula works...

    If the auto-number for the row is the MIN(), then its master order number is 1. If not, then the master order number is...

    Add 1 to the count of rows with an auto-number less than the current row AND add (the count of rows that have the same auto-number as the current row and whose sheet # is less than that of the current row).

    This approach leverages the fact that other sheets in the collection may create the same number, but each sheet will create that auto-number just once.

    0 · Share on FacebookShare on Twitter

  • Toufong Vang ✭✭✭✭✭

    12/29/23 edited 12/29/23

    =1 + COUNTIF([Date Request form Submitted]:[Date Request form Submitted], <[Date Request form Submitted]@row)

    @CaraBart28 , as it happens, there's an even simpler approach if the column Date Request form Submitted is the Created date column. If it is, then use the formula above.

    No other changes to your sheets are necessary.

    The created date value is a system timestamp, and is granular to the second--maybe millisecond, too. While not displayed in the cell, the second/millisecond granularity allows us to find the order in which the rows were created. That's what the formula above does.

    0 · Share on FacebookShare on Twitter

  • CaraBart28 ✭✭✭✭

    01/04/24

    @Toufong Vang Thank you for your help. I added the above reference formula, however it is still giving duplicate numbers. Please see the screen shot below.

    Auto Number Column Duplicating (13)

    0 · Share on FacebookShare on Twitter

  • Toufong Vang ✭✭✭✭✭

    01/04/24

    @CaraBart28 Wow...that means that those are in fact duplicates OR they happened to be created at exactly the same moment in the system OR the Smartsheet system timestamp is not as granular as is needed by the approach.

    Since using the Created Date alone doesn't work, try the first method of using a helper Sheet # column along with the auto-number column. (First suggestion above--posted on 12/28.)

    0 · Share on FacebookShare on Twitter

  • CaraBart28 ✭✭✭✭

    01/04/24

    @Toufong Vang I am getting the unpears when entering in the formula, i might be missing something?

    =IF(AutoNumber@row = MIN(COLLECT(AutoNumber:AutoNumber, AutoNumber:AutoNumber, @cell <>"")), 1, 1 + COUNTIF(AutoNumber:AutoNumber, <AutoNumber@row) + COUNTIFS([Sheet #]:[Sheet #], <[Sheet #]@row, AutoNumber:AutoNumber, =AutoNumber@row))

    0 · Share on FacebookShare on Twitter

  • Toufong Vang ✭✭✭✭✭

    01/04/24

    @CaraBart28 Hmm...ensure that you have the necessary columns for the formula to work.

    If your auto-number column is not named "AutoNumber", then replace AutoNumber@row and AutoNumber:AutoNumber with the name of the column in your sheet.

    Also, the formula requires a column named Sheet #, and it must have a numeric value.

    Auto Number Column Duplicating (17)

    0 · Share on FacebookShare on Twitter

  • CaraBart28 ✭✭✭✭

    01/05/24

    @Toufong Vang I corrected the formula so that it reflects the column name "Order Number" However I am still not getting a sequential order or numbers.

    Auto Number Column Duplicating (19)

    Auto Number Column Duplicating (20)

    0 · Share on FacebookShare on Twitter

  • Toufong Vang ✭✭✭✭✭

    01/05/24

    @CaraBart28 The first solution requires that each sheet has the column formula ="1" for sheet #1, "=2" for sheet #2, "=3" for sheet #3, and so on. As a result, when the copied rows get transferred into the master sheet, you may have duplicate order numbers, but only one combination of sheet # and order number.

    If your workflow/process permits a row to be routed/moved back to the sheet that originally created the row, then you will need to use the Modified Date column type instead of the "Date Request form Submitted" in the formula for the second solution (post from 12/29/2023).

    Auto Number Column Duplicating (22)

    0 · Share on FacebookShare on Twitter

  • CaraBart28 ✭✭✭✭

    01/18/24

    @Toufong Vang I did try the second route, however, I used data mesh as an automation to load data back into the master sheet and when that happens the modified date for the original and duplicate row are the same so therefor it will not provide me with a unique identifier.

    0 · Share on FacebookShare on Twitter

  • Toufong Vang ✭✭✭✭✭

    01/18/24 edited 01/18/24

    @CaraBart28 I haven't used DataMesh. Instead of copying/duplicating the entire row, will DataMesh allow you to leave a few columns empty (unmapped)? If so, then leave the Created Date and Modified Date timestamps blank; and leave the auto-number column blank, too. When the sheet is refreshed, these fields will be filled-in by Smartsheet, thereby making them different from that of the original row.

    0 · Share on FacebookShare on Twitter

Help Article Resources

Create and edit formulas in Smartsheet
Formula combinations for cross sheet references
Smartsheet functions list

'); $(this).css('min-height', '20px'); const searchBoxRoot = document.getElementById("searchbox"+index); Coveo.initSearchbox( searchBoxRoot, "https://search.smartsheet.com/community/" ); }); $('#titleBar .CoveoSearchbox').hide(); $('.coveoSearchButton').on("click",function(){ $('#titleBar .CoveoSearchbox').toggle(); }); // ====== Front Page Search Box ====== $('#Form_search').remove(); var boxes = ["#search-0", "#search-1", "#search-2", "#search-3", "#search-4", "#search-5"]; console.log("PT: Before search box replacement"); $(boxes).each(function(i, val) { // ====== Front Page Search Box ====== $(val).each(function( index ) { console.log(this); $('#searchbox' + i).remove(); $(this).find('form').remove(); $(this).addClass('fpsearchbox'); $(this).attr('id', 'fpsearchbox' + index); $(this).append('

'); $(this).css('min-height', '20px'); const searchBoxRoot = document.getElementById("fpsearchbox"+index); var action = "https://search.smartsheet.com/community/"; if ( $('body').hasClass('Categories')) { var category=$('h1.heading-1').text(); if (category === "Smartsheet Product Feedback & Ideas") { category = encodeURIComponent(category); Coveo.$(searchBoxRoot).on('buildingQuery', function(e, args) { args.queryBuilder.advancedExpression.addFieldExpression('@communitycategory', '==', [category]); }); action = action + '#&f:@communitycategory=['+category+']'; } } Coveo.initSearchbox( searchBoxRoot, action ); }); }); });

Categories

  • All Categories
  • 14 Welcome to the Community
  • Smartsheet Customer Resources
  • 61.4K Get Help
  • 325 Global Discussions
  • 183 Industry Talk
  • 418 Announcements
  • 14 Community Corner Newsletter
  • 127 Brandfolder
  • 154 Just for fun
  • 124 Community Job Board
  • 26 Member Spotlight
  • 1 SmartStories
  • 278 Events
  • 34 Webinars
  • 7.3K Forum Archives

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Auto Number Column Duplicating (2024)

References

Top Articles
NIKE VALUE STORE Outlet Shop | Designer Outlets Wolfsburg
Nike Factory Vs Nike Clearance: What You Need To Know Before Buying - Shoe Effect
Www.paystubportal.com/7-11 Login
Stretchmark Camouflage Highland Park
Pangphip Application
La connexion à Mon Compte
Pitt Authorized User
Plus Portals Stscg
Craigslist Phoenix Cars By Owner Only
Amateur Lesbian Spanking
Florida (FL) Powerball - Winning Numbers & Results
Erin Kate Dolan Twitter
World History Kazwire
California Department of Public Health
Scholarships | New Mexico State University
Darksteel Plate Deepwoken
TS-Optics ToupTek Color Astro Camera 2600CP Sony IMX571 Sensor D=28.3 mm-TS2600CP
charleston cars & trucks - by owner - craigslist
Chic Lash Boutique Highland Village
ᐅ Bosch Aero Twin A 863 S Scheibenwischer
Jinx Chapter 24: Release Date, Spoilers & Where To Read - OtakuKart
Johnnie Walker Double Black Costco
Minnick Funeral Home West Point Nebraska
Regal Amc Near Me
Dei Ebill
1145 Barnett Drive
Klsports Complex Belmont Photos
Mta Bus Forums
Labcorp.leavepro.com
Craftybase Coupon
Mosley Lane Candles
Bad Business Private Server Commands
Newsday Brains Only
Best Weapons For Psyker Darktide
The Blackening Showtimes Near Regal Edwards Santa Maria & Rpx
Avance Primary Care Morrisville
Gold Nugget at the Golden Nugget
Wisconsin Women's Volleyball Team Leaked Pictures
WorldAccount | Data Protection
1Exquisitetaste
Dinar Detectives Cracking the Code of the Iraqi Dinar Market
Setx Sports
Actor and beloved baritone James Earl Jones dies at 93
Foxxequeen
Noh Buddy
Sechrest Davis Funeral Home High Point Nc
Gon Deer Forum
Tommy Bahama Restaurant Bar & Store The Woodlands Menu
Unblocked Games 6X Snow Rider
Walmart Listings Near Me
Convert Celsius to Kelvin
Texas 4A Baseball
Latest Posts
Article information

Author: Chrissy Homenick

Last Updated:

Views: 6050

Rating: 4.3 / 5 (74 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Chrissy Homenick

Birthday: 2001-10-22

Address: 611 Kuhn Oval, Feltonbury, NY 02783-3818

Phone: +96619177651654

Job: Mining Representative

Hobby: amateur radio, Sculling, Knife making, Gardening, Watching movies, Gunsmithing, Video gaming

Introduction: My name is Chrissy Homenick, I am a tender, funny, determined, tender, glorious, fancy, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.