carlosbourn
New Member
- Joined
- Nov 9, 2007
- Messages
- 17
Hi Guys
I have the following formula:
However, I now need to factor in another differential that can influence the result.
In a nutshell this looks for a specific set %age in a range based on a date provided. This date is one of two dates, the sum of which is shown in cell J12 - if the number of days between these dates exceeds 7 days, the result is divided by 7 and multiplied by the actual number of days in J12.
What I need to do now is add another function that changes the 'number of days' part of the calculation if there is a particular value in another cell.
For example, using the above formula as a guide:
If, say "ABC" is the value in cell C12, the resultant %age is not to be divided by 7 and multiplied by the actual number of days in J12, it needs to be simply the resultant %age only.
Is this possible? Sorry I can't attach the workbook, it contains sensitive information.
Thanks
Carl
I have the following formula:
=IF(OR(A12="",B12="",C12="",I12=""),"",IF(J12+0<=7,INDEX(Ports!$A$3:$BD$74,MATCH(Feb11!C12,PORT,0),MATCH(Feb11!F12,Ports!$A$2:$BD$2,1)),INDEX(Ports!$A$3:$BD$74,MATCH(Feb11!C12,PORT,0),MATCH(Feb11!F12,Ports!$A$2:$BD$2,1))/7*J12))
However, I now need to factor in another differential that can influence the result.
In a nutshell this looks for a specific set %age in a range based on a date provided. This date is one of two dates, the sum of which is shown in cell J12 - if the number of days between these dates exceeds 7 days, the result is divided by 7 and multiplied by the actual number of days in J12.
What I need to do now is add another function that changes the 'number of days' part of the calculation if there is a particular value in another cell.
For example, using the above formula as a guide:
If, say "ABC" is the value in cell C12, the resultant %age is not to be divided by 7 and multiplied by the actual number of days in J12, it needs to be simply the resultant %age only.
Is this possible? Sorry I can't attach the workbook, it contains sensitive information.
Thanks
Carl