+ Reply to Thread
Results 1 to 10 of 10

Data validation formula changes on copying sheet

  1. #1
    Registered User
    Join Date
    08-11-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Data validation formula changes on copying sheet

    Excel Gurus,

    I have run into a very strange problem with excel. I am trying to create an MIS sheet to record the personal financial transactions. There is a "Settings" tab which has the list of categories and sub-categories for the type of incoming & outgoing transactions. In the "Settings" tab itself, I then sort them alphabetically, and then use those lists as drop down menus in "Bank Account" sheets using data validation.

    Now, the strange part is that, whenever I duplicate the "Bank Account" sheet, the data validation changes in the Sub-categories columns (Col G). The formula remains the same, but the list names used in the formula gets replaced with other list names !!! In the attached file, see the difference in the "Sample Bank Account" and "Sample Bank Account(2)" sheets. Both are duplicate, but the data validation is different

    I have no idea why is this happening. Your help is appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Data validation formula changes on copying sheet

    i believe the best recommendation i have on this problem is to start from scratch and NOT make it this complicated.

    that said, the reason you have different values in DV list between Sample Bank Acc and Sample Bank Acc 2 sheets is that the formuale are different:

    G4 in the first tab: =OFFSET(InCatFinalListStart,MATCH(F4,InCatFinalList,0)-1,2,COUNTIF(InCatFinalList,F4),1)

    G4 is the second tab: =OFFSET(InCatListStart,MATCH(F4,InCatListList,0)-1,1,COUNTIF(InCatListList,F4),1)

    and, i am guessing that the reason they are different is that it is humanly impossible to keep track of all the various Names and Lists that there are floating around in that file!
    Last edited by icestationzbra; 08-12-2012 at 12:51 AM. Reason: easy
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  3. #3
    Registered User
    Join Date
    08-11-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Data validation formula changes on copying sheet

    I agree that it is very complex, and it is "humanly" not possible, but once the "Bank Account" sheet is made the right way, excel (which is a machine, not human) should be able to copy the DV as it is when I just copy the sheet.

    The difference in the list names in the two DV lists is generated by excel, not by me. You can try copying the "Bank Account" sheet and see the magic for yourself

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data validation formula changes on copying sheet

    It may be a "version" thing. I deleted you (2) sheet and made copies myself and didn't see any changes to the DV from the original sheet to any of the duplicate sheets.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    08-11-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Data validation formula changes on copying sheet

    Both the new copied sheets in the file you attached have different DV list in the G-col. The formula is same as original, but the list names have been changed. Can you please check the G-col of your file again.

    I have tried this with 2007 and 2010 as well. Both give the same problem.

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Data validation formula changes on copying sheet

    Interestingly, making a copy of the copy 'Sample Bank Account(2)' gives the correct validation list.

    Just like two wrongs making a right?
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data validation formula changes on copying sheet

    My apologies, you're right. How truly odd?

    Ace is right, making copies of copies seems to swap the name references back and forth. Very odd! Can't say I know why that is, but since you know it's happening, I saw the same behavior when I copied column G from one sheet to the next using PasteSpecial>Validation.

  8. #8
    Registered User
    Join Date
    08-11-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Data validation formula changes on copying sheet

    Even I realized that copying again solves the problem. But that is not the solution

    The real question is "WHY" is this happening ??

  9. #9
    Registered User
    Join Date
    08-11-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Data validation formula changes on copying sheet

    I tried changing the names of the lists. Nothing works

  10. #10
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Data validation formula changes on copying sheet

    my apologies, kaustubh. it was past midnight here and i should have just hit the bed instead of peeling my eyelids hoping to crank out one last thing. i did not realise the "copy" bit was sabotaging formulae. if it has @jb stumped, i am but a mere mortal.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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