+ Reply to Thread
Results 1 to 23 of 23

Excel cost us few thousands dollar for changing SKUs to dates

  1. #1
    Registered User
    Join Date
    12-07-2021
    Location
    Los Angeles
    MS-Off Ver
    Latest
    Posts
    8

    Angry Excel cost us few thousands dollar for changing SKUs to dates

    It often happens that SKUs are similar to data, sometimes even a number like this 3-3231 is treated as date in excel and excel magically decides to change it to 31-Mar.



    Now I do understand the whole changing numbers to text or adding the ` sign to force numbers not to change to date, I want to have a way completely turning off auto-decisions excel makes. This issue has cost of a lot of money because it does not prompt for a auto conversion it just does it without even applying any edit to that particular cell. Literally when I open excel it goes through my file and changes whatever close to a date to a date.



    I have looked all over web to find an answer but they all require me to apply a layer on what's already there but I want the default setting of my workspace be that nothing changes automatically. Excel date conversion literally makes no sense and is not helping at all not to mention it has cost us thousands of dollar trying to fix the imported SKUs that looks like date in our system.



    Adding ` to the sheet before the number is just another useless solution because we don't want our SKU have ` in the beginning. and changing numbers to text is not an option because we do a lot of filters and pre-fix and post-fix of our own to the SKU and in the process it keeps changing to number or I need them to be number and not text at all.



    Please advise with a working solution that turns this "feature" off.
    Last edited by aliplumb; 12-08-2021 at 03:20 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    From the horse's mouth: https://support.microsoft.com/en-us/...4-72cec11c4ed8

    Microsoft Excel is preprogrammed to make it easier to enter dates. For example, 12/2 changes to 2-Dec. This is very frustrating when you enter something that you don't want changed to a date. Unfortunately there is no way to turn this off. But there are ways to get around it.

    Preformat the cells you want to enter numbers into as Text. This way Excel will not try to change what you enter into dates.

    If you only have a few numbers to enter, you can stop Excel from changing them into dates by entering:

    A space before you enter a number. The space remains in the cell after you press Enter. (See Notes)

    An apostrophe (‘) before you enter a number, such as ’11-53 or ‘1/47. The apostrophe isn’t displayed in the cell after you press Enter.

    A zero and a space before you enter a fraction such as 1/2 or 3/4 so that they don’t change to 2-Jan or 4-Mar, for example. Type 0 1/2 or 0 3/4. The zero doesn’t remain in the cell after you press Enter, and the cell becomes the Fraction number type.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    Quote Originally Posted by aliplumb View Post
    Literally when I open excel it goes through my file and changes whatever close to a date to a date.
    I have never once in 30 years of using Excel seen pre-existing data changed automatically to dates upon opening a file.

    Microsoft says you can't simply turn it off. The alternatives they provide are ones you have rejected.

    Formatting cells that will contains SKUs as Text is your best option. The cell will continue to be Text no matter what you do as far as filters, prefix and postfix. You can create a template that is preformatted with the desired columns/rows as Text to make the process easier.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    12-07-2021
    Location
    Los Angeles
    MS-Off Ver
    Latest
    Posts
    8

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    Like I said I have tried to apply those methods but they keep changing back because we need to keep these SKU as numbers and add options so the SKU from 3-3211 becomes 3-3211-26 and 3-3211-29 and 3-3211-30 and so on. This way we create options for the products.
    Perhaps in your 30 years of working with excel you didn't come across this issue of SKUs with that format.

    If I concatinate a number to a text it will turn the result to number again and to date from there. I just need the number to stay number and not text. It's so odd that such a well-known program can't comprehend this

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    Not sure how you get what you get. Concatenating cells, however you do it, should give you a Text output.

    3-3211 Cell formatted as text (A1)

    3-3211-29 =A1&-29
    3-3211-29 =CONCATENATE(A1,-29)

    3-3211 Cell formatted as text (A6)
    -29 Cell formatted as General (A7)

    3-3211-29 =A6&A7
    3-3211-29 =CONCATENATE(A6,A7)

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    Quote Originally Posted by aliplumb View Post
    Like I said I have tried to apply those methods but they keep changing back because we need to keep these SKU as numbers and add options so the SKU from 3-3211 becomes 3-3211-26 and 3-3211-29 and 3-3211-30 and so on. This way we create options for the products.
    Excel will never change data to a date when entered into a cell that is formatted as Text. I am trying to get that to happen using the examples you show here and it is never changing it back from Text to a date.

    the SKU from 3-3211 becomes 3-3211-26
    How do you make this change? Edit the cell? VBA? Paste? I just can't reproduce the behavior you are describing once I format a cell as Text.

    Perhaps in your 30 years of working with excel you didn't come across this issue of SKUs with that format.
    Sure I have. But I have never seen data that was correct when a file was closed spontaneously change just because the file is opened again, unless it is directly linked to an external file.

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    I sympathize with you. An application I used at work (and was, fortunately, one of the administrators for) had certain severity ranges that were coded, and one of them was 10-13. Every time I downloaded the data for import into an access database, the first step was the output of a xlsx file. In that file EVERY TIME the 10-13 was changed to a date of october 13 of whatever year it was. Since I had administrator privileges to the application I went into it and added ' to the 10-13 so it never changed the 10-13 to a date in the xlsx download again. It always only changed that cell to a date until I added that, all the other severities in that column stayed as general.

    So the only thought I can add to this is if you can get to the administrators of the application to add the ' to all the SKUs your problem should be solved.
    Last edited by Sam Capricci; 12-08-2021 at 06:48 AM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  8. #8
    Registered User
    Join Date
    12-07-2021
    Location
    Los Angeles
    MS-Off Ver
    Latest
    Posts
    8

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    Sorry if I am not clear. This is how I do it: Take the following in a excel sheet and try removing prefixes such as NB- and B- and see what happens:
    Even after you turn them to text and run formula like find and replace with empty string, it turns them to number and then dates.


    NB-3-3286
    NB-3-3286/01
    NB-3-3286/034
    NB-3-3286/03N
    NB-3-3286/04
    NB-3-3286/06
    NB-3-3286/07

  9. #9
    Registered User
    Join Date
    12-07-2021
    Location
    Los Angeles
    MS-Off Ver
    Latest
    Posts
    8

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    Admin access and changing the core is something I need. But I can not apply it to a 170K products like that. And that's just one import.
    Thank you for your response though however I need admin access to remove the useless feature of excel turning any number to date.

  10. #10
    Registered User
    Join Date
    12-07-2021
    Location
    Los Angeles
    MS-Off Ver
    Latest
    Posts
    8

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    Quote Originally Posted by 6stringjazzer View Post
    excel will never change data to a date when entered into a cell that is formatted as text. I am trying to get that to happen using the examples you show here and it is never changing it back from text to a date.

    How do you make this change? Edit the cell? Vba? Paste? I just can't reproduce the behavior you are describing once i format a cell as text.

    Sure i have. But i have never seen data that was correct when a file was closed spontaneously change just because the file is opened again, unless it is directly linked to an external file.


    Sorry if I am not clear. This is how I do it: Take the following in a excel sheet and try removing prefixes such as NB- and B- and see what happens:
    Even after you turn them to text and run formula like find and replace with empty string, it turns them to number and then dates.


    NB-3-3286
    NB-3-3286/01
    NB-3-3286/034
    NB-3-3286/03N
    NB-3-3286/04
    NB-3-3286/06
    NB-3-3286/07

  11. #11
    Registered User
    Join Date
    12-07-2021
    Location
    Los Angeles
    MS-Off Ver
    Latest
    Posts
    8

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    Quote Originally Posted by TMS View Post
    Not sure how you get what you get. Concatenating cells, however you do it, should give you a Text output.

    3-3211 Cell formatted as text (A1)

    3-3211-29 =A1&-29
    3-3211-29 =CONCATENATE(A1,-29)

    3-3211 Cell formatted as text (A6)
    -29 Cell formatted as General (A7)

    3-3211-29 =A6&A7
    3-3211-29 =CONCATENATE(A6,A7)
    Sorry if I am not clear. This is how I do it: Take the following in a excel sheet and try removing prefixes such as NB- and B- and see what happens:
    Even after you turn them to text and run formula like find and replace with empty string, it turns them to number and then dates.


    NB-3-3286
    NB-3-3286/01
    NB-3-3286/034
    NB-3-3286/03N
    NB-3-3286/04
    NB-3-3286/06
    NB-3-3286/07

  12. #12
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,602

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    "...And that's just one import. ..."
    Are you importing csv/txt files? Are the sku's in specific columns or, are they embedded in text strings?
    Ben Van Johnson

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    OK, in testing, if you use a Global Replace to remove "NB-", only the first of those examples will produce a date. In this case, 01/03/3286, with a custom format displaying ad Mar-86. This happens regardless of whether the cell is formatted as General or Text.

    Formulae such as =SUBSTITUTE(A2, "NB-", "") and =RIGHT(D2, LEN(D2)-3) will remove the "NB-" and output text. The cell would need to be formatted as General.

    This short VBA subroutine will add a single quote to the beginning of each value in column A. You cann then do a Global Replace or individually edit each cell to remove the "NB-". Note that deleting the single quote with the "NB-" will put you back to square 1.

    Please Login or Register  to view this content.

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    ... however I need admin access to remove the useless feature of excel turning any number to date.
    There is no feature you can turn off. I refer you back to post #2:

    Microsoft Excel is preprogrammed to make it easier to enter dates. For example, 12/2 changes to 2-Dec. This is very frustrating when you enter something that you don't want changed to a date. Unfortunately there is no way to turn this off. But there are ways to get around it.

  15. #15
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    Quote Originally Posted by aliplumb View Post
    find and replace
    I owe you apology, you are correct. I had not tried anything like this. If I enter

    NB-3-3286

    into a cell and format the cell as Text, then

    Find: NB-
    Replace with: < null string >

    it changes the cell format from Text to Custom and changes the data to the date 3/1/3286.

    This does not happen if I change the cell manually.

    However, this is a deeply embedded "feature" of Excel and there is no user-controlled setting that you can turn off. We might be able to provide a solution with more information on how you import this data.

  16. #16
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    This should be quicker with large volumes:

    Please Login or Register  to view this content.

  17. #17
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    given your example, the best way to clean up the data would be to use a formula like this to remove everything before and including the first hyphen, and after and including the first forward slash (if there is one):

    Please Login or Register  to view this content.
    or this which returns the first 6 characters after the first 3 characters:
    Please Login or Register  to view this content.
    Last edited by janmorris; 12-08-2021 at 04:42 PM.

  18. #18
    Registered User
    Join Date
    12-07-2021
    Location
    Los Angeles
    MS-Off Ver
    Latest
    Posts
    8

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    Quote Originally Posted by TMS View Post
    OK, in testing, if you use a Global Replace to remove "NB-", only the first of those examples will produce a date. In this case, 01/03/3286, with a custom format displaying ad Mar-86. This happens regardless of whether the cell is formatted as General or Text.

    Formulae such as =SUBSTITUTE(A2, "NB-", "") and =RIGHT(D2, LEN(D2)-3) will remove the "NB-" and output text. The cell would need to be formatted as General.

    This short VBA subroutine will add a single quote to the beginning of each value in column A. You cann then do a Global Replace or individually edit each cell to remove the "NB-". Note that deleting the single quote with the "NB-" will put you back to square 1.

    Please Login or Register  to view this content.
    Is there a way to replay A2 with a multiple selection in your formula? The one that changed to date, those are the parent SKU and the rest are variants of a product. and I have 170k Parent SKU

  19. #19
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    Is there a way to replay A2 with a multiple selection in your formula? The one that changed to date, those are the parent SKU and the rest are variants of a product. and I have 170k Parent SKU
    I don't understand what you mean. You have outlined a problem and have been drip feeding examples.

    Whilst you understand what your data looks like and your processes, we don't. The VBA code is applied to every cell in column A. It adds a single quote to the start of the existing content making it text.

    What you do after that is up to you.

  20. #20
    Registered User
    Join Date
    12-07-2021
    Location
    Los Angeles
    MS-Off Ver
    Latest
    Posts
    8

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    Quote Originally Posted by TMS View Post
    I don't understand what you mean. You have outlined a problem and have been drip feeding examples.

    Whilst you understand what your data looks like and your processes, we don't. The VBA code is applied to every cell in column A. It adds a single quote to the start of the existing content making it text.

    What you do after that is up to you.
    I really appreciate you trying to solve this.

    Again apology for the typo, I typed "replay," I meant replace. So in your formula you are targeting one cell. But I have a 100 thousands of them. All I want to know if I can expand the selection, in case of your formula from A2 to A2:ABC2.

    I wouldn't know the correct format, even in doing so I am not sure how I can target every 5 rows to do the sub function. Cuz my data is products variant so it goes for example

    t shirt (parent)=> red, blue, green etc (children)

    Parent(BECOMING DATE)
    Child
    Child
    Child
    Child

    Parent(BECOMING DATE)
    Child
    Child
    Child
    Child

    and hundred of thousands of these batches. The reason I titled this thread as a cost damage is because we literally weren't even able to find what's changed to date. This is just a very annoying features.

    Something so simple is only solvable by turning off auto dating, I hope Bill Gate consider this as the next update LOL.

  21. #21
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    Now at post #20 and no further forward - see big yellow banner - a worksheet is worth a thousand words (pictures) and will most likely get you a solution from the next poster.
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  22. #22
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    Ok, I've been following this thread since I posted at #7, so it appears you do not yet have it solved.
    So my point in post 7 was if you have access to the source data which you do not.
    but to a similar point, you were saying you use find and replace where you use find "NB-" and replace with nothing.
    I just tried it with your examples and yes with leaving replace blank you get a date, BUT if you put ' in the replace I get 3-3286.
    Can it be as simple as that for you?

  23. #23
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Excel cost us few thousands dollar for changing SKUs to dates

    Something so simple is only solvable by turning off auto dating, I hope Bill Gate consider this as the next update LOL.
    I don't know how to say this another way: that is NOT going to happen.

    All I want to know if I can expand the selection, in case of your formula from A2 to A2:ABC2.
    Short answer: no. The formula would go in a Helper column and can only refer to a single column. That said, it is quite possibly TOTALLY IRRELEVANT. That would be because I have no idea what your process(es) involve, despite the snippets of information you provide.

    Where does the data come from? What format is it in? What does it look like? How does it get into Excel? Is it a single column, or lots of related data? What do you do with it? Is it put in a separate sheet? Or is it tagged onto the end of existing data? What do you do with the data? When, why and how do you edit the data? What variations on a theme do the SKU prefixes have? Do you just get parent records and add child records?

    Why has it cost you thousands of dollars? How could you not notice that the data had become "corrupted"?

    If you provide realistic examples of the data, we might be able to work out how to reverse the corruption. The "corrupt" data entries can be identified as dates (albeit with a custom format). I suspect it is possible to check the entries, format them as full dates and remove the day part.

    All that said, I’m out until we can see some meaningful data and have a full description of what you do with it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Need help with excel formulas to equally divide cost among given dates
    By abhineet.sabharwal in forum Excel General
    Replies: 3
    Last Post: 01-19-2019, 05:28 PM
  2. Need help with excel formulas to equally divide cost among given dates
    By abhineet.sabharwal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-19-2019, 04:03 PM
  3. Replies: 3
    Last Post: 07-01-2016, 11:36 AM
  4. Help with a formula to extract dates from SKUs
    By rickyanalog in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-14-2016, 08:17 PM
  5. Replies: 1
    Last Post: 07-21-2009, 11:31 AM
  6. [SOLVED] Changing the top bar of excel?? Eg. from A to Date, B to cost etc
    By theweazel in forum Excel General
    Replies: 1
    Last Post: 01-26-2006, 08:15 AM
  7. [SOLVED] Changing Dollar sign to another currency not listed in Excel
    By Rehan in forum Excel General
    Replies: 1
    Last Post: 04-12-2005, 12:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1