+ Reply to Thread
Results 1 to 7 of 7

Data validation lists from pivot table data

Hybrid View

  1. #1
    Registered User
    Join Date
    04-21-2009
    Location
    Nottingham
    MS-Off Ver
    Excel 2003
    Posts
    66

    Data validation lists from pivot table data

    Hi all,

    I have created a drop down data validation list. The selections available are drawn from a pivot table.

    The problem is have is that when the pivot table refreshes, it changes in length. Therefore my data validation list will either have loads of blank spaces at the bottom, or chop items off (as i have to select a specific cell area).

    Is there a way of linking my data validation criteria, to the exact size of a pivot table and for that to increase/decrease as the pivot table refershes?

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Data validation lists from pivot table data

    Consider defining the Validation range by means of a Dynamic Named Range - see link in sig. for more info.

    If needed post a sample file.

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,051

    Re: Data validation lists from pivot table data

    I have a similar problem, but the posted solution doesn't seem to work for me. I am using a dynamic named ranged, and think I have the right formula for my data validation list, but I'm still gettting blanks. Here's my formula
    =OFFSET(APR!$AA$5,0,0,MATCH("*",APR!$AA:$AA,-1),1)
    and I've attached a sample document. I'd appreciate some help.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Data validation lists from pivot table data

    You're including the four values in Col AA before AA5 in your Match. You need to subtract 4 like so
    =OFFSET(APR!$AA$5,0,0,MATCH("*",APR!$AA:$AA,-1)-4,1)
    Does that help?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,051

    Re: Data validation lists from pivot table data

    A-Ha! All this time I was wondering why when I deleted the blanks from my data I still had blanks in the validation list. Thanks for setting me straight. Your formula worked wonderfully!

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Data validation lists from pivot table data

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  7. #7
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,051

    Re: Data validation lists from pivot table data

    Sorry Roy,

    I was searching for an answer, rather wanting to post yet another repeated question, and came across this thread. Since this one was an identical problem, and had never been marked as solved, I figured it was still open, so I chimed in. Sorry to offend.

+ 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