PC Review


Reply
Thread Tools Rate Thread

How do I use the IF function with info that contains a date?

 
 
Red River Transport
Guest
Posts: n/a
 
      2nd Mar 2009
I have a spreadsheet and would like to pull information from certain dates.
For example, our pay periods run from the first of the month through the
15th, and then again from the 16th through the end of the month. I'd like to
create an IF function that sums driver pay from the 1st through the 15th and
then from the 16th to the end of the month. Any ideas?
 
Reply With Quote
 
 
 
 
Shane Devenshire
Guest
Posts: n/a
 
      2nd Mar 2009
Hi,

If your data is by month then:

=SUMPRODUCT(--(DAY(A1:A31)<=15),B1:B31)

=SUMPRODUCT(--(DAY(A1:A31)>15),B1:B31)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Red River Transport" wrote:

> I have a spreadsheet and would like to pull information from certain dates.
> For example, our pay periods run from the first of the month through the
> 15th, and then again from the 16th through the end of the month. I'd like to
> create an IF function that sums driver pay from the 1st through the 15th and
> then from the 16th to the end of the month. Any ideas?

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recovering File Info Specifically Save Date or Print Date Gadgetgw Microsoft Excel Misc 4 6th Oct 2008 08:43 PM
Syntax for Info or Cell function for xl. file creation date =?Utf-8?B?ZHJpbGxlcg==?= Microsoft Excel Worksheet Functions 5 29th Jan 2007 07:51 PM
Calculating days between current date and a date in future NETWORKDAYS() function Faheem Khan Microsoft Excel Worksheet Functions 2 10th Feb 2005 07:18 PM
Datedif function doesn't work when I use the cell with a date as start date reference Joy Microsoft Excel Worksheet Functions 2 3rd Apr 2004 12:47 AM
Need to automatically update date in a date field when record info changes Stacey Microsoft Access 1 30th Oct 2003 07:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:51 PM.