Combining "AND" and "OR" and "IF" formulas from multiple cells

Joined
Oct 29, 2015
Messages
42
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to devise a formula which pays an amount of money based on whether a milestone date is met. This amount is then gradually reduced on whether the date is within a certain period of time eventually being zero. The Formulas are in Row K6 to N6. Thank you

Pain Gain Calculation.xlsx
FGHIJKLMN
5ContractorShare of Programme Incentive PaymentActual Date Milestone Achieved6 Weeks6 to 12 Weeks
6Contractor£7,00002-Dec-2312-Jan-2423-Feb-24FALSE6,300.00FALSEFALSE
1 Major Programme Milestones
Cell Formulas
RangeFormula
I6I6=E6+42
J6J6=E6+84
K6K6=IF(H6<=E6,G6)
L6L6=IF(AND(H6>E6,H6<=I6),G6*90%)
M6M6=IF(AND(H6>I6,H6<=J6),G6*50%)
N6N6=IF(H6>J6,0)
Named Ranges
NameRefers ToCells
Actually_Achieved='1 Major Programme Milestones'!$H$6:$H$89K6:N6
Alliance_Milestone='1 Major Programme Milestones'!$E$6:$E$89I6:L6
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try

Excel Formula:
=IF(H6<=E6,G6,IF(AND(H6>E6,H6<=I6),G6*90%,IF(AND(H6>I6,H6<=J6),G6*50%,IF(H6>J6,0,""))))
 
Upvote 0
Thank you! This works - however if the milestone date has not yet been met as it is a date in the future I'd like that formula to take account of the blank cell and not calculate, I've tried
=IF(ISBLANK(H6),"",(H6<=E6,G6,IF(AND(H6>E6,H6<=I6),G6*90%,IF(AND(H6>I6,H6<=J6),G6*50%,IF(H6>J6,0,""))))) but when there is a date inserted in H6 I get a #VALUE! message.
 
Upvote 0
you missed

=IF(ISBLANK(H6),"",IF(H6<=E6,G6,IF(AND(H6>E6,H6<=I6),G6*90%,IF(AND(H6>I6,H6<=J6),G6*50%,IF(H6>J6,0,"")))))


Try

Excel Formula:
=IF(H6="","",IF(H6<=E6,G6,IF(AND(H6>E6,H6<=I6),G6*90%,IF(AND(H6>I6,H6<=J6),G6*50%,IF(H6>J6,0,"")))))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top