Solved

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

Posted on 2011-02-13
2
245 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 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

688 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