LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dd dd is offline
external usenet poster
 
Posts: 95
Default Can someone test this IF function for me, I'm not sure that it works.

Sorry,

I checked myself and A25 = the Start weeknumber in the current month
and B25 = the end weeknumber in the month.
=TRUNC(((B22-DATE(YEAR(B22),1,0))+6)/7)

A1 is the Current date =Today()

Regards
Dylan

"Niek Otten" wrote in message
...
Just a few questions:

What does B25 have to do with this?
Where do you test for 1.5?
Can't you use the WEEKNUM() function?

--
Kind regards,

Niek Otten
Microsoft MVP - Excel



"dd" <dd.dd wrote in message
...
| Following on from the post titled "How do I count the number of even weeks
| in the current month."
| I am taking the number of even weeks per month and assigning payments
| against each even week in the month.
|
| Since there are a maximum of three even weeks per month:
| For the first even week I assign the maximum value I will receive for that
| month.
| If the middle of the month has not been reached I assign the remaining
value
| of £100
| If it is none of the above (after the middle of the month) then I assign
the
| value of £0
|
| I have the following
|
=IF(TRUNC(((A1-DATE(YEAR(A1),1,0))+6)/7)=A25,A28*100,IF(ROUND(B25-TRUNC(((A1-DATE(YEAR(A1),1,0))+6)/7)/2,-1)=1,100,0))
|
| Broken down:
| If the present week number (A1) = the start of month week number (A25)
| Then multiply the number of even weeks in this month X £100
|
| If the present week number (A1) divided by two = 1.5
| Then the value is £100
|
| Or else the Value is £0
|
| Checking it the start of this month is week 4
| The end is week 8
|
| When I try changing my cell values this celldoes not update. I remain at
"0"
|
|
|
|



 
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
SMALL FUNCTION - How it works [email protected] Excel Discussion (Misc queries) 6 February 13th 07 09:23 AM
how pmt function works, what is its background / machanizm? Mujeeb ur Rehman, FBL-GRW-PK Excel Worksheet Functions 3 November 9th 06 10:23 PM
Getting corresponding test value to a MIN function Willis in crisis Excel Worksheet Functions 1 November 2nd 05 06:32 PM
Index function works in A2, but not in A10, Why is that? Cant figure it out. sonar Excel Worksheet Functions 8 August 28th 05 07:44 PM
Worksheet function in excel only works once Divertor Chris Excel Worksheet Functions 1 July 27th 05 10:29 AM


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

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"