Solved

Excel Dynamic Range that creates a Pivot Table which Updates a Validation List - List has extra spaces - ???

Posted on 2011-02-13
2
242 Views
Last Modified: 2012-08-13
I have had several questions that have fixed problems that have led me to various solutions all of which now culminate in my Input Form having a list of Valid Pay Period Ending Dates.  Only one problem.  My validation list which gives me my drop down list for the clerk to select from has an extra blank line following each line of data from which they select.

I've attached a sample Excel 2007 Macro Enabled wkbk.  The problem is on sheet "Payroll Data Input cells W1 and V4.  They both do the same thing.

Anyone see where the problem is?
PR-Summary.xlsm
0
Comment
Question by:wlwebb
2 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst earned 500 total points
ID: 34884133
Hello,

your current formulas return more than one colum. Hence the blanks interspersed. Make sure to include only the columns you need.

change your formula for the range name PayDateCalendarYear to look at column B only, not row $1:$1048576

='Pay Dates'!$B$5:INDEX('Pay Dates'!$B:$B,MATCH(10^300,'Pay Dates'!$B:$B,1))

and for PayPeriodsEndingForCalendarYr use

='Pay Dates'!$E$6:INDEX('Pay Dates'!$E:$E,MATCH(99^99,'Pay Dates'!$E:$E,1))

When you copy and paste these formulas from EE to the Name Manager, quote signs may be added. Make sure to remove them before confirming the formula.

cheers, teylyn
0
 

Author Closing Comment

by:wlwebb
ID: 34884200
Perfect Teylyn!  I am beginning to understand what you did.
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question