+ Reply to Thread
Results 1 to 16 of 16

OFFSET DV List stops working on each close and open of the workbook

  1. #1
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Question OFFSET DV List stops working on each close and open of the workbook

    It's not a huge issue but I was wondering if anyone else has come across this happening and if you found a solution for it.

    I'm using Excel 2016 and have a data validation list with an OFFSET formula in E9 that provides the selections based on the values chosen from two DV lists before it.

    OFFSET(ProjectRequests_ProjectName,MATCH(C9&D9,ProjectRequests_ForYearCol&ProjectRequests_ForPropertyCol,0)-1,0,COUNTIFS(ProjectRequests_ForYearCol,C9,ProjectRequests_ForPropertyCol,D9),1)

    It works great and finds exactly what it needs to without fail. However, when I close the workbook and then open it again it acts as if the formula doesn't work or there is no data in the previous cells referenced until I unlock the sheet, open the DV list and click OK. At which point, it works great again until the next time I close and open it.

    Weird thing is I have a few other dependent DV lists setup nearly the same other than multiple COUNTIFS criteria and they have no issues...

    Is there something wrong with my COUNTIFS syntax? Or, possibly do I have an obscure excel setting that might be causing it?

    If you have any ideas you can pass along, thank you.
    -------------
    Tony

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: OFFSET DV List stops working on each close and open of the workbook

    It sounds a bit like you have the manual calculation set. Does F9 also resolve the issue?

    I hope this helps, please let me know!

    Regards,

    David

    If this has been helpful
    - Please click on the *Add Reputation button at the bottom left.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  3. #3
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: OFFSET DV List stops working on each close and open of the workbook

    Hi David,

    Thanks for the suggestion. I checked and F9 makes no difference. Also checked the setting in options and workbook calculation is set to automatic. I'm stumped. Never had one do this.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: OFFSET DV List stops working on each close and open of the workbook

    Maybe copy your OFFSET(....) out of DV into new blank cell, DV has result, OFFSET(...) has result, save, close, open and what will happen?
    It's only idea about what is not calculated, DV or OFFSET(...)

  5. #5
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: OFFSET DV List stops working on each close and open of the workbook

    Hi Sandy,

    Thanks for the suggestion. Neither are calculated; DV or cell formula.

    I will try to trim this workbook down today and post an example workbook. Maybe in doing so, I'll find the problem.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: OFFSET DV List stops working on each close and open of the workbook

    Will be fine if you do that

  7. #7
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: OFFSET DV List stops working on each close and open of the workbook

    Hi Sandy,

    As promised, an example workbook. It's still doing the same thing when closed and opened on that DV List. Really, for the DV List problem, it only needs the 2 Project related sheets but, I included other sheets too, mostly for the Vendor related dependent DV lists so you could see they calculate fine.

    Let me know if you have any questions.

    Thanks again for having a look.
    Attached Files Attached Files

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: OFFSET DV List stops working on each close and open of the workbook

    I'm still lookin'

    I found few errors with #REF but....

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: OFFSET DV List stops working on each close and open of the workbook

    I think you need edit all DV lists and remove check mark from Ignore blank.
    I did it and it works. (except of others errors )

    WRONG
    Analyse workbook by INQUIRY tab and all dependencies of DV lists.
    Last edited by sandy666; 01-28-2017 at 05:27 PM.

  10. #10
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: OFFSET DV List stops working on each close and open of the workbook

    I ran the workbook analysis with cells with dependents and for validation criteria. I don't see anything bad reported... It listed the OFFSET formulas for those DV lists but, nothing saying "hey we have a problem".

    I've never used the Inquiry tab. Didn't even know it was available. Am I just not seeing something in the output file?

  11. #11
    Registered User
    Join Date
    07-08-2016
    Location
    USA
    MS-Off Ver
    Office 365, Office 2016 for PC & Mac, Office 2013, Office 2011 Mac
    Posts
    80

    Re: OFFSET DV List stops working on each close and open of the workbook

    Hi BeachRock

    On the ProjectEstimates sheet, put your current data validation formula in E9 into a named formula. Then put the new named formula into the data valuation source.

    I am still looking at the other sheet.

    DMG

  12. #12
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: OFFSET DV List stops working on each close and open of the workbook

    INQUIRY
    Copy formula from not-working DV into blank cell, confirm Control+Shift+Enter, save and try INQUIRY relationship

    for now I got: DV don't like MATCH() with coop. to OFFSET().
    What can be used for row number insted of MATCH() ?

    In fresh new workbook, your construction (OFFSET etc...) in DV doesn't work

    If I change MATCH(...) to e.g. 3, save, close, open, DV works well

    =OFFSET(J10:J16,4-1,0,SUMPRODUCT((E10:E16=H2)*(H10:H16=J2)),1) =Ok.

    MATCH($H$2&$J$2,E10:E16&H10:H16,0) = 4

    I changed COUNTIFS to SUMPRODUCT to eliminate steps of errors

    (ranges are not suitable to your example )
    Last edited by sandy666; 01-28-2017 at 09:35 PM. Reason: typo

  13. #13
    Registered User
    Join Date
    07-08-2016
    Location
    USA
    MS-Off Ver
    Office 365, Office 2016 for PC & Mac, Office 2013, Office 2011 Mac
    Posts
    80

    Re: OFFSET DV List stops working on each close and open of the workbook

    I just saw your note in the file about the DV list on the ProjectRequest sheet. Both DV lists work when you put them in the named formulas, and then the named formulas into DV lists.

    ProjectEstimates!E9: Project_Name
    Please Login or Register  to view this content.
    ProjectRequests!I4: Project_Name2
    Please Login or Register  to view this content.
    There are a few Ref errors in your named ranges that are all connected to your lists sheets.

    DMG
    Attached Files Attached Files

  14. #14
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: OFFSET DV List stops working on each close and open of the workbook

    I think I found solution

    everywhere where MATCH($G$4&$H$4,PR_ForYearCol&PR_ForPropertyCol,0) is used directly in DV change it to name (e.g. matchrow) and use this name insted of MATCH.

    Sorry , I changed some names to shorter names

    DV probably does not like concatenated ranges

    or simply change on:
    ProjectRequests
    G4&H4 to name lookupvaluePR
    PR_ForYearCol&PR_ForPropertyCol to name lookuparrayPR
    and use in DV: .... MATCH(lookupvaluePR , lookuparrayPR , 0) ....

    ProjectEstimates
    C9&D9 to name lookupvaluePE
    and, becaue this is the same range, use lookuparrayPR
    DV: ... MATCH(lookupvaluePE , lookuparrayPR , 0) ....

    ♩♪♬♫♭♮♫♩♭♬♩♪♬♫♭♮♫♩♭♬
    Last edited by sandy666; 01-28-2017 at 10:59 PM.

  15. #15
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: OFFSET DV List stops working on each close and open of the workbook

    DMG and Sandy,

    Thank you both. Both solutions work! Thank you both for helping me. I definitely learned some new things and that's always good.

    I don't understand why it would work with the named formula, or part of it being a named formula and not when just using the formula itself? It wouldn't have occurred to me to try this.... Is this an Excel bug, like a memory leak that gets closed by naming the formula?

  16. #16
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: OFFSET DV List stops working on each close and open of the workbook

    Like I said:
    Quote Originally Posted by sandy666 View Post
    DV probably does not like concatenated ranges
    Why? You need to ask the MS Experts

    Glad to help and thanks for the feedback

+ 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. Copy from first workbook, close open new workbook paste close
    By johncarr1952 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 08-04-2021, 08:50 AM
  2. [SOLVED] Issue with Open, copy, close Macro - when trying to close workbook Clipboard error
    By seanpcorbett1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-13-2016, 05:14 PM
  3. Replies: 0
    Last Post: 05-31-2016, 04:42 PM
  4. Workbook stops working when I open it on another workstation
    By paddingtonstation in forum Excel General
    Replies: 10
    Last Post: 11-18-2011, 10:59 AM
  5. Save an open workbook, then open template workbook and close the saved workbook
    By ondvirg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2009, 10:20 PM
  6. Private Sub Worksheet_Change stops working when I have certain workbooks open.
    By forth250 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-12-2008, 03:47 PM
  7. Validation List Stops working
    By Brian Matlock in forum Excel General
    Replies: 2
    Last Post: 08-19-2005, 04:05 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