+ Reply to Thread
Results 1 to 8 of 8

Possible Programming Flaw in Excel

  1. #1
    Registered User
    Join Date
    11-13-2012
    Location
    Oregon House, California
    MS-Off Ver
    Excel 2010
    Posts
    2

    Possible Programming Flaw in Excel

    Hello! I'm a database guy who recently prepared a rather sophisticated Excel algorithm to handle multi-dimensional analyses for pattern-recognition applications for advanced loyalty programs. A part of this algorithm involved a rather simple matter: typing a column and row ID into a cell, and then dragging it downwards to create a column of 100 cells.

    If you do this, beginning with P1 - for example - the subsequent cells read P2, P3, P4, etc., all the way to the final cell which is P100. And, each subsequent cell is in its proper order, from 1 to 100.

    But amazingly, this does not happen if the starting cell is Q1. Subsequent cells soon lose their consecutive order.

    I currently use Excel 2010. Therefore I checked to see if this program flaw existed also on an old Excel 2003 version - and it did!

    Then I emailed several friends, asking them to check this flaw out on their computers (one friend was from Denmark). Their Excel programs also contained the flaw.

    So now I am reporting this flaw to the rest of you. Please verify it - or not - on your own computer. It's simple to run this test. Hopefully Microsoft will fix it, as it has apparently been around for a long time. For my programs, this would have resulted in huge financial losses to my clients if I had not noticed it.

    Thank you,

    James Kowalick

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Possible Programming Flaw in Excel

    I think what is happening there is that excel is seeing Q1 as quarter1, and then filling in Q1, Q2, Q3, Q4...and then starting over at Q1. so I dont think its exactly a "flaw"
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Possible Programming Flaw in Excel

    hi James Kowalick, welcome to the forum. this is not a flaw. it's actually guessing that you want the quarters 1 to 4. just like if you drag "January" down. if you need Q1 to Q100, try:
    ="Q"&ROW(Q1)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    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,461

    Re: Possible Programming Flaw in Excel

    http://answers.microsoft.com/en-us/o...e-917b97440c3b

    The consensus seems to be that Excel is "recognising" quarters of a year ... being helpful


    Regards, TMS
    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


  5. #5
    Registered User
    Join Date
    11-13-2012
    Location
    Oregon House, California
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Possible Programming Flaw in Excel

    That would be fine, of course, if all the other alpa-numerical combinations which indicate column-row addresses were not used for just that purpose (for matrix calculations in multi-dimensional systems). However, they are used for this and for other purposes, and it just so happens that only one of the columns - column Q - doesn't work or gives different results from all the other columns. At best, this problem represents a contradiction: using column Q for more than one purpose - as determined by the programmers.

    When all other columns or rows act the same for a user who is "dragging" a cell in a certain direction to fill the cells with numbers in sequence -and where only one cell does not behave in this way: I call that poor judgment, if not a programming 'flaw'.

    The number of Excel users who use Excel's Data Analysis package would not be happy to experience this 'contradiction' within their high-end programs, because it could result in appreciable financial loss to them, as it would have for me, had I not noticed the anomaly. Admittedly most Excel users are unaffected by this because they may not use 'dragging cells' in their work. But what about the users who do?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Possible Programming Flaw in Excel

    Actually, I think that lots/most users actually do use the "dragging" method for the method you describe. And although I wont defend a flaw in a top-end application like excel, I still feel that this is not in fact a flaw per se, however it is a "shortcoming: that we as users need to be aware of and make allowances for

    The fact that you identified this is really great and myself, and om sure, others, would like to thank you for bringing this to light

  7. #7
    Registered User
    Join Date
    11-05-2012
    Location
    London Englad
    MS-Off Ver
    Many
    Posts
    22

    Red face Re: Possible Programming Flaw in Excel

    James,

    This drag anomaly has nothing to do with column Q.

    You can type any pair from set (Q1,Q2,Q3,Q4) in any two cells (even non consecutive) and drag in any direction. When dragged, it will cycle in Q1,Q2,Q3,Q4.
    Same behavior will happen for all commonly used abbreviations of Quarter such as with Qtr1, Qtr2 or even full word Quarter.

    As many before have answered, this is a calendar quarter and this is one of the features of Excel for Accounting folks.
    Accounting folks were (and probably still are) primary market for spreadsheets.

    So, Just how do you get Q5 after Q4?
    1) In a Sheet, enter either Q4 Q5, drag it 3 cells up and then again drag Q4,Q5 down!!
    2) Start with Q0, Q1 and drag down.
    3) Use some dummy char such as # between such as Q#1, Q#2 and drag-away!!! Dot (.) or Space in between will not work
    4) Create formula and drag formula
    5) After all this, there may be a configurable setting somewhere.
    Last edited by cdjindia; 11-13-2012 at 04:26 AM.

  8. #8
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Possible Programming Flaw in Excel

    and number 6) put= Q1 in first cell, copy, select range, copy formula...

    just thowing my 2-bits into the fray

    -Edit-
    err..paste formula...lol
    Last edited by dredwolf; 11-13-2012 at 04:32 AM.
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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