Forum Discussion
IF FUNCTION AND ROUNDUP
I have a current formula -
=ROUNDUP(($A$1-J18)/7,0)
This tells me how many weeks have past from one date to another. What I want to add is that if another cell has a date in it that has passed then this sum should just read 0.
Please help me you lovely lot.
Thanks
When it's something like this
=WEEKNUM(IF(ISBLANK(<hired off date>),TODAY(), <hired off date>)) - WEEKNUM(<hired on date>)
Perhaps plus 1 depends on how do you calculte not full week, as zero or as 1.
10 Replies
- manoj patgarCopper Contributor
Hi Zoe Jeffery,
Good day,
It is my pleasure give some suggestion to your problem.
Please try to use below formula. I am not sure how mutch it may work respect to your requirement.
Please find attached work sheet and study.
=IF(ROUNDUP(($A$36-B39)/7,0)>$C$36,"0",$A$36-B39)
Regards,
Manoj P.
- JamesWiseCopper Contributor
Hi, I saw your reply to a formula question similar to what i am trying to accomplish. I have the following formula that works mostly how i want it to, however i need the "G31/75" portion to round up.
=IF($G$31<=1500,($G$31/75),0)
Can you help me?
Thank you in advance
- SergeiBaklanDiamond Contributor
JamesWise , why don't you use ROUNDUP() function?
- Zoe JefferyCopper Contributor
Ok so I have to know how many weeks have passed.
One column is called 'HIRED ON DATE' the other column is called 'HIRED OFF DATE'. I then need a column that says 'WEEKS HIRED TO DATE'. It needs to calculate the amount of weeks from HIRED ON DATE until HIRED OFF DATE or if no date is entered into HIRED OFF then it needs to use TODAYS date.
Thanks in advance x
- SergeiBaklanDiamond Contributor
When it's something like this
=WEEKNUM(IF(ISBLANK(<hired off date>),TODAY(), <hired off date>)) - WEEKNUM(<hired on date>)
Perhaps plus 1 depends on how do you calculte not full week, as zero or as 1.
- Zoe JefferyCopper ContributorI still need help!
- Jens StolleCopper ContributorCan you please rephrase that or give us a more complete insight in your problem? What other cell, with what date do you compare (today?), what is summed up? As hard as I try I have Problems finding out your needs.
- SergeiBaklanDiamond Contributor
Yes, that's no clear what is required. For example that could be
If <date in J18> is between (<date in another cell> and $A$1) then <number of weeks> else 0