ExcelTip.com
ExcelTip.com
Account Icon Account Icon Account Icon
Google Exceltip.com
JOIN OUR NEWSLETTER
  and receive for joining:
Free eBook Learn More!
Free Excel ADD-IN
Free Weekly Excel Tip
4 e-books in cd-rom
F1 Formulas & Functions
F1 Formulas & Functions
F1 EXCEL
F1 eBook (Spanish)
F1 EXCEL
Financial Statements.xls
 

» Counting the Number of Excel Files in a List According to File Type and Date Criteria
Problem:

In the range A2:B6 are file names and their corresponding creation date.
How could we, for example, count the number of Excel files (".xls") created in April?

Solution:

Use the SUMPRODUCT, MONTH, and RIGHT functions as shown in the following formula:
=SUMPRODUCT((MONTH(B2:B6)=C2)*(RIGHT(A2:A6,3)=C3))


Screenshot // Counting the Number of Excel Files in a List According to File Type and Date Criteria

Counting the Number of Excel Files in a List According to File Type and Date Criteria
Rate this tip
12 34 5
  RATING: 3.31
  VIEWS: 13297

READER COMMENTS (view all comments)


Can Excel reference a calendar?
Julie Allen wrote on May 29, 2005 19:41 EST
Is it possible to have a Budget refering to a calendar.
I need to calculate the days left from a particuar Start and End Date, then divide the monies over the rest of the current month and future months.
Considering the different amount of days in each mth
Example:
Calendar reference
Budget Amount start end days left
$10,000,000.00 21.05.05 31.05.05 10 = $1,000,000.00???

Currently showing 1 mth only and this will need to be adjusted several years ahead
Can anyone help??
Reply: Julie Allen
Alan wrote on May 31, 2005 02:20 EST
Hi Julie,

[QUOTE=Julie Allen]Is it possible to have a Budget refering to a calendar.
I need to calculate the days left from a particuar Start and End Date, then divide the monies over the rest of the current month and future months.
Considering the different amount of days in each mth
Example:
Calendar reference
Budget Amount start end days left
$10,000,000.00 21.05.05 31.05.05 10 = $1,000,000.00???

Currently showing 1 mth only and this will need to be adjusted several years ahead
Can anyone help??[/QUOTE]If you have the your data as follows:

A1 = 10,000,000

B1 = 21 May 2005

C1 = 31 May 2005


E1 = C1 - B1 = 10

F1 = A1/E1 = 1,000,000


HTH but if not, do post back.

Alan.

jallen wrote on May 31, 2005 20:45 EST
Hi Alan,

I have this formula figured already. Thanks :)
The problem is the need to adjust [B]these date ranges [/B] to month/years ahead, and still be able to spread the budget amount across. Keeping in mind that each mth has different amount of days.
I know this can be set up manually, but I was hoping that there is a way to link MS Calendar software to MS Excel?
Thanks,
Julie
Reply: jallen
Alan wrote on June 01, 2005 03:03 EST
Hi Julie,

[QUOTE=jallen]Hi Alan,

I have this formula figured already. Thanks :)
The problem is the need to adjust [B]these date ranges [/B] to month/years ahead, and still be able to spread the budget amount across. Keeping in mind that each mth has different amount of days.
I know this can be set up manually, but I was hoping that there is a way to link MS Calendar software to MS Excel?
Thanks,
Julie[/QUOTE]Just extend the dates across the range in question (month end dates for example), then place another formula below or beside that to calculate the number of days between each month end. Finally, apportion the balance across the time period in proportion to the days.

I cannot really be more specific without a specific example, but each step should be fairly trivial if you do them one at a time.

HTH,

Alan.
video poker strategy
video poker strategy wrote on July 13, 2005 10:35 EST
problem
felixg wrote on October 17, 2005 13:50 EST
hey alan,

How you doing.

i have this problem, when u try to rest tow cell from excel, excel display this:

a1= 4/2/05 (dd/mm/yy)

a2= 2 (numeric)

a3= a1-a3 so

a3 should be: 2/2/05 beacause i want to rest those days

but execel do not calculate those days why its that????

I NEED THAT ANSWER HURRY UP HELP ME... THANKS

FELIX
:confused:
problem
felixg wrote on October 17, 2005 13:52 EST
hey alan,

How you doing.

i have this problem, when u try to rest tow cell from excel, excel display this:

a1= 4/2/05 (dd/mm/yy)

a2= 2 (numeric)

a3= a1-a3 so

a3 should be: 2/2/05 beacause i want to rest those days

but excel do not calculate those days why its that????

I NEED THAT ANSWER HURRY UP HELP ME... THANKS

FELIX
:confused:
Reply: felixg
Alan wrote on October 17, 2005 18:33 EST
Hi felixg,

[QUOTE=felixg]hey alan,

How you doing.

i have this problem, when u try to rest tow cell from excel, excel display this:

a1= 4/2/05 (dd/mm/yy)

a2= 2 (numeric)

a3= a1-a3 so

a3 should be: 2/2/05 beacause i want to rest those days

but excel do not calculate those days why its that????

I NEED THAT ANSWER HURRY UP HELP ME... THANKS

FELIX
:confused:[/QUOTE]Works for me (Excel 2000).

1) Open new workbook

2) In A1 enter:

4/2/05

Press enter

{Displays as 04/02/2005 for me but that depends on settings in Windows I believe}

3) Enter:

2

(numeric) in A2

Press Enter

4) In A3 enter:

=A1-A2

Press enter



Displays as 02/02/2005 for me

If it still isn't working for you, check that the entry in A1 really is a date. Its true value should be 38387 which you can check by highlighting A1 in the formula in A3 and pressing F9 to evaluate.


HTH,

Alan.
COUTNTIF USING DATE FORMAT
SPUT wrote on December 31, 1969 19:00 EST
I am trying to use the countif function to count the dates after the current date. When I use " <Today()" for the criteria it gives me zero. When I type in the date it gives me the number I want. Can anyone tell me how to use the Today() to make it work



REGISTERED USERS - Click here to post comments


GUESTS (Click here to register)
Name
Comment Title
Comments

The Complete Book of Business Plans: Simple Steps to Writing a Powerful Business Plan (Small Business Sourcebooks)

422 Tax Deductions for Businesses and Self-Employed Individuals : You Get a Raise Every Time You Find a Legitimate Tax Deduction

Microsoft Office XP Introductory Concepts and Techniques

The Sweet Potato Queens' Big-Ass Cookbook and Financial Planner

Business Plans Kit for Dummies (With CD-ROM)

Lower Your Taxes - Big Time! : Wealth-Building, Tax Reduction Secrets from an IRS Insider

RELATED MICROSOFT EXCEL TIPS


Convert PDF Files to Excel






Excel VBA books
Accounting books
Business Plans
MS Office books
Taxes books

VIEW ALL BOOKS


  Advertise With Us                               

Tips

Add-In in VBA | Applications - Word, Outlook in VBA | Array Formulas | Cells, Ranges, Rows, and Columns in VBA | Counting | Custom Functions | Custom Functions in VBA | Database Formulas | Database in VBA | Date & Time Formulas | Date & Time in VBA | Events in VBA | Excel 2003 | Excel Chart | Excel Consolidating | Excel Counting | Excel Custom Functions using VBA | Excel Customizing | Excel Data | Excel Dates | Excel Editing | Excel Files | Excel Filter | Excel Format | Excel Formula | Excel General | Excel Grouping and Outlining | Excel Importing Text Files | Excel Information | Excel Keyboard Shortcuts | Excel Loan Formulas | Excel Macros - VBA | Excel Pivot Tables | Excel Printing | Excel Range Name | Excel Security - Protection | Excel Sorting | Excel Style | Excel Subtotals | Excel Summing | Excel Text | Excel Time | Excel Tools | Excel Worksheet, Workbook | Files, Workbook, and Worksheets in VBA | Financial Formulas | Formating in VBA | General Topics in VBA | Import and Export in VBA | Information Formulas | Keyboard & Other Shortcuts in VBA | Keyboard Formula Shortcuts | Links between Worksheet and Workbooks | Links in VBA | Logical Formulas | Lookup Formulas | Mail - Send and Receive in VBA | Menus, Toolbars, Status bar in VBA | Modules, Class Modules in VBA | Other Q&A Formulas | Printing in VBA | Protecting in VBA | Summing | Text Formulas | User Forms, Input boxes in VBA | Using Loops | Working with Formulas |

Tips by Version

Microsoft Excel 97 | Microsoft Excel 2000 | Microsoft Excel 2002 | All Microsoft Excel Versions | New in Excel 2002 | New in Excel 2003 - Office 11

Website

Home | Tip of Hour | Recommended Tips | Most Viewed Tips | Tips by Version | Submit a Tip | My Tips
Microsoft Excel Tutorials | Excel Links | Write for Us | About Us | Search Results | Tip Archives | Excel Forum | Excel Forum Archives

Excel Book

Excel 97 Book | Excel 2000 Book | Excel 2002 Book | Excel XP Book | Book Store

Terms and Conditions of use
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Copyright © 2003 ExcelTip.com
Microsoft, Microsoft Excel is a U.S. registered trademark of Microsoft Corporation
Site Developed By: Varien