Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-02-13
2
Medium Priority
?
250 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
This article describes a serious pitfall that can happen when deleting shapes using VBA.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

610 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