A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"dated if" statement



 
 
Thread Tools Display Modes
  #1  
Old October 24th, 2003, 10:41 PM
todd
external usenet poster
 
Posts: n/a
Default "dated if" statement

IF(AND(DATEDIF(Q14,V$7,"Y")-2,$C14=$C$1),($AA$2*8/24)*
($E14/40)

Hi, I am working on a set of dated if statement that I
have copied from an old worksheet. This piece of it isn't
working. Its the -2 that is the problem and I can't find
anything in help to tell me why its a negative number or
what it means so I can adapt it. Can anyone tell me what
the "-" is for?

Thanks,


Todd
  #2  
Old October 24th, 2003, 11:24 PM
J.E. McGimpsey
external usenet poster
 
Posts: n/a
Default "dated if" statement

For help on datedif, checkout

http://cpearson.com/excel/datedif.htm

In article ,
"todd" wrote:

IF(AND(DATEDIF(Q14,V$7,"Y")-2,$C14=$C$1),($AA$2*8/24)*
($E14/40)

Hi, I am working on a set of dated if statement that I
have copied from an old worksheet. This piece of it isn't
working. Its the -2 that is the problem and I can't find
anything in help to tell me why its a negative number or
what it means so I can adapt it. Can anyone tell me what
the "-" is for?

Thanks,


Todd

  #3  
Old October 24th, 2003, 11:26 PM
Felipe
external usenet poster
 
Posts: n/a
Default "dated if" statement

Todd,

You can look for help on datedif at Chip Pearson's site:
http://www.cpearson.com/excel/datedif.htm

Regards,
Felipe
-----Original Message-----
IF(AND(DATEDIF(Q14,V$7,"Y")-2,$C14=$C$1),($AA$2*8/24)*
($E14/40)

Hi, I am working on a set of dated if statement that I
have copied from an old worksheet. This piece of it

isn't
working. Its the -2 that is the problem and I can't find
anything in help to tell me why its a negative number or
what it means so I can adapt it. Can anyone tell me what
the "-" is for?

Thanks,


Todd
.

  #4  
Old November 11th, 2003, 01:50 AM
WShelton
external usenet poster
 
Posts: n/a
Default "dated if" statement

Todd,

The minus symbol in your formula is the negative symbol indicating the 2 is
a negative number.

The datedif formula says:

If the number of years (years is represented by the "Y" in your formula)
between cell Q14 and V$7 is greater than negative 2

AND

the value of $C14 equals the value of $C$1 then multiply $AA$2*8/24 then
multiply this by $E14 divided by 40

When you add the $ dollar sign beside a cell reference it anchors the cell
pointer.
As an example:
When $A$1 is in a formula, no matter where you copy the formula it will
always reference the same column and the same row (A1).

When $A1 is in a formula, no matter where you copy the formula it will
always reference the same COLUMN but NOT the same ROW. The row number will
adjust according to where you copy the formula.

When A$1 is in a formula, no matter where you copy the formula it will
always reference the same ROW but NOT the same COLUMN. The column letter
will adjust according to where you copy the formula.

Regards,

WShelton
"todd" wrote in message
...
IF(AND(DATEDIF(Q14,V$7,"Y")-2,$C14=$C$1),($AA$2*8/24)*
($E14/40)

Hi, I am working on a set of dated if statement that I
have copied from an old worksheet. This piece of it isn't
working. Its the -2 that is the problem and I can't find
anything in help to tell me why its a negative number or
what it means so I can adapt it. Can anyone tell me what
the "-" is for?

Thanks,


Todd



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.