Solved

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

Posted on 2011-02-13
2
239 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:
teylyn 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
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…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now