ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Select a range of data dependant on the users input ie dates (https://www.excelbanter.com/excel-discussion-misc-queries/141747-select-range-data-dependant-users-input-ie-dates.html)

Rachel[_2_]

Select a range of data dependant on the users input ie dates
 
Hi,

I am working on an attrition report and want to be able to select a
range of data dependant on the users input. For example ask the user
to specify a start and end date, which would then select the rows that
are between these dates. (eg For all people who work in left between
1/3/07 and 1/4/07) This selected range would then automatically update
a graph to show attrition reports between certain dates.

Any help would be greatly apprciated

x


Dom_Ciccone

Select a range of data dependant on the users input ie dates
 
Hi Rachel,

VBA is your answer here. Use an inputbox to get the report start and end
dates from the user. Validate the entry with the ISDATE function and then
call excel's built in autofilter function, supplying the custom parameter
dates. Have the graph linked to the data sheet to take advantage of the fact
that when graphed data is filtered, excel automatically only graphs the
visible data.

"Rachel" wrote:

Hi,

I am working on an attrition report and want to be able to select a
range of data dependant on the users input. For example ask the user
to specify a start and end date, which would then select the rows that
are between these dates. (eg For all people who work in left between
1/3/07 and 1/4/07) This selected range would then automatically update
a graph to show attrition reports between certain dates.

Any help would be greatly apprciated

x



Roger Govier

Select a range of data dependant on the users input ie dates
 
Hi

You could use Advanced Filter to extract the data to a second sheet,
where you have entered your 2 dates.
Create the graph based upon the second sheet.

For more information on Advanced Filter, take a look at Debra
Dalgleish's site
http://www.contextures.com/xladvfilter01.html#ExtractWs
--
Regards

Roger Govier


"Rachel" wrote in message
oups.com...
Hi,

I am working on an attrition report and want to be able to select a
range of data dependant on the users input. For example ask the user
to specify a start and end date, which would then select the rows that
are between these dates. (eg For all people who work in left between
1/3/07 and 1/4/07) This selected range would then automatically update
a graph to show attrition reports between certain dates.

Any help would be greatly apprciated

x





All times are GMT +1. The time now is 06:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com