LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 153
Default export data by selecting date range

On Sunday, October 27, 2013 11:15:24 PM UTC-7, amy chan wrote:
I would like to create a excel file to let the user to input the
following column.

Date No. of success No. of failure
==== ============ ==============
" " "
" " "
" " "
Could advise if I would like to have a function that can allow the user
to select the date range and its total no. of success and no. of
failure


With the data above in columns A, B, C, from rows 2 through 1000, allow the user to put the start of the date range in E1 and the end of the date range in E2.

Then for the total no. of success try:
=SUMIF(A2:A1000,"<="&E2,B2:B1000)-SUMIF(A2:A1000,"<"&E1,B2:B1000)

And for failures:
=SUMIF(A2:A1000,"<="&E2,C2:C1000)-SUMIF(A2:A1000,"<"&E1,C2:C1000)

Modify as needed. Hope this helps getting started.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting Date Range in a Pivot using VBA Gaura215 Excel Programming 0 June 26th 12 07:12 AM
Selecting data in a specific date range using COUNTIFS function Joe R @ AA[_2_] Excel Worksheet Functions 1 May 8th 09 02:29 PM
Error when selecting date range. [email protected] Excel Programming 4 July 16th 08 04:39 PM
Selecting data within a date range mtaylor Excel Worksheet Functions 1 September 1st 05 12:17 PM
Help! Selecting data according to date range redbna Excel Discussion (Misc queries) 0 June 8th 05 06:58 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"