whats wrong with if??

1. whats wrong with if??

i have a formula which is supposed to tell me wether a person is up to date with payments

=IF((IF(U2>\$AB\$2,(Y2*(S2/W2))-0.5,0))<R2,"ok","late")

where the first embedded function establishes if the contract has begun and returns how much they should have paid so far if it has,

IF(startdate>today,(dayssofar*(totaldue/totaldays))-marginforerror,0)

then if this is greater than how much they have paid then it tells me if they are ok or late. simple enough

IF(result<totalrecieved,"ok",late")

but it doesnt work, if a contract is 60 days in and they've only paid for 30 it still says they are ok??

I've tried my arguments the other ways round but in my head this should work.

HEEEELLLLLPPPPPP

2. Originally Posted by duncan79
i have a formula which is supposed to tell me wether a person is up to date with payments

=IF((IF(U2>\$AB\$2,(Y2*(S2/W2))-0.5,0))<R2,"ok","late")

where the first embedded function establishes if the contract has begun and returns how much they should have paid so far if it has,

IF(startdate>today,(dayssofar*(totaldue/totaldays))-marginforerror,0)

then if this is greater than how much they have paid then it tells me if they are ok or late. simple enough

IF(result<totalrecieved,"ok",late")

but it doesnt work, if a contract is 60 days in and they've only paid for 30 it still says they are ok??

I've tried my arguments the other ways round but in my head this should work.

HEEEELLLLLPPPPPP

Your inner 'if' statement, try: if(startdate<today, ....)

(You want to do the calculation if the start date is before today, ie. less than today.)

Scott

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1